[PATCH v2 0/4] Make max expected current configurable for ina2xx drivers

2017-10-12 Thread Maciej Purski
Hi all, this patchset makes it possible to calibrate ina2xx drivers with different calibration values, which are calculated using max expected current value. It can be read from device tree, platform data or changed during run-time using sysfs. If it isn't specified in device tree or platform data

[PATCH v2 1/4] iio: adc: ina2xx: Make max expected current configurable

2017-10-12 Thread Maciej Purski
Max expected current is used for calculating calibration register value, Current LSB and Power LSB according to equations found in ina datasheet: current_lsb = max_expected_current / 2^15 calibration_register = 0.00512 / (current_lsb * r_shunt) power_lsb = 25 * current_lsb (for ina231, 230, 226) po

[PATCH v2 3/4] dt-bindings: hwmon: Add ti-max-expected-current-microamp property to ina2xx

2017-10-12 Thread Maciej Purski
Add optional max expected current property which allows calibrating the ina sensor in order to achieve requested measure scale. Document the changes in Documentation/hwmon/ina2xx. Signed-off-by: Maciej Purski --- Documentation/devicetree/bindings/hwmon/ina2xx.txt | 4 +++- Documentation/hwmon/in

[PATCH v2 2/4] hwmon: (ina2xx) Make max expected current configurable

2017-10-12 Thread Maciej Purski
Max expected current is used for calculating calibration register value, Current LSB and Power LSB according to equations found in ina datasheet: current_lsb = max_expected_current / 2^15 calibration_register = 0.00512 / (current_lsb * r_shunt) power_lsb = 25 * current_lsb (for ina231, 230, 226) po

[PATCH v2 4/4] ARM: dts: Add ti-max-expected-current-microamp properties for ina231 in Odroid XU3

2017-10-12 Thread Maciej Purski
Set max expected current to values required by the documentation, in order to achieve desired precision. Signed-off-by: Maciej Purski --- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts b/arch/arm/boot

Re: [PATCH v2 3/4] dt-bindings: hwmon: Add ti-max-expected-current-microamp property to ina2xx

2017-10-12 Thread Krzysztof Kozlowski
On Thu, Oct 12, 2017 at 2:36 PM, Maciej Purski wrote: > Add optional max expected current property which allows calibrating > the ina sensor in order to achieve requested measure scale. Document > the changes in Documentation/hwmon/ina2xx. > > Signed-off-by: Maciej Purski > --- > Documentation/d

Re: [PATCH v2 3/4] dt-bindings: hwmon: Add ti-max-expected-current-microamp property to ina2xx

2017-10-12 Thread Maciej Purski
On 10/12/2017 02:39 PM, Krzysztof Kozlowski wrote: On Thu, Oct 12, 2017 at 2:36 PM, Maciej Purski wrote: Add optional max expected current property which allows calibrating the ina sensor in order to achieve requested measure scale. Document the changes in Documentation/hwmon/ina2xx. Signed-

[PATCH v3 0/4] Make max expected current configurable for ina2xx drivers

2017-10-12 Thread Maciej Purski
Hi all, this patchset makes it possible to calibrate ina2xx drivers with different calibration values, which are calculated using max expected current value. It can be read from device tree, platform data or changed during run-time using sysfs. If it isn't specified in device tree or platform data

[PATCH v3 1/4] iio: adc: ina2xx: Make max expected current configurable

2017-10-12 Thread Maciej Purski
Max expected current is used for calculating calibration register value, Current LSB and Power LSB according to equations found in ina datasheet: current_lsb = max_expected_current / 2^15 calibration_register = 0.00512 / (current_lsb * r_shunt) power_lsb = 25 * current_lsb (for ina231, 230, 226) po

[PATCH v3 3/4] dt-bindings: hwmon: Add ti-max-expected-current-milliamp property to ina2xx

2017-10-12 Thread Maciej Purski
Add optional max expected current property which allows calibrating the ina sensor in order to achieve requested measure scale. Document the changes in Documentation/hwmon/ina2xx. Signed-off-by: Maciej Purski --- Documentation/devicetree/bindings/hwmon/ina2xx.txt | 4 +++- Documentation/hwmon/in

[PATCH v3 4/4] ARM: dts: Add ti-max-expected-current-milliamp properties for ina231 in Odroid XU3

2017-10-12 Thread Maciej Purski
Set max expected current to values required by the documentation, in order to achieve desired precision. Signed-off-by: Maciej Purski --- arch/arm/boot/dts/exynos5422-odroidxu3.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts b/arch/arm/boot

[PATCH v3 2/4] hwmon: (ina2xx) Make max expected current configurable

2017-10-12 Thread Maciej Purski
Max expected current is used for calculating calibration register value, Current LSB and Power LSB according to equations found in ina datasheet: current_lsb = max_expected_current / 2^15 calibration_register = 0.00512 / (current_lsb * r_shunt) power_lsb = 25 * current_lsb (for ina231, 230, 226) po

Re: [PATCH v3 3/4] dt-bindings: hwmon: Add ti-max-expected-current-milliamp property to ina2xx

2017-10-12 Thread Sylwester Nawrocki
On 10/12/2017 03:18 PM, Maciej Purski wrote: > diff --git a/Documentation/devicetree/bindings/hwmon/ina2xx.txt > b/Documentation/devicetree/bindings/hwmon/ina2xx.txt > index 02af0d9..9268595 100644 > --- a/Documentation/devicetree/bindings/hwmon/ina2xx.txt > +++ b/Documentation/devicetree/bindings

Re: [PATCH v2 3/4] dt-bindings: hwmon: Add ti-max-expected-current-microamp property to ina2xx

2017-10-12 Thread Guenter Roeck
On 10/12/2017 06:00 AM, Maciej Purski wrote: On 10/12/2017 02:39 PM, Krzysztof Kozlowski wrote: On Thu, Oct 12, 2017 at 2:36 PM, Maciej Purski wrote: Add optional max expected current property which allows calibrating the ina sensor in order to achieve requested measure scale. Document the c

Re: [PATCH v2 3/4] dt-bindings: hwmon: Add ti-max-expected-current-microamp property to ina2xx

2017-10-12 Thread Maciej Purski
On 10/12/2017 03:55 PM, Guenter Roeck wrote: On 10/12/2017 06:00 AM, Maciej Purski wrote: On 10/12/2017 02:39 PM, Krzysztof Kozlowski wrote: On Thu, Oct 12, 2017 at 2:36 PM, Maciej Purski wrote: Add optional max expected current property which allows calibrating the ina sensor in order to

Re: [PATCH v8 9/9] sparc64: Add support for ADI (Application Data Integrity)

2017-10-12 Thread Khalid Aziz
Hi Anthony, Please quote only the relevant parts of the patch with comments. That makes it much easier to find the comments. On 10/06/2017 04:12 PM, Anthony Yznaga wrote: On Sep 25, 2017, at 9:49 AM, Khalid Aziz wrote: This patch extends mprotect to enable ADI (TSTATE.mcde), enable/disabl

Re: [PATCH] doc: dev-tools: kselftest.rst: update to include make O=dir support

2017-10-12 Thread Jonathan Corbet
On Mon, 2 Oct 2017 17:44:17 -0600 Shuah Khan wrote: > Update to include details on make O=dir support and other changes improve > test results output. So the three patches you sent me appear to be a part of a larger series that I didn't get. I'll assume you want me to apply these three... >

Re: [PATCH] doc: dev-tools: kselftest.rst: update to include make O=dir support

2017-10-12 Thread Shuah Khan
On 10/12/2017 11:02 AM, Jonathan Corbet wrote: > On Mon, 2 Oct 2017 17:44:17 -0600 > Shuah Khan wrote: > >> Update to include details on make O=dir support and other changes improve >> test results output. > > So the three patches you sent me appear to be a part of a larger series > that I didn

Re: [PATCH] Documentation: add script and build target to check for broken file references

2017-10-12 Thread Jonathan Corbet
On Mon, 9 Oct 2017 18:26:15 +0300 Jani Nikula wrote: > Add a simple script and build target to do a treewide grep for > references to files under Documentation, and report the non-existing > file in stderr. It tries to take into account punctuation not part of > the filename, and wildcards, but

Re: [PATCH 0/8] Documentation: fix invalid Documentation refs (1)

2017-10-12 Thread Jonathan Corbet
On Tue, 10 Oct 2017 12:35:58 -0500 Tom Saeger wrote: > Recently, while reading up on binfmt I attempted to open a document ref > only to find it was invalid. I did a quick grep, found all the > binfmt_misc related broken refs and sent a patch. > > Fine. Easy. > > Then I wondered, "how many bro

Re: [PATCH] documentation: Update ide-cd documentation to reflect CONFIG_BLK_DEV_HD_IDE removal

2017-10-12 Thread Jonathan Corbet
On Thu, 12 Oct 2017 15:00:06 +1100 (AEDT) Finn Thain wrote: > CONFIG_BLK_DEV_HD_IDE was removed in commit 80aa31cb460d ("ide: > remove CONFIG_BLK_DEV_HD_IDE config option (take 2)") but the ide-cd > documentation was not updated and still asks users to disable it, > which is misleading and inv

Re: [PATCH 0/8] Documentation: fix invalid Documentation refs (1)

2017-10-12 Thread Tom Saeger
On Thu, Oct 12, 2017 at 05:24:25PM +, Jonathan Corbet wrote: > On Tue, 10 Oct 2017 12:35:58 -0500 > Tom Saeger wrote: > > > Recently, while reading up on binfmt I attempted to open a document ref > > only to find it was invalid. I did a quick grep, found all the > > binfmt_misc related broke

[PATCH 0/8] Documentation: fix invalid Documentation refs (2)

2017-10-12 Thread Tom Saeger
Batch (2) set of simple document ref fixes. Tom Saeger (8): Documentation: fix locking rt-mutex doc refs Documentation: fix ref to sphinx/kerneldoc.py Documentation: fix ref to workqueue content Documentation: fix ref to coccinelle content Documentation: fix ref to trace stm content D

[PATCH 2/8] Documentation: fix ref to sphinx/kerneldoc.py

2017-10-12 Thread Tom Saeger
Signed-off-by: Tom Saeger --- Documentation/doc-guide/kernel-doc.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/doc-guide/kernel-doc.rst b/Documentation/doc-guide/kernel-doc.rst index b24854b5d6be..0268335414ce 100644 --- a/Documentation/doc-guide/kernel-do

[PATCH 6/8] Documentation: fix ref to power basic-pm-debugging

2017-10-12 Thread Tom Saeger
Signed-off-by: Tom Saeger --- Documentation/power/interface.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/power/interface.txt b/Documentation/power/interface.txt index 7dc75f48e8bd..27df7f98668a 100644 --- a/Documentation/power/interface.txt +++ b/Document

[PATCH 5/8] Documentation: fix ref to trace stm content

2017-10-12 Thread Tom Saeger
Signed-off-by: Tom Saeger --- Documentation/trace/intel_th.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/trace/intel_th.txt b/Documentation/trace/intel_th.txt index f92070e7dde0..7a57165c2492 100644 --- a/Documentation/trace/intel_th.txt +++ b/Documentation

[PATCH 4/8] Documentation: fix ref to coccinelle content

2017-10-12 Thread Tom Saeger
Signed-off-by: Tom Saeger --- Documentation/process/4.Coding.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/process/4.Coding.rst b/Documentation/process/4.Coding.rst index 6df19943dd4d..26b106071364 100644 --- a/Documentation/process/4.Coding.rst +++ b/Docu

[PATCH 1/8] Documentation: fix locking rt-mutex doc refs

2017-10-12 Thread Tom Saeger
Signed-off-by: Tom Saeger --- Documentation/locking/rt-mutex-design.txt | 2 +- Documentation/pi-futex.txt| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/locking/rt-mutex-design.txt b/Documentation/locking/rt-mutex-design.txt index 6c6e8c2410d

[PATCH 7/8] Documentation: fix selftests related file refs

2017-10-12 Thread Tom Saeger
Make refs to selftests files valid including: - watchdog-test.c - dnotify_test.c Signed-off-by: Tom Saeger --- Documentation/filesystems/dnotify.txt| 2 +- Documentation/watchdog/hpwdt.txt | 2 +- Documentation/watchdog/pcwd-watchdog.txt | 2 +- 3 files changed, 3 insertions(+),

[PATCH 3/8] Documentation: fix ref to workqueue content

2017-10-12 Thread Tom Saeger
Signed-off-by: Tom Saeger --- .../RCU/Design/Expedited-Grace-Periods/Expedited-Grace-Periods.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/RCU/Design/Expedited-Grace-Periods/Expedited-Grace-Periods.html b/Documentation/RCU/Design/Expedited-Grace-Peri

[PATCH 8/8] Documentation: fix ref to gpio.txt

2017-10-12 Thread Tom Saeger
Signed-off-by: Tom Saeger --- Documentation/ABI/obsolete/sysfs-gpio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ABI/obsolete/sysfs-gpio b/Documentation/ABI/obsolete/sysfs-gpio index 867c1fab20e2..32513dc2eec9 100644 --- a/Documentation/ABI/obsolete/sysfs-gpi

Re: [PATCH v8 9/9] sparc64: Add support for ADI (Application Data Integrity)

2017-10-12 Thread Anthony Yznaga
> On Oct 12, 2017, at 7:44 AM, Khalid Aziz wrote: > > Hi Anthony, > > Please quote only the relevant parts of the patch with comments. That makes > it much easier to find the comments. Okay. > > On 10/06/2017 04:12 PM, Anthony Yznaga wrote: >>> On Sep 25, 2017, at 9:49 AM, Khalid Aziz wrot

Re: [PATCH 6/8] Documentation: fix ref to power basic-pm-debugging

2017-10-12 Thread Rafael J. Wysocki
On Thu, Oct 12, 2017 at 10:24 PM, Tom Saeger wrote: > Signed-off-by: Tom Saeger > --- > Documentation/power/interface.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/power/interface.txt > b/Documentation/power/interface.txt > index 7dc75f48e8bd..27df7f

Re: [v11 3/6] mm, oom: cgroup-aware OOM killer

2017-10-12 Thread David Rientjes
On Wed, 11 Oct 2017, Roman Gushchin wrote: > > But let's move the discussion forward to fix it. To avoid necessarily > > accounting memory to the root mem cgroup, have we considered if it is even > > necessary to address the root mem cgroup? For the users who opt-in to > > this heuristic, wou

[PATCH] PM / core: Fix kerneldoc comments of three functions

2017-10-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Fix kerneldoc comments of __device_suspend_noirq(), __device_suspend_late() and __device_suspend() where the function names in kerneldoc don't match the actual names of the functions. Signed-off-by: Rafael J. Wysocki --- drivers/base/power/main.c |6 +++--- 1 file c

Re: [PATCH] PM / core: Fix kerneldoc comments of three functions

2017-10-12 Thread Ulf Hansson
On 13 October 2017 at 02:33, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Fix kerneldoc comments of __device_suspend_noirq(), > __device_suspend_late() and __device_suspend() where the function > names in kerneldoc don't match the actual names of the functions. > > Signed-off-by: Rafael