[PATCH 0/3] staging: wilc1000: code style patches

2015-08-15 Thread Raphaël Beamonte
Hello, Please find in following emails code style patches for the driver wilc1000 in staging. Raphaël Raphaël Beamonte (3): staging: wilc1000: code style: fix macro with multiple statements staging: wilc1000: code style: fix globals initialized to false staging: wilc1000: code style: fix

[PATCH 1/3] staging: wilc1000: code style: fix macro with multiple statements

2015-08-15 Thread Raphaël Beamonte
Macros with multiple statements should be enclosed in a do - while loop Signed-off-by: Raphaël Beamonte --- drivers/staging/wilc1000/wilc_exported_buf.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_exported_buf.c b/drivers/stag

[PATCH 3/3] staging: wilc1000: code style: fix open brace { on wrong line

2015-08-15 Thread Raphaël Beamonte
Open braces should be on the same line as if and for statements. Signed-off-by: Raphaël Beamonte --- drivers/staging/wilc1000/linux_wlan.c | 3 +-- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/stagin

Re: [PATCH v2 08/16] x86/efi: Carrying hibernation key by setup data

2015-08-15 Thread joeyli
On Sat, Aug 15, 2015 at 07:07:38PM +0200, Pavel Machek wrote: > On Tue 2015-08-11 14:16:28, Lee, Chun-Yi wrote: > > For forwarding hibernation key from EFI stub to boot kernel, this patch > > allocates setup data for carrying hibernation key, size and the status > > of efi operating. > > > > Revie

[PATCH 2/3] staging: wilc1000: code style: fix globals initialized to false

2015-08-15 Thread Raphaël Beamonte
Globals should not be initialized to 0 or NULL. Signed-off-by: Raphaël Beamonte --- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/wilc_wlan.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/dr

Re: recent updates to networking (26b552e0a85ba7e74d384a9624d83118d38071f7) cause softlocks

2015-08-15 Thread Cong Wang
(CC'ing netdev) On Sat, Aug 15, 2015 at 7:20 PM, Jon Christopherson wrote: > Hello All, > > the recent commit (26b552e0a85ba7e74d384a9624d83118d38071f7) causes > softlocks on my system using the e1000e driver. Kernel builds before this > commit do not experience the behavior. I have opened a bug

Re: [RFCv5 PATCH 40/46] sched/cpufreq_sched: compute freq_new based on capacity_orig_of()

2015-08-15 Thread Michael Turquette
Quoting Peter Zijlstra (2015-08-15 05:46:38) > On Tue, Jul 07, 2015 at 07:24:23PM +0100, Morten Rasmussen wrote: > > diff --git a/kernel/sched/cpufreq_sched.c b/kernel/sched/cpufreq_sched.c > > index 2968f3a..7071528 100644 > > --- a/kernel/sched/cpufreq_sched.c > > +++ b/kernel/sched/cpufreq_sched

Re: [RFCv5 PATCH 41/46] sched/fair: add triggers for OPP change requests

2015-08-15 Thread Michael Turquette
Quoting Peter Zijlstra (2015-08-15 05:48:17) > > > So this OPP thing, I think that got mentioned once earlier in this patch > set, wth is that? OPP == OPerating Point == P-state In System-on-chip Land OPP is a very common term, roughly defined as a frequency & voltage pair that makes up a perfo

[PATCH 5/7] tools/power turbostat: fix typo on DRAM column in Joules-mode

2015-08-15 Thread Len Brown
From: Len Brown < RAM_W > RAM_J Reported-by: Hubert Chrzaniuk Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 915eb28..96

[PATCH 2/7] tools/power turbostat: cpu0 is no longer hard-coded, so update output

2015-08-15 Thread Len Brown
From: Len Brown The --debug option reads a number of per-package MSRs. Previously we explicitly read them on cpu0, but recently turbostat changed to read them on the current "base_cpu". Update the print-out to reflect base_cpu, rather than the hard-coded cpu0. Signed-off-by: Len Brown --- too

[PATCH 3/7] tools/power turbostat: dump CONFIG_TDP

2015-08-15 Thread Len Brown
From: Len Brown Config TDP is a feature that allows parts to be configured for different thermal limits after they have left the factory. This can have an effect on the operation of the part, particularly in determiniing... Max Non-turbo Ratio Turbo Activation Ratio Signed-off-by: Len Brown -

[PATCH 6/7] intel_idle: allow idle states to be freeze-mode specific

2015-08-15 Thread Len Brown
From: Len Brown intel_idle uses a NULL "enter" field in a cpuidle state to recognize the invalid entry terminating a variable-length array. Linux-4.0 added support for the system-wide "freeze" state in cpuidle drivers via the new "enter_freeze" field. The natural way to expose a deep idle state

[PATCH 4/7] tools/power turbostat: fix parameter passing for forked command

2015-08-15 Thread Len Brown
From: Len Brown turbostat supports forked command when sampling cpu state. However, the forked command is not allowed to be executed with options, otherwise turbostat might regard these options as invalid turbostat options. For example: ./turbostat stress -c 4 -t 10 ./turbostat: unrecognized op

[PATCH 7/7] intel_idle: Skylake Client Support

2015-08-15 Thread Len Brown
From: Len Brown Skylake Client CPU idle Power states (C-states) are similar to the previous generation, Broadwell. However, Skylake does get its own table with updated worst-case latency and average energy-break-even residency values. Signed-off-by: Len Brown --- drivers/idle/intel_idle.c | 69

intel_idle, turbostat patches queued for upstream

2015-08-15 Thread Len Brown
Here are some intel_idle and turbostat patches queued for upstream. Please let me know if you see troubles with any of them. Rafael, They are on my "cpuidle" and "turbostat" branches, if you prefer to pull them directly from there. thanks, Len Brown, Intel Open Source Technology Center -- To uns

[PATCH 1/7] tools/power turbostat: update turbostat(8)

2015-08-15 Thread Len Brown
From: Len Brown Remove reference to the original Nehalem Turbo white paper, since it has moved, and these mechanisms have now long since been documented in the Software Developer's Manual. Reported-by: Jeremie Lagraviere Signed-off-by: Len Brown --- tools/power/x86/turbostat/turbostat.8 | 5 -

[PATCH RFC] eeprom: at24: extend driver to plug into the NVMEM framework

2015-08-15 Thread Andrew Lunn
Add a read only regmap for accessing the EEPROM, and then use that with the NVMEM framework. Signed-off-by: Andrew Lunn --- drivers/misc/eeprom/at24.c | 65 ++ 1 file changed, 65 insertions(+) diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eep

recent updates to networking (26b552e0a85ba7e74d384a9624d83118d38071f7) cause softlocks

2015-08-15 Thread Jon Christopherson
Hello All, the recent commit (26b552e0a85ba7e74d384a9624d83118d38071f7) causes softlocks on my system using the e1000e driver. Kernel builds before this commit do not experience the behavior. I have opened a bug report here: https://bugzilla.kernel.org/show_bug.cgi?id=102911 with more details.

[PATCH 04/20] staging: rtl8192u: r8192U_core: fix code indent using spaces code style error

2015-08-15 Thread Raphaël Beamonte
Fix code indent should use tabs where possible code style error Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 1e

[PATCH 13/20] staging: rtl8192u: r8192U_core: fix unnecessary check before kfree code style issue

2015-08-15 Thread Raphaël Beamonte
kfree(NULL) is safe and the checks were not required. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c inde

[PATCH 02/20] staging: rtl8192u: r8192U_core: fix consistent spacing code style error

2015-08-15 Thread Raphaël Beamonte
Fix multiple occurences of the need consistent spacing code style error Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/

[PATCH 14/20] staging: rtl8192u: r8192U_core: fix unnecessary parentheses code style issue

2015-08-15 Thread Raphaël Beamonte
Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 99d7f7c..25d31fe 100644 --- a/drivers/staging/rtl8192u/r8192U_c

[PATCH 15/20] staging: rtl8192u: r8192U_core: fix unnecessary else after return code style issue

2015-08-15 Thread Raphaël Beamonte
An else statement is not useful after a return. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 31 ++- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r819

[PATCH 17/20] staging: rtl8192u: r8192U_core: fix missing blank line after declarations code style issue

2015-08-15 Thread Raphaël Beamonte
Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 44 +++--- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 5aae096..511e979 100644 --- a/d

[PATCH 03/20] staging: rtl8192u: t8192U_core: fix space before close parenthesis code style error

2015-08-15 Thread Raphaël Beamonte
A space existed before the close parenthesis of an if statement. This patch removes it to follow the kernel code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_c

[PATCH 16/20] staging: rtl8192u: r8192U_core: fix unnecessary whitespace code style issue

2015-08-15 Thread Raphaël Beamonte
Whitespaces are not necessary before a quoted newline. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c inde

[PATCH 19/20] staging: rtl8192u: r8192U_core: fix use ether_addr_copy() over memcpy() code style issue

2015-08-15 Thread Raphaël Beamonte
Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2) Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r81

[PATCH 18/20] staging: rtl8192u: r8192U_core: fix quoted string split across lines code style issue

2015-08-15 Thread Raphaël Beamonte
Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 511e979..0048cff 100644 --- a/drivers/staging/rtl8192u/r819

[PATCH 05/20] staging: rtl8192u: r8192U_core: fix else following close brace code style error

2015-08-15 Thread Raphaël Beamonte
Fix else should follow close brace code style error. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index fe92021..80

[PATCH 07/20] staging: rtl8192u: r8192_core: whitespace neatening

2015-08-15 Thread Raphaël Beamonte
Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 270 - 1 file changed, 135 insertions(+), 135 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index b204782..7d3a626 100644 ---

[PATCH 20/20] staging: rtl8192u: r8192U_core: fix line over 80 characters code style issue

2015-08-15 Thread Raphaël Beamonte
Light code refactoring to keep the lines under 80 characters to follow the kernel code style. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 1248 ++-- lib/Kconfig.debug |2 +- 2 files changed, 851 insertions(+),

[PATCH 06/20] staging: rtl8192u: r8192U_core: fix missing struct leading to consistent spacing code style error

2015-08-15 Thread Raphaël Beamonte
A missing struct keyword in variable declaration triggered a need consistent spacing around '*' code style error. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c

[PATCH 08/20] staging: rtl8192u: r8192_core: clean C99 // comments

2015-08-15 Thread Raphaël Beamonte
Replace C99 // comments by /* comments */ to follow the kernel code style. Remove some unuseful comments. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 636 - 1 file changed, 316 insertions(+), 320 deletions(-) diff --git a/drivers/

[PATCH 09/20] staging: rtl8192u: r8192U_core: include linux/uaccess.h instead of asm/uaccess.h

2015-08-15 Thread Raphaël Beamonte
Use #include instead of Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 9477a0f..5bbfa91 100644 --- a/drivers/st

[PATCH 10/20] staging: rtl8192u: r8192U_core: remove return statement of void function

2015-08-15 Thread Raphaël Beamonte
void function return statement was not useful in this case Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 5bbfa91..ff8c197 100644

[PATCH 11/20] staging: rtl8192u: r8192U_core: fix unecessary braces code style issue

2015-08-15 Thread Raphaël Beamonte
braces {} are not necessary for any arm of a statement containing one statement on each side. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/driver

[PATCH 12/20] staging: rtl8192u: r8192U_core: fix externs in .c file code style issue

2015-08-15 Thread Raphaël Beamonte
Externs should be avoided in .c files. These one were not useful and are thus removed. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_cor

[PATCH 00/20] staging: rtl8192u: r8192U_core: fix all checkpatch.pl reports

2015-08-15 Thread Raphaël Beamonte
Hello, This patches series fixes all the checkpatch.pl errors and warnings on the file drivers/staging/rtl8192u/r8192U_core.c. checkpatch.pl tail output before patches: (on staging-testing) total: 334 errors, 402 warnings, 4909 lines checked checkpath.pl output after patches: tota

[PATCH 01/20] staging: rtl8192u: r8192U_core: fix switch and case indent code style error

2015-08-15 Thread Raphaël Beamonte
Some switch and case were not be at the same indent level. Signed-off-by: Raphaël Beamonte --- drivers/staging/rtl8192u/r8192U_core.c | 190 - 1 file changed, 95 insertions(+), 95 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging

Re: Hello everyone <3

2015-08-15 Thread Chuck Ebbert
On Sun, 16 Aug 2015 02:00:34 +0200 noi...@a6.25u.com wrote: > Question: Wouldn't it be a good idea to enforce the Linux trademark > (somewhen) in a way that all these streamlined operating systems use the > word "Linux" more carefully (or not at all) in their promotional > material? To make sur

Hello everyone <3

2015-08-15 Thread noisyb
I'll troll and spread a little FUD on behalf of people who have better manners.. :) This will only /reference/ a few circumstances in user-space and then ask an important question regarding kernel-space. Recently, the user-space side of operating systems (that use the Linux kernel) have been

[PATCH] mm: Change global memory state symbols to GPL-only

2015-08-15 Thread Ben Hutchings
Proprietary modules should not be able to touch vm_stat or participate in shrinking. Signed-off-by: Ben Hutchings --- mm/vmscan.c | 4 ++-- mm/vmstat.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 8286938..e6e7449 100644 --- a/mm/vmscan.c

Re: [PATCH v2 4/8] watchdog: Make set_timeout function optional

2015-08-15 Thread Guenter Roeck
Hi Uwe, On 08/14/2015 12:05 PM, Uwe Kleine-König wrote: Hello Guenter, On Fri, Aug 07, 2015 at 10:02:43PM -0700, Guenter Roeck wrote: For some watchdogs, the hardware timeout is fixed, and the watchdog driver depends on the watchdog core to handle the actual timeout. In this situation, the wat

Re: [PATCH v2 3/8] watchdog: Introduce WDOG_RUNNING flag

2015-08-15 Thread Guenter Roeck
On 08/14/2015 12:04 PM, Uwe Kleine-König wrote: Hello Guenter, diff --git a/Documentation/watchdog/watchdog-kernel-api.txt b/Documentation/watchdog/watchdog-kernel-api.txt index 25b00b878a7b..6a54dc15a556 100644 --- a/Documentation/watchdog/watchdog-kernel-api.txt +++ b/Documentation/watchdog/

Re: [PATCH v2 2/8] watchdog: Introduce hardware maximum timeout in watchdog core

2015-08-15 Thread Guenter Roeck
On 08/14/2015 04:23 AM, Uwe Kleine-König wrote: Hello Guenter, On Fri, Aug 07, 2015 at 10:02:41PM -0700, Guenter Roeck wrote: [...] @@ -61,26 +135,27 @@ static struct watchdog_device *old_wdd; static int watchdog_ping(struct watchdog_device *wdd) { - int err = 0; + int err;

Re: [PATCH v2 2/8] watchdog: Introduce hardware maximum timeout in watchdog core

2015-08-15 Thread Guenter Roeck
Hi Uwe, On 08/13/2015 02:13 PM, Uwe Kleine-König wrote: Hello Guenter, On Fri, Aug 07, 2015 at 10:02:41PM -0700, Guenter Roeck wrote: Introduce an optional hardware maximum timeout in the watchdog core. The hardware maximum timeout can be lower than the maximum timeout. Drivers can set the ma

Re: [PATCH] Staging: vt6655: rf: fix C99 // comments coding style error

2015-08-15 Thread Raphaël Beamonte
> This doesn't apply to my staging-next branch of staging-git :( > > Please rebase and resend. Seems it already has been fixed in your staging-git! I switched to this git for future changes. (was using the linux.git) Thanks! Raphaël -- To unsubscribe from this list: send the line "unsubscribe lin

Re: [PATCH v3 2/2] iio: magnetometer: add mmc34160 magnetometer driver

2015-08-15 Thread Jonathan Cameron
On 15/08/15 21:47, Jonathan Cameron wrote: > On 02/08/15 17:43, Jonathan Cameron wrote: >> On 02/08/15 17:40, Jonathan Cameron wrote: >>> On 31/07/15 15:27, Teodora Baluta wrote: This patch adds support for the MMC34160 3-axis magnetometer driver. The MMC31460 magnetometer driver uses the

Re: [PATCH v3 2/2] iio: magnetometer: add mmc34160 magnetometer driver

2015-08-15 Thread Jonathan Cameron
On 02/08/15 17:43, Jonathan Cameron wrote: > On 02/08/15 17:40, Jonathan Cameron wrote: >> On 31/07/15 15:27, Teodora Baluta wrote: >>> This patch adds support for the MMC34160 3-axis magnetometer driver. The >>> MMC31460 magnetometer driver uses the same register map as MMC35240 with >>> different

Re: [PATCH] spi: Mediatek: fixup cpu_to_le32 incorrect usage

2015-08-15 Thread Arnd Bergmann
On Thursday 13 August 2015 20:06:41 Leilk Liu wrote: > diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c > index ae645fa..519f50c 100644 > --- a/drivers/spi/spi-mt65xx.c > +++ b/drivers/spi/spi-mt65xx.c > @@ -359,11 +359,9 @@ static void mtk_spi_setup_dma_addr(struct spi_master > *m

Re: [PATCH 05/19] staging: iio: Remove unnecessary externs

2015-08-15 Thread Jonathan Cameron
On 15/08/15 21:05, Lars-Peter Clausen wrote: > On 08/15/2015 09:57 PM, Jonathan Cameron wrote: >> On 11/08/15 19:43, Lars-Peter Clausen wrote: >>> On 08/10/2015 11:51 PM, Joe Perches wrote: Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches >>> >>> A

Re: [PATCH v3] iio: adc: vf610: Add IIO buffer support for Vybrid ADC

2015-08-15 Thread Jonathan Cameron
On 11/08/15 10:05, Sanchayan Maity wrote: > This patch adds support for IIO buffer to the Vybrid ADC driver. > IIO triggered buffer infrastructure along with iio sysfs trigger > is used to leverage continuous sampling support provided by the > ADC block. > > Signed-off-by: Sanchayan Maity Hi Sanc

Re: [PATCH] driver/i2c/mux: Add register based mux i2c-mux-reg

2015-08-15 Thread Wolfram Sang
On Tue, Jun 16, 2015 at 10:28:12AM -0700, York Sun wrote: > Based on i2c-mux-gpio driver, similarly the register based mux > switch from one bus to another by setting a single register. > The register can be on PCIe bus, local bus, or any memory-mapped > address. > > Signed-off-by: York Sun > CC:

Re: [RFC v2 0/1] i2c: acpi: scan ACPI enumerated I2C mux channels

2015-08-15 Thread Wolfram Sang
On Fri, Aug 14, 2015 at 12:31:32PM -0700, Dustin Byford wrote: > > (v2 corrects cc: list) And adding Mika to the cc-list who is our I2C and ACPI expert. Mika can you have a look at this and the other patches Dustin sent recently to the i2c list? Thanks, Wolfram > > I would like to add supp

Re: [PATCH] spi: Mediatek: fix endian warnings

2015-08-15 Thread Arnd Bergmann
On Saturday 15 August 2015 22:16:03 Arnd Bergmann wrote: > On Tuesday 11 August 2015 18:43:09 Leilk Liu wrote: > > @@ -359,9 +359,11 @@ static void mtk_spi_setup_dma_addr(struct spi_master > > *master, > > struct mtk_spi *mdata = spi_master_get_devdata(master); > > > > if (mdata-

Re: [PATCH] spi: Mediatek: fix endian warnings

2015-08-15 Thread Arnd Bergmann
On Tuesday 11 August 2015 18:43:09 Leilk Liu wrote: > @@ -359,9 +359,11 @@ static void mtk_spi_setup_dma_addr(struct spi_master > *master, > struct mtk_spi *mdata = spi_master_get_devdata(master); > > if (mdata->tx_sgl) > - writel(cpu_to_le32(xfer->tx_dma), mdata->b

Re: fs: out of bounds on stack in iov_iter_advance

2015-08-15 Thread Chuck Ebbert
On Wed, 12 Aug 2015 10:13:24 -0400 Sasha Levin wrote: > While fuzzing with trinity inside a KVM tools guest running -next I've > stumbled on the following: > > [64092.216447] > == > [64092.217840] BUG: KASan: out of bounds on stac

Re: [PATCH v5 1/2] usb: make xhci platform driver use 64 bit or 32 bit DMA

2015-08-15 Thread Arnd Bergmann
On Saturday 08 August 2015 13:31:02 Duc Dang wrote: > > > > If we know that pdev->dev.dma_mask will always be initialised at this > > point, then the above change is fine. If not, it's introducing a > > regression - dma_set_mask_and_coherent() will fail if pdev->dev.dma_mask > > is NULL (depending

Re: [PATCH 05/19] staging: iio: Remove unnecessary externs

2015-08-15 Thread Lars-Peter Clausen
On 08/15/2015 09:57 PM, Jonathan Cameron wrote: > On 11/08/15 19:43, Lars-Peter Clausen wrote: >> On 08/10/2015 11:51 PM, Joe Perches wrote: >>> Using 'extern' is not necessary for function prototypes. >>> >>> Signed-off-by: Joe Perches >> >> Acked-by: Lars-Peter Clausen >> > Applied to the togre

Re: [PATCH 2/2] Staging: iio: trigger: Use braces on both branches of if statement

2015-08-15 Thread Jonathan Cameron
On 11/08/15 11:20, Cristina Opriceana wrote: > Fix style issue related to missing braces, detected by checkpatch.pl. > > Signed-off-by: Cristina Opriceana Applied to the togreg branch of iio.git. This one used to be left as optional, so there are a lot of these in older code (and in IIO you don'

Re: [PATCH 1/2] Staging: iio: trigger: Alignment should match open parenthesis

2015-08-15 Thread Jonathan Cameron
On 11/08/15 11:18, Cristina Opriceana wrote: > Fix alignment for function parameters as suggested by checkpatch.pl. > > Signed-off-by: Cristina Opriceana Whilst I find it a little hard to care about tidying up in these two drivers, we haven't explicitly noted they are both on their way out in the

Re: [PATCH 05/19] staging: iio: Remove unnecessary externs

2015-08-15 Thread Jonathan Cameron
On 11/08/15 19:43, Lars-Peter Clausen wrote: > On 08/10/2015 11:51 PM, Joe Perches wrote: >> Using 'extern' is not necessary for function prototypes. >> >> Signed-off-by: Joe Perches > > Acked-by: Lars-Peter Clausen > Applied to the togreg branch of iio.git. 4.4 material now probably. Thanks,

Re: [PATCH v4] iio: adc: xilinx-xadc: Push interrupts into hardirq context

2015-08-15 Thread Jonathan Cameron
On 12/08/15 17:33, Sebastian Andrzej Siewior wrote: > On 08/12/2015 05:17 PM, Lars-Peter Clausen wrote: >> On 08/12/2015 01:00 AM, Xander Huff wrote: >>> Unfortunately, this breaks PREEMPT_RT builds, where a spinlock can sleep, >>> and is thus not able to be acquired from a hardirq handler. This pa

Re: [RFCv5 PATCH 38/46] sched: scheduler-driven cpu frequency selection

2015-08-15 Thread Peter Zijlstra
On Tue, Jul 07, 2015 at 07:24:21PM +0100, Morten Rasmussen wrote: > diff --git a/kernel/sched/cpufreq_sched.c b/kernel/sched/cpufreq_sched.c > new file mode 100644 > index 000..5020f24 > --- /dev/null > +++ b/kernel/sched/cpufreq_sched.c > @@ -0,0 +1,308 @@ > +/* > + * Copyright (C) 2015 Mich

Re: [RFCv5 PATCH 40/46] sched/cpufreq_sched: compute freq_new based on capacity_orig_of()

2015-08-15 Thread Peter Zijlstra
On Tue, Jul 07, 2015 at 07:24:23PM +0100, Morten Rasmussen wrote: > diff --git a/kernel/sched/cpufreq_sched.c b/kernel/sched/cpufreq_sched.c > index 2968f3a..7071528 100644 > --- a/kernel/sched/cpufreq_sched.c > +++ b/kernel/sched/cpufreq_sched.c > @@ -184,7 +184,7 @@ void cpufreq_sched_set_cap(int

Re: [RFCv5 PATCH 38/46] sched: scheduler-driven cpu frequency selection

2015-08-15 Thread Peter Zijlstra
On Tue, Jul 07, 2015 at 07:24:21PM +0100, Morten Rasmussen wrote: > +void cpufreq_sched_set_cap(int cpu, unsigned long capacity) > +{ > + unsigned int freq_new, cpu_tmp; > + struct cpufreq_policy *policy; > + struct gov_data *gd; > + unsigned long capacity_max = 0; > + > + /* up

Re: [RFCv5 PATCH 41/46] sched/fair: add triggers for OPP change requests

2015-08-15 Thread Peter Zijlstra
So this OPP thing, I think that got mentioned once earlier in this patch set, wth is that? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please rea

Re: [RFCv5 PATCH 36/46] sched: Prevent unnecessary active balance of single task in sched group

2015-08-15 Thread Peter Zijlstra
On Tue, Jul 07, 2015 at 07:24:19PM +0100, Morten Rasmussen wrote: > Scenarios with the busiest group having just one task and the local > being idle on topologies with sched groups with different numbers of > cpus manage to dodge all load-balance bailout conditions resulting the > nr_balance_failed

Re: [RFCv5 PATCH 34/46] sched: Enable idle balance to pull single task towards cpu with higher capacity

2015-08-15 Thread Peter Zijlstra
On Tue, Jul 07, 2015 at 07:24:17PM +0100, Morten Rasmussen wrote: > +++ b/kernel/sched/fair.c > @@ -7569,6 +7569,13 @@ static int need_active_balance(struct lb_env *env) > return 1; > } > > + if ((capacity_of(env->src_cpu) < capacity_of(env->dst_cpu)) && > +

Re: [RFCv5 PATCH 35/46] sched: Disable energy-unfriendly nohz kicks

2015-08-15 Thread Peter Zijlstra
On Tue, Jul 07, 2015 at 07:24:18PM +0100, Morten Rasmussen wrote: > With energy-aware scheduling enabled nohz_kick_needed() generates many > nohz idle-balance kicks which lead to nothing when multiple tasks get > packed on a single cpu to save energy. This causes unnecessary wake-ups > and hence wa

Re: [RFCv5 PATCH 39/46] sched/cpufreq_sched: use static key for cpu frequency selection

2015-08-15 Thread Peter Zijlstra
On Wed, Jul 08, 2015 at 08:19:56AM -0700, Michael Turquette wrote: > > @@ -254,6 +267,7 @@ static int cpufreq_sched_stop(struct cpufreq_policy > > *policy) > > { > > struct gov_data *gd = policy->governor_data; > > > > + clear_sched_energy_freq(); > > > > These controls are exp

Re: [PATCH v2] staging: iio: hmc5843: Set iio name dynamically

2015-08-15 Thread Jonathan Cameron
On 12/08/15 16:21, Lars-Peter Clausen wrote: > On 08/12/2015 03:25 PM, sdliy...@gmail.com wrote: >> From: Yong Li >> >> Load the driver using the below command: >> echo hmc5983 0x1e > /sys/bus/i2c/devices/i2c-?/new_device >> >> In sysfs, the iio name is hmc5843, however the i2c name is hmc5983, >>

[PATCH] mm/memblock: check memblock_reserve on fail in memblock_virt_alloc_internal

2015-08-15 Thread Alexander Kuleshov
This patch adds a check for memblock_reserve() call in the memblock_virt_alloc_internal() function, because memblock_reserve() can return -errno on fail. Signed-off-by: Alexander Kuleshov --- mm/memblock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/memblock.c b/mm/

Mail

2015-08-15 Thread Dr. Mohammad Saoud
Dear Beneficiary, This is to inform you that you were among the lucky beneficiary selected to receive this donations award sum of Eur950,000.00, as charity donations/aid from the Qatar Foundation held in Doha, Qatar, to promote your business and personal Interest. Kindly get back for more det

Re: [PATCH 1/2] crypto: KEYS: convert public key to the akcipher API

2015-08-15 Thread Stephan Mueller
Am Mittwoch, 12. August 2015, 20:54:39 schrieb Tadeusz Struk: Hi Tadeusz, >@@ -41,7 +41,7 @@ struct pkcs7_parse_context { > static void pkcs7_free_signed_info(struct pkcs7_signed_info *sinfo) > { > if (sinfo) { >- mpi_free(sinfo->sig.mpi[0]); >+ kfree(sinfo->sig.s)

Re: [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation

2015-08-15 Thread Dan Williams
On Sat, Aug 15, 2015 at 9:00 AM, Christoph Hellwig wrote: > On Sat, Aug 15, 2015 at 08:44:27AM -0700, Dan Williams wrote: >> That said, while we don't need special accessors we do need guarantees >> that anything that has written to a persistent memory address has done >> so in a way that wmb_pmem

Re: [PATCH] coccinelle: add style check for assignment in if

2015-08-15 Thread Julia Lawall
My version is below. It adds parentheses in a few more places, and allows assignments without a binary operator (b) in the && cases. Also I threw in a case for things like: if (ret = -ENOENT, !data) Another thing is that the header is not really correct. It should be in the following format:

Re: [PATCH] coccinelle: add style check for assignment in if

2015-08-15 Thread Kris Borer
I apologize, I misunderstood your email. It is the same as RFC v2. On Sat, Aug 15, 2015 at 1:30 PM, Julia Lawall wrote: > > > On Sat, 15 Aug 2015, Kris Borer wrote: > >> Add a semantic patch for fixing some cases of checkpatch.pl error: >> >> ERROR: do not use assignment in if condition >> >> Rev

Re: [PATCH] coccinelle: add style check for assignment in if

2015-08-15 Thread Julia Lawall
On Sat, 15 Aug 2015, Kris Borer wrote: > Add a semantic patch for fixing some cases of checkpatch.pl error: > > ERROR: do not use assignment in if condition > > Reviewed-by: Julia Lawall Sorry, but I'm not done reviewing it. I have a lot of changes to propose. Is this different than the R

[PATCHv3] serial: don't register CIR serial ports

2015-08-15 Thread Maciej S. Szmigiero
CIR type serial ports aren't real serial ports. This is just a way to prevent legacy 8250 serial driver from probing and eventually binding some resources. Since in current state such ports aren't providing any real functionality and it is not possible to change their type via setserial/ioctl(TIO

[PATCH] coccinelle: add style check for assignment in if

2015-08-15 Thread Kris Borer
Add a semantic patch for fixing some cases of checkpatch.pl error: ERROR: do not use assignment in if condition Reviewed-by: Julia Lawall Signed-off-by: Kris Borer --- scripts/coccinelle/style/assignment_in_if.cocci | 92 + 1 file changed, 92 insertions(+) create mode

Re: [GIT PULL] Thermal-SoC management updates for v4.2-rc7

2015-08-15 Thread Eduardo Valentin
Rui, On Sat, Aug 15, 2015 at 10:14:45AM -0700, Eduardo Valentin wrote: > Hello Rui, > > Please pull from > > git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal > fixes > > to receive Thermal-SoC Management updates for v4.2-rc7 with top-most > > 1afb9c539daebc2c8a7b33d0

[GIT PULL] Thermal-SoC management updates for v4.2-rc7

2015-08-15 Thread Eduardo Valentin
Hello Rui, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal fixes to receive Thermal-SoC Management updates for v4.2-rc7 with top-most 1afb9c539daebc2c8a7b33d0e0b8fc9f74671b02: thermal/cpu_cooling: update policy limits if clipped_freq < policy->max

Re: [PATCH v2 08/16] x86/efi: Carrying hibernation key by setup data

2015-08-15 Thread Pavel Machek
On Tue 2015-08-11 14:16:28, Lee, Chun-Yi wrote: > For forwarding hibernation key from EFI stub to boot kernel, this patch > allocates setup data for carrying hibernation key, size and the status > of efi operating. > > Reviewed-by: Jiri Kosina Jiri, are you sure you reviewed these? This is not r

Re: More hw_breakpoint scariness reduction

2015-08-15 Thread Frederic Weisbecker
2015-08-15 0:38 GMT+02:00 Andy Lutomirski : > Would you all consider it acceptable to disallow watchpoints on per > cpu data entirely? I can think of a *lot* of places where hitting #DB > when accessing per cpu data from entry asm would be bad. > > Of course, actually implementing that might be le

[PATCH] mm/memblock: rename local variable of memblock_type to 'type'

2015-08-15 Thread Alexander Kuleshov
Since the e3239ff92a1 commit (memblock: Rename memblock_region to memblock_type and memblock_property to memblock_region), all local variables of the membock_type type were renamed to 'type'. This commit renames all remaining local variables with the memblock_type type to the same view. Signed-off

Re: [PATCH] rtlwifi: rtl8192ee: fix semicolon.cocci warnings

2015-08-15 Thread Larry Finger
On 08/15/2015 05:36 AM, kbuild test robot wrote: drivers/net/wireless/rtlwifi/rtl8192ee/phy.c:856:2-3: Unneeded semicolon drivers/net/wireless/rtlwifi/rtl8192ee/phy.c:492:3-4: Unneeded semicolon drivers/net/wireless/rtlwifi/rtl8192ee/phy.c:452:3-4: Unneeded semicolon Remove unneeded semicolon

Re: [PATCH 4.1 00/84] 4.1.6-stable review

2015-08-15 Thread Greg Kroah-Hartman
On Sat, Aug 15, 2015 at 08:21:43AM -0700, Guenter Roeck wrote: > On Fri, Aug 14, 2015 at 10:41:28AM -0700, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.1.6 release. > > There are 84 patches in this series, all will be posted as a response > > to this one. If

[PATCH] snic: fix simple_return.cocci warnings

2015-08-15 Thread kbuild test robot
drivers/scsi/snic/vnic_cq.c:46:1-4: WARNING: end returns can be simpified and declaration on line 34 can be dropped Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Narsimhulu Musini Signed-

Applied "regulator: pbias: Fix broken pbias disable functionality" to the regulator tree

2015-08-15 Thread Mark Brown
The patch regulator: pbias: Fix broken pbias disable functionality has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH] staging: lustre: ptlrpc: add missing include directive

2015-08-15 Thread Greg KH
On Sat, Aug 15, 2015 at 11:13:39AM +0300, Ioan-Adrian Ratiu wrote: > On Fri, 14 Aug 2015 18:50:24 -0700 > Greg KH wrote: > > > On Fri, Aug 14, 2015 at 12:57:06PM +0300, Ioan-Adrian Ratiu wrote: > > > Without including ptlrpc_internal.h, GCC gives prototype warnings > > > "pack_generic.c:642:5: wa

Re: [PATCH] mm/memblock: validate the creation of debugfs files

2015-08-15 Thread Greg Kroah-Hartman
On Sat, Aug 15, 2015 at 12:38:30AM -0700, Andrew Morton wrote: > On Sat, 15 Aug 2015 13:26:36 +0600 Alexander Kuleshov > wrote: > > > Hello Andrew, > > > > On 08-14-15, Andrew Morton wrote: > > > On Sat, 15 Aug 2015 01:03:31 +0600 Alexander Kuleshov > > > wrote: > > > > > > > Signed-off-by:

Re: [RFC PATCH 5/7] libnvdimm, e820: make CONFIG_X86_PMEM_LEGACY a tristate option

2015-08-15 Thread Dan Williams
On Sat, Aug 15, 2015 at 8:58 AM, Christoph Hellwig wrote: > On Sat, Aug 15, 2015 at 08:28:35AM -0700, Dan Williams wrote: >> I'm not grokking the argument against allowing this functionality to >> be modular. > > You're adding a another layer of platform_devices just to make a tivially > small pie

Re: [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation

2015-08-15 Thread Christoph Hellwig
On Sat, Aug 15, 2015 at 08:44:27AM -0700, Dan Williams wrote: > That said, while we don't need special accessors we do need guarantees > that anything that has written to a persistent memory address has done > so in a way that wmb_pmem() is able to flush it. It's more of a "I've > audited this cod

Re: [RFC PATCH 5/7] libnvdimm, e820: make CONFIG_X86_PMEM_LEGACY a tristate option

2015-08-15 Thread Christoph Hellwig
On Sat, Aug 15, 2015 at 08:28:35AM -0700, Dan Williams wrote: > I'm not grokking the argument against allowing this functionality to > be modular. You're adding a another layer of platform_devices just to make a tivially small piece of code modular so that you can hook into it. I don't think that

[PATCH] drm/nouveau/fifo: fix simple_return.cocci warnings

2015-08-15 Thread kbuild test robot
drivers/gpu/drm/nouveau/nvkm/engine/fifo/g84.c:396:1-4: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci Signed-off-by: Fengguang Wu --- g84.c |6 +---

[PATCH] drm/nouveau/fifo: fix simple_return.cocci warnings

2015-08-15 Thread kbuild test robot
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c:340:1-4: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci Signed-off-by: Fengguang Wu --- gf100.c |6

Re: [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation

2015-08-15 Thread Dan Williams
On Sat, Aug 15, 2015 at 2:11 AM, Christoph Hellwig wrote: > On Fri, Aug 14, 2015 at 09:58:16AM -0700, Dan Williams wrote: >> > I'll merge with your code for v3. >> >> Sounds, let me go rebase the __pfn_t patches on -mm so we'all lined up >> and collision free. > > I'm doubt that we'll have PFN map

Re: [PATCH 0/2] blk-mq: two fixes

2015-08-15 Thread Jens Axboe
On 08/14/2015 07:10 PM, Ming Lei wrote: On Sun, Aug 9, 2015 at 3:41 PM, Ming Lei wrote: Hi Jens, The 1st patch fixes one buffer overflow issue when reading sysfs file of hctx's pending. The 2nd patch fixes one race between timeout and request freeing, which also simplifies implementation of b

Re: [PATCH v2 7/7] pmem, dax: have direct_access use __pmem annotation

2015-08-15 Thread Dan Williams
On Sat, Aug 15, 2015 at 2:19 AM, Christoph Hellwig wrote: > On Thu, Aug 13, 2015 at 10:51:11AM -0600, Ross Zwisler wrote: >> Update the annotation for the kaddr pointer returned by direct_access() >> so that it is a __pmem pointer. This is consistent with the PMEM driver >> and with how this dire

  1   2   >