[PATCH 2/2] ARM: dts: exynos542x: add GSCL block parent clock management to pm domain

2015-12-08 Thread Marek Szyprowski
Add support for restoring GScaler parent clocks configuration when GSCL power domain is turned on. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos5420.dtsi | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dt

[PATCH v3] perf/core: Put size of a sample at the end of it by PERF_SAMPLE_TAILSIZE

2015-12-08 Thread Wang Nan
This patch introduces a PERF_SAMPLE_TAILSIZE flag which allows a size field attached at the end of a sample. The idea comes from [1] that, with tie size at tail of an event, it is possible for user program who read from the ring buffer parse events backward. For example: head | V +--+

Re: Kernel patch

2015-12-08 Thread Jiri Kosina
On Mon, 14 Sep 2015, Максим Шевяков wrote: > This EXTREMELY trivial patch adds the missing PCIID in > drivers/gpu/drm/radeon/si_dpm.c for MSI R7 370 Armor 2X card (and probably > other GPUs based upon R7 370). Without this patch the screen will be full > of vertical white stripes on the modesettin

Re: [PATCH][experimantal] cpufreq: governor: Use an atomic variable for synchronization

2015-12-08 Thread Rafael J. Wysocki
On Tuesday, December 08, 2015 07:06:33 PM Viresh Kumar wrote: > On 08-12-15, 14:30, Rafael J. Wysocki wrote: > > OK, but instead of relying on the spinlock to wait for the already running > > That's the purpose of the spinlock, not a side-effect. > > > dbs_timer_handler() in gov_cancel_work() (wh

Re: [PATCH v7 2/6] mfd: syscon: add a DT property to set value width

2015-12-08 Thread Lee Jones
On Mon, 07 Dec 2015, Damien Riegel wrote: > On Mon, Dec 07, 2015 at 09:40:20AM +, Lee Jones wrote: > > On Mon, 30 Nov 2015, Damien Riegel wrote: > > > > > Currently syscon has a fixed configuration of 32 bits for register and > > > values widths. In some cases, it would be desirable to be abl

Re: [PATCH v3 1/9] device core: add BUS_NOTIFY_DRIVER_NOT_BOUND notification

2015-12-08 Thread Andy Shevchenko
On Tue, Dec 8, 2015 at 4:05 PM, Rafael J. Wysocki wrote: > On Tuesday, December 08, 2015 02:32:00 PM Thomas Gleixner wrote: >> On Mon, 7 Dec 2015, Rafael J. Wysocki wrote: >> > On Monday, December 07, 2015 12:57:33 PM Andy Shevchenko wrote: >> > > > Andy, what about if I put patches [1-6/9] into m

Re: [PATCH] fs/super.c: use && instead of & for warn_on condition

2015-12-08 Thread Jiri Kosina
On Mon, 21 Sep 2015, Oleg Nesterov wrote: > > --- a/fs/super.c > > +++ b/fs/super.c > > @@ -1199,7 +1199,7 @@ int __sb_start_write(struct super_block *sb, int > > level, bool wait) > > else > > ret = percpu_down_read_trylock(sb->s_writers.rw_sem + level-1); > > > > - WARN_ON(for

[PATCH v2 net-next 3/3] bindings: ethernet: macb: Add optional caps properties

2015-12-08 Thread Neil Armstrong
Add generic caps properties to the binding in order to support future macb/gem implementations with the generic macb compatible form. Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/net/macb.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/dev

[PATCH v2 net-next 0/3] Add new capability and parse from DT

2015-12-08 Thread Neil Armstrong
The first patch introduces a new capability bit to disable usage of the USRIO register on platform not implementing it thus avoiding some external imprecise aborts on ARM based platforms. The two last patchs implements a DT fallback to get the software defined capabilities from DT in the case of t

[PATCH v2 net-next 2/3] net: ethernet: cadence-macb: Add fallback to read DT provided caps

2015-12-08 Thread Neil Armstrong
Add 1:1 mapping of software defines caps parsing from DT in case the generic macb compatible form is used. These properties will provide support for futures implementations only defined from DT without need to update the driver code to support new variants. Signed-off-by: Neil Armstrong --- driv

[PATCH v2 net-next 1/3] net: ethernet: cadence-macb: Add disabled usrio caps

2015-12-08 Thread Neil Armstrong
On some platforms, the macb integration does not use the USRIO register to configure the (R)MII port and clocks. When the register is not implemented and the MACB error signal is connected to the bus error, reading or writing to the USRIO register can trigger some Imprecise External Aborts on ARM p

Re: [PATCH 0/7] perf stat: Change event enable code

2015-12-08 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 08, 2015 at 09:29:51AM +0200, Adrian Hunter escreveu: > On 07/12/15 23:09, Arnaldo Carvalho de Melo wrote: > > Em Thu, Dec 03, 2015 at 10:06:39AM +0100, Jiri Olsa escreveu: > >> while testing ftrace:function event I noticed we create > >> stat counters as enabled (except for enable_on_e

Re: [PATCH][experimantal] cpufreq: governor: Use an atomic variable for synchronization

2015-12-08 Thread Viresh Kumar
On 08-12-15, 15:19, Rafael J. Wysocki wrote: > We know what should be done. We need to wait for the timer function to > complete, then cancel the work item spawned by it (if any) and then > cancel the timers set by that work item. Yeah, there is no race, but it looks ugly to me. I have written it

Re: [PATCH] mfd: da9063: Allow modular build

2015-12-08 Thread Lee Jones
On Mon, 07 Dec 2015, Geert Uytterhoeven wrote: > Allow support for the DA9063 PMIC to be modular, cfr. DA9062, which > allows to decrease size of multi-platform kernels (e.g. > multi_v7_defconfig). > > Signed-off-by: Geert Uytterhoeven > --- > drivers/mfd/Kconfig | 2 +- > 1 file changed, 1 ins

Re: [PATCH][experimantal] cpufreq: governor: Use an atomic variable for synchronization

2015-12-08 Thread Rafael J. Wysocki
On Tuesday, December 08, 2015 07:25:18 PM Viresh Kumar wrote: > On 08-12-15, 15:19, Rafael J. Wysocki wrote: > > We know what should be done. We need to wait for the timer function to > > complete, then cancel the work item spawned by it (if any) and then > > cancel the timers set by that work ite

[PATCH] mm: page_alloc: fix variable type in zonelist type iteration

2015-12-08 Thread Johannes Weiner
/home/hannes/src/linux/linux/mm/page_alloc.c: In function ‘build_zonelists’: /home/hannes/src/linux/linux/mm/page_alloc.c:4171:16: warning: comparison between ‘enum zone_type’ and ‘enum ’ [-Wenum-compare] for (i = 0; i < MAX_ZONELISTS; i++) { ^ MAX_ZONELISTS has never been of en

[PATCH 6/6] eeprom: 93xx46: extend driver to plug into the NVMEM framework

2015-12-08 Thread Andrew Lunn
Add a regmap for accessing the EEPROM, and then use that with the NVMEM framework. Use it backward compatibility register function, so that the 'eeprom' file in sys is provided by the framework. Signed-off-by: Andrew Lunn --- drivers/misc/eeprom/Kconfig | 3 + drivers/misc/eeprom/eepro

[PATCH 4/6] eeprom: at25: Remove in kernel API for accessing the EEPROM

2015-12-08 Thread Andrew Lunn
The setup() callback is not used by any in kernel code. Remove it. Any new code which requires access to the eeprom can use the NVMEM API. Signed-off-by: Andrew Lunn --- drivers/misc/eeprom/at25.c | 26 -- include/linux/spi/eeprom.h | 2 -- 2 files changed, 28 deletions(

[PATCH 2/6] nvmem: Add backwards compatibility support for older EEPROM drivers.

2015-12-08 Thread Andrew Lunn
Older drivers made an 'eeprom' file available in the /sys device directory. Have the NVMEM core provide this to retain backwards compatibility. Signed-off-by: Andrew Lunn --- drivers/nvmem/Kconfig | 7 drivers/nvmem/core.c | 75 +++---

[PATCH 1/6] nvmem: Add flag to export NVMEM to root only

2015-12-08 Thread Andrew Lunn
Legacy AT24, AT25 EEPROMs are exported in sys so that only root can read the contents. The EEPROMs may contain sensitive information. Add a flag so the provide can indicate that NVMEM should also restrict access to root only. Signed-off-by: Andrew Lunn --- drivers/nvmem/core.c | 57 +++

[PATCH 3/6] eeprom: at24: extend driver to plug into the NVMEM framework

2015-12-08 Thread Andrew Lunn
Add a regmap for accessing the EEPROM, and then use that with the NVMEM framework. Use it backward compatibility register function, so that the 'eeprom' file in sys is provided by the framework. Signed-off-by: Andrew Lunn --- drivers/misc/eeprom/Kconfig | 3 ++ drivers/misc/eeprom/at24.c | 11

[PATCH 5/6] eeprom: at25: extend driver to plug into the NVMEM framework

2015-12-08 Thread Andrew Lunn
Add a regmap for accessing the EEPROM, and then use that with the NVMEM framework. Use it backward compatibility register function, so that the 'eeprom' file in sys is provided by the framework. Signed-off-by: Andrew Lunn --- drivers/misc/eeprom/Kconfig | 3 ++ drivers/misc/eeprom/at25.c | 12

[PATCH 0/6] Convert existing EEPROM drivers to NVMEM

2015-12-08 Thread Andrew Lunn
This patches converts the old EEPROM drivers in driver/misc/eeprom to use the NVMEM framework. These drivers export there content in /sys as read only to root, since the EEPROM may contain sensitive information. So the first patch adds a flag so the NVMEM framework will create its file in /sys as r

Re: [PATCH v4] acpi, apei, arm64: APEI initial support for aarch64.

2015-12-08 Thread Lorenzo Pieralisi
On Tue, Dec 08, 2015 at 09:08:24PM +0800, Fu Wei wrote: > Hi Lorenzo, > > > > On 8 December 2015 at 20:52, Hanjun Guo wrote: > > Hi Lorenzo, > > > > On 12/08/2015 08:34 PM, Lorenzo Pieralisi wrote: > >> > >> On Tue, Dec 08, 2015 at 03:03:03PM +0800, fu@linaro.org wrote: > >>> > >>> From: To

Re: [PATCH v9 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-08 Thread Boris Brezillon
On Thu, 3 Dec 2015 12:02:21 + Harvey Hunt wrote: > From: Alex Smith > > Add a driver for NAND devices connected to the NEMC on JZ4780 SoCs, as > well as the hardware BCH controller. DMA is not currently implemented. > > While older 47xx SoCs also have a BCH controller, they are incompatibl

Re: [PATCH] floppy: make local variable non-static

2015-12-08 Thread Jiri Kosina
On Tue, 1 Dec 2015, Rasmus Villemoes wrote: > There's no reason for temparea to be static, since it's only used for > temporary sprintf output. It's not immediately obvious that the output > will always fit (in the worst case, the output including '\0' is > exactly 32 bytes), so save a future read

[PATCH] [media] exynos4-is: fix a format string bug

2015-12-08 Thread Rasmus Villemoes
Ironically, 7d4020c3c400 ("[media] exynos4-is: fix some warnings when compiling on arm64") fixed some format string bugs but introduced a new one. buf_index is a simple int, so it should be printed with %d, not %pad (which is correctly used for dma_addr_t). Fixes: 7d4020c3c400 ("[media] exynos4-is

Re: [PATCH v9 1/3] dt-bindings: binding for jz4780-{nand,bch}

2015-12-08 Thread Boris Brezillon
On Thu, 3 Dec 2015 12:02:20 + Harvey Hunt wrote: > From: Alex Smith > > Add DT bindings for NAND devices connected to the NEMC on JZ4780 SoCs, > as well as the hardware BCH controller, used by the jz4780_{nand,bch} > drivers. > > Signed-off-by: Alex Smith > Cc: Zubair Lutfullah Kakakhel

Re: [PATCH 09/34] x86, pkeys: store protection in high VMA flags

2015-12-08 Thread Thomas Gleixner
On Thu, 3 Dec 2015, Dave Hansen wrote: > vma->vm_flags is an 'unsigned long', so has space for 32 flags > on 32-bit architectures. The high 32 bits are unused on 64-bit > platforms. We've steered away from using the unused high VMA > bits for things because we would have difficulty supporting it

Re: [PATCH v7 2/6] mfd: syscon: add a DT property to set value width

2015-12-08 Thread Lee Jones
On Tue, 08 Dec 2015, Lee Jones wrote: > On Mon, 07 Dec 2015, Damien Riegel wrote: > > > On Mon, Dec 07, 2015 at 09:40:20AM +, Lee Jones wrote: > > > On Mon, 30 Nov 2015, Damien Riegel wrote: > > > > > > > Currently syscon has a fixed configuration of 32 bits for register and > > > > values w

Re: [PATCH 1/2] x86: Fix kernel panic when booting with XD disabled in uEFI firmware

2015-12-08 Thread Borislav Petkov
On Tue, Dec 08, 2015 at 12:25:57PM +, Matt Fleming wrote: > On Mon, 07 Dec, at 11:10:43PM, Kosuke Tatsukawa wrote: > > > > Thank you pointing that out. > > > > linux-4.4-rc3 booted without a problem on a real server even with XD > > turned off by the firmware. I didn't notice this before bec

Re: [PATCH] usb: musb: dsps: handle the otg_state_a_wait_vrise_timeout case

2015-12-08 Thread Felipe Balbi
Hi, Gregory CLEMENT writes: if it is the case then it didn't fix the issue I had. I activated the following debug line: [musb_hdrc]musb_interrupt =_ "** IRQ %s usb%04x tx%04x rx%04x\012" [musb_dsps]dsps_interrupt =p "usbintr (%x) epintr(%x)\012" But I didn

[PATCH] ext4: use list_for_each_entry*

2015-12-08 Thread Geliang Tang
Use list_for_each_entry*() instead of list_for_each*() to simplify the code. Signed-off-by: Geliang Tang --- fs/ext4/mballoc.c | 22 +++--- fs/ext4/super.c | 27 +-- 2 files changed, 16 insertions(+), 33 deletions(-) diff --git a/fs/ext4/mballoc.c b/fs/

Re: [PATCH v9 3/3] MIPS: dts: jz4780/ci20: Add NEMC, BCH and NAND device tree nodes

2015-12-08 Thread Boris Brezillon
On Thu, 3 Dec 2015 12:02:22 + Harvey Hunt wrote: > From: Alex Smith > > Add device tree nodes for the NEMC and BCH to the JZ4780 device tree, > and make use of them in the Ci20 device tree to add a node for the > board's NAND. > > Note that since the pinctrl driver is not yet upstream, thi

[PATCH] [SCSI] osd: fix signed char versus %02x issue

2015-12-08 Thread Rasmus Villemoes
If char is signed and one of these bytes happen to have a value outside the ascii range, the corresponding output will consist of "ff" followed by the two hex chars that were actually intended. One way to fix it would be to change the casts to (u8*) aka (unsigned char*), but it is much simpler

[PATCH] LDM: use list_for_each_entry*

2015-12-08 Thread Geliang Tang
Use list_for_each_entry*() instead of list_for_each*() to simplify the code. Fix coding style by the way. Signed-off-by: Geliang Tang --- block/partitions/ldm.c | 108 ++--- 1 file changed, 49 insertions(+), 59 deletions(-) diff --git a/block/partitio

Re: [PATCH v2 1/8] spi: lm70llp: remove multiple blank lines

2015-12-08 Thread Sudip Mukherjee
On Tue, Dec 08, 2015 at 12:49:56PM +, Mark Brown wrote: > On Tue, Dec 08, 2015 at 10:03:00AM +0530, Sudip Mukherjee wrote: > > > I think there is some confusion. I am not seeing v1 of these patches in > > for-next branch of your spi tree. And in review of v1 you said to use > > dev_*. And for

Re: [PATCH] usb: musb: dsps: handle the otg_state_a_wait_vrise_timeout case

2015-12-08 Thread Bin Liu
Felipe, On 12/08/2015 08:20 AM, Felipe Balbi wrote: Hi, Gregory CLEMENT writes: if it is the case then it didn't fix the issue I had. I activated the following debug line: [musb_hdrc]musb_interrupt =_ "** IRQ %s usb%04x tx%04x rx%04x\012" [musb_dsps]dsps_interrupt =p "usbintr (%x) epintr(%

Re: [PATCH linux-next 0/5] mtd: spi-nor: add driver for Atmel QSPI controller

2015-12-08 Thread Cyrille Pitchen
Le 08/12/2015 11:25, Cyrille Pitchen a écrit : > Hi Brian, > > Le 07/12/2015 20:34, Brian Norris a écrit : [...] >> Also, I see a lot of good comments in patch 2 about Spansion vs. >> Macronix vs. Micron memories. I wonder if previous developers have >> completely tested their patches, or if they'

Re: [PATCH V7 2/3] dma: add Qualcomm Technologies HIDMA management driver

2015-12-08 Thread Sinan Kaya
On 12/5/2015 2:58 AM, Vinod Koul wrote: > On Tue, Dec 01, 2015 at 11:57:34PM -0500, Sinan Kaya wrote: >> On 11/30/2015 10:17 PM, Vinod Koul wrote: >>> On Mon, Nov 30, 2015 at 09:42:01AM -0500, Sinan Kaya wrote: >>> >> +static int hidma_mgmt_probe(struct platform_device *pdev) >> +{ >> +

Re: [PATCH] mips: mm: fix build failure

2015-12-08 Thread Sudip Mukherjee
On Tue, Dec 08, 2015 at 09:01:07PM +0800, Chen Gang wrote: > On 12/7/15 20:09, Sudip Mukherjee wrote: > > We are having build failure with mips defconfig with the error: > > "MADV_FREE" redefined. > > > > commit d53d95838c7d introduced uniform values for all architecture but > > missed removing th

[PATCH v5 08/11] ARM: STi: Register CPUFreq device

2015-12-08 Thread Lee Jones
DT will not allow pseudo-devices. Only devices which represent real hardware are permitted. So we have to register the CPUFreq driver from platform code instead. Rather than create a new file, we're bundling this in with the SMP functionality and renaming it from 'smp' to the more generic 'cpu'.

[PATCH v5 06/11] ARM: STi: STiH407: Link CPU with its voltage supply

2015-12-08 Thread Lee Jones
Used for Voltage Scaling using CPUFreq. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index af9233b..d0e639cd 100644 --- a/arch/arm/boot/dts/sti

[PATCH v5 07/11] ARM: STi: STiH407: Provide CPU with a means to look-up Major number

2015-12-08 Thread Lee Jones
This is used for CPU Frequency Scaling. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index d0e639cd..eb2601f 100644 --- a/arch/arm/boot/dts/sti

Re: [PATCH 10/19] mfd: arizona-i2c: Add blank line formatting after declaration

2015-12-08 Thread Charles Keepax
On Mon, Dec 07, 2015 at 11:50:23AM +, Lee Jones wrote: > WARNING: Missing a blank line after declarations > + struct arizona *arizona = dev_get_drvdata(&i2c->dev); > + arizona_dev_exit(arizona); > > total: 0 errors, 1 warnings, 120 lines checked > > Cc: patc...@opensource.wolfsonm

[PATCH v5 04/11] ARM: STi: STiH407: Provide generic (safe) DVFS configuration

2015-12-08 Thread Lee Jones
You'll notice that the voltage cell is populated with 0's. Voltage information is very platform specific, even depends on 'cut' and 'substrate' versions. Thus it is left blank for a generic (safe) implementation. If other nodes/properties are provided by the bootloader, the ST CPUFreq driver wil

[PATCH v5 03/11] ARM: multi_v7_defconfig: Enable support for PWM Regulators

2015-12-08 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/configs/multi_v7_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index f62dcb1..648ef57 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/co

Re: [PATCH 09/19] mfd: arizona-core: msleep() is unreliable for anything <20ms use usleep_range() instead

2015-12-08 Thread Charles Keepax
On Mon, Dec 07, 2015 at 11:50:22AM +, Lee Jones wrote: > WARNING: msleep < 20ms can sleep for up to 20ms; see > Documentation/timers/timers-howto.txt > + msleep(1); > > WARNING: msleep < 20ms can sleep for up to 20ms; see > Documentation/timers/timers-howto.txt > +

[PATCH v5 02/11] ARM: multi_v7_defconfig: Enable ST's Power Reset driver

2015-12-08 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 99b87b6..f62dcb1 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_d

[PATCH v5 00/11] cpufreq: Introduce ST's CPUFreq driver

2015-12-08 Thread Lee Jones
This is a re-write of the original submission, hence why the change-log is omitted. Basically almost everything has changed. We are now using the new OPP framework and generic bindings written by Viresh. There are 'ARM' patches in the set which are not necessarily related to CPUFreq, but are requ

[PATCH] tools/lguest: Don't bork the terminal in case of wrong args

2015-12-08 Thread Daniel Baluta
Running lguest without arguments or with a wrong argument name borks the terminal, because the cleanup handler is set up too late in the initialization process. Signed-off-by: Daniel Baluta --- tools/lguest/lguest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/

Re: [PATCH V7 3/3] dma: add Qualcomm Technologies HIDMA channel driver

2015-12-08 Thread Sinan Kaya
On 12/5/2015 3:00 AM, Vinod Koul wrote: > On Wed, Dec 02, 2015 at 02:04:05PM -0500, Sinan Kaya wrote: > You are missing the point. Channel can be paused, yes but the descriptor > is in queue and is not paused. The descriptor running is paused, yes. > There is subtle difference between t

Re: [PATCH v2] r8152: fix lockup when runtime PM is enabled

2015-12-08 Thread Peter Wu
On Tue, Dec 08, 2015 at 12:39:12PM +, Hayes Wang wrote: > Peter Wu [mailto:pe...@lekensteyn.nl] > > Sent: Tuesday, December 08, 2015 7:18 PM > > > > When an interface is brought up which was previously suspended (via > > runtime PM), it would hang. This happens because napi_disable is called >

[PATCH v5 01/11] ARM: multi_v7_defconfig: Enable ST's PWM driver

2015-12-08 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/configs/multi_v7_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 69a22fd..99b87b6 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/co

Re: [PATCH v4] pci: Limit VPD length for megaraid_sas adapter

2015-12-08 Thread Myron Stowe
On Mon, Dec 7, 2015 at 4:07 PM, Babu Moger wrote: > Hi Bjorn, > My old logs were lost. So, I had to recreate the issue again. So it took > sometime. > > On 12/7/2015 11:29 AM, Bjorn Helgaas wrote: >> Hi Babu, >> >> On Thu, Dec 03, 2015 at 12:25:19PM -0800, Babu Moger wrote: >>> Reading or Writi

[PATCH] mm/readahead.c, mm/vmscan.c: use lru_to_page instead of list_to_page

2015-12-08 Thread Geliang Tang
list_to_page() in readahead.c is the same as lru_to_page() in vmscan.c. So I move lru_to_page to internal.h and drop list_to_page(). Signed-off-by: Geliang Tang --- mm/internal.h | 2 ++ mm/readahead.c | 8 +++- mm/vmscan.c| 2 -- 3 files changed, 5 insertions(+), 7 deletions(-) diff -

[PATCH v5 10/11] dt: cpufreq: st: Provide bindings for ST's CPUFreq implementation

2015-12-08 Thread Lee Jones
Cc: devicet...@vger.kernel.org Signed-off-by: Lee Jones --- .../devicetree/bindings/cpufreq/cpufreq-st.txt | 91 ++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-st.txt diff --git a/Documentation/devicetree/bindings

[PATCH v5 11/11] MAINTAINERS: Add ST's CPUFreq driver to the STI file list

2015-12-08 Thread Lee Jones
Signed-off-by: Lee Jones --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index e9caa4b..ebc0562 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1562,6 +1562,7 @@ F:arch/arm/boot/dts/sti* F: drivers/char/hw_random/st-rng.c F: drivers/c

Re: [PATCH] usb: musb: dsps: handle the otg_state_a_wait_vrise_timeout case

2015-12-08 Thread Felipe Balbi
Hi, Bin Liu writes: > Felipe, > > On 12/08/2015 08:20 AM, Felipe Balbi wrote: >> >> Hi, >> >> Gregory CLEMENT writes: >> if it is the case then it didn't fix the issue I had. >> >> I activated the following debug line: >> >> [musb_hdrc]musb_interrupt =_ "** IRQ %s usb%04x tx

[PATCH v5 09/11] cpufreq: st: Provide runtime initialised driver for ST's platforms

2015-12-08 Thread Lee Jones
The bootloader is charged with the responsibility to provide platform specific Dynamic Voltage and Frequency Scaling (DVFS) information via Device Tree. This driver takes the supplied configuration and registers it with the new generic OPP framework, to then be used with CPUFreq. Signed-off-by: L

[PATCH v5 05/11] ARM: STi: STiH407: Provide CPU with clocking information

2015-12-08 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index 9fa1e58..af9233b 100644 --- a/arch/arm/boot/dts/stih407-family.dtsi +++ b/arch/arm/boot/d

Re: [PATCH] usb: musb: dsps: handle the otg_state_a_wait_vrise_timeout case

2015-12-08 Thread Bin Liu
On 12/08/2015 08:35 AM, Felipe Balbi wrote: Hi, Bin Liu writes: Felipe, On 12/08/2015 08:20 AM, Felipe Balbi wrote: Hi, Gregory CLEMENT writes: if it is the case then it didn't fix the issue I had. I activated the following debug line: [musb_hdrc]musb_interrupt =_ "** IRQ %s usb%04x

Re: [PATCH] fix inverted test in __skb_recv_datagram

2015-12-08 Thread Rainer Weikusat
David Miller writes: > From: Rainer Weikusat > Date: Mon, 07 Dec 2015 23:30:58 + > >> As the kernel generally uses negated error numbers, *err needs to be >> compared with -EAGAIN (d'oh). >> >> Signed-off-by: Rainer Weikusat >> Fixes: ea3793ee29d3 > > Improperly formatted Fixes: tag, you mu

Re: [PATCH] fix inverted test in __skb_recv_datagram

2015-12-08 Thread Rainer Weikusat
As the kernel generally uses negated error numbers, *err needs to be compared with -EAGAIN (d'oh). Signed-off-by: Rainer Weikusat Fixes: ea3793ee29d3 ("core: enable more fine-grained datagram reception control") --- diff --git a/net/core/datagram.c b/net/core/datagram.c index 7daff66..fa9dc64 10

Re: [PATCH 1/5] dma: do not use 0x in front of %pad

2015-12-08 Thread Thierry Reding
On Tue, Dec 01, 2015 at 10:01:52AM +0100, Nicolas Ferre wrote: > Le 30/11/2015 21:45, Dmitry V. Krivenok a écrit : > > Signed-off-by: Dmitry V. Krivenok > > Acked-by: Nicolas Ferre > > > --- > > drivers/dma/at_hdmac_regs.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff

Re: [PATCH v2 3/5] printk/nmi: Try hard to print Oops message in NMI context

2015-12-08 Thread Petr Mladek
On Mon 2015-12-07 15:48:33, David Laight wrote: > From: Russell King - ARM Linux > > Sent: 04 December 2015 17:13 > ... > > I have a slightly different view... > > > > > > I don't see bust_spinlocks() dealing with any of these locks, so IMHO > > > > trying to make this work in NMI context strikes

[PATCH v2] arch/*/include/uapi/asm/mman.h: correct uniform value of MADV_FREE

2015-12-08 Thread Sudip Mukherjee
commit d53d95838c7d introduced uniform values for all architecture but missed removing the old value. As a result we are having build failure with mips defconfig, alpha defconfig. Fixes: d53d95838c7d ("arch/*/include/uapi/asm/mman.h: : let MADV_FREE have same value for all architectures") Cc: Mi

Re: [PATCH 00/13] perf tools: Move perf subcommand framework into lib/tools

2015-12-08 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 07, 2015 at 09:46:48AM +0100, Jiri Olsa escreveu: > On Sun, Dec 06, 2015 at 02:02:42PM -0600, Josh Poimboeuf wrote: > > On Sun, Dec 06, 2015 at 04:50:06PM +0100, Jiri Olsa wrote: > > > On Sun, Dec 06, 2015 at 10:37:52AM +0100, Ingo Molnar wrote: > > > > > > > > * Josh Poimboeuf wrote:

Re: [PATCH 00/13] perf tools: Move perf subcommand framework into lib/tools

2015-12-08 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 08, 2015 at 11:52:33AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Dec 07, 2015 at 09:46:48AM +0100, Jiri Olsa escreveu: > > On Sun, Dec 06, 2015 at 02:02:42PM -0600, Josh Poimboeuf wrote: > > > I think the problem is that you have a stale version of the > > > auto-generated fil

Re: [PATCH][experimantal] cpufreq: governor: Use an atomic variable for synchronization

2015-12-08 Thread Viresh Kumar
On 08-12-15, 15:30, Rafael J. Wysocki wrote: > It doesn't look nice, but then having a lockless timer function is worth > it in my view. > > The code in gov_cancel_work() runs relatively rarely, but the timer > function can run very often, so avoiding the lock in there is a priority > to me. > >

cgroup pids controller -- WARN_ON_ONCE triggering

2015-12-08 Thread Andy Whitcroft
The commit below attempts to fix up pid controller charging: commit afcf6c8b75444382e0f9996157207ebae34a8848 Author: Tejun Heo Date: Thu Oct 15 16:41:53 2015 -0400 cgroup: add cgroup_subsys->free() method and use it to fix pids controller Since this change we are seeing system hangs

RE: [PATCH] mfd: da9063: Allow modular build

2015-12-08 Thread Opensource [Steve Twiss]
On 08 December 2015 @ 13:56 Lee Jones wrote: > To: Geert Uytterhoeven > Cc: Support Opensource; Liam Girdwood; Mark Brown; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH] mfd: da9063: Allow modular build > > On Mon, 07 Dec 2015, Geert Uytterhoeven wrote: > > > Allow support for the DA9063

Re: [PATCH v9 1/4] dt-binding:Documents of the mbigen bindings

2015-12-08 Thread majun
Hi Mark: Do you have any comments about this patch? Thanks! Ma Jun On 2015/12/3 11:21, Marc Zyngier wrote: > On 23/11/15 03:15, MaJun wrote: >> From: Ma Jun >> >> Add the mbigen msi interrupt controller bindings document. >> >> This patch based on Mark Rutland's patch >> https://lkml.org/

Re: [PATCH V2 2/3] PM / OPP: Parse 'opp-supported-hw' binding

2015-12-08 Thread Viresh Kumar
On 04-12-15, 13:53, Viresh Kumar wrote: > On 01-12-15, 12:22, Viresh Kumar wrote: > > Since these functions are *only* going to be called before any OPPs > > are added for the device, and hence ruling out any concurrent readers, > > maybe we can guarantee that with this: > > @Rafael: Stephen has g

Re: [PATCH v2 net-next 2/3] net: ethernet: cadence-macb: Add fallback to read DT provided caps

2015-12-08 Thread Arnd Bergmann
On Tuesday 08 December 2015 14:52:05 Neil Armstrong wrote: > Add 1:1 mapping of software defines caps parsing from DT in case the > generic macb compatible form is used. > These properties will provide support for futures implementations > only defined from DT without need to update the driver code

Re: [PATCH v10 08/17] dt-bindings: add document for rockchip variant of analogix_dp

2015-12-08 Thread Rob Herring
On Mon, Dec 07, 2015 at 02:39:34PM +0800, Yakir Yang wrote: > Rockchip DP driver is a helper driver of analogix_dp coder driver, > so most of the DT property should be descriped in analogix_dp document. > > Signed-off-by: Yakir Yang > Reviewed-by: Heiko Stuebner I already acked the previous v10

Re: [PATCH v5 04/11] ARM: STi: STiH407: Provide generic (safe) DVFS configuration

2015-12-08 Thread Viresh Kumar
On 08-12-15, 14:31, Lee Jones wrote: > diff --git a/arch/arm/boot/dts/stih407-family.dtsi > b/arch/arm/boot/dts/stih407-family.dtsi > index 81f8121..9fa1e58 100644 > --- a/arch/arm/boot/dts/stih407-family.dtsi > +++ b/arch/arm/boot/dts/stih407-family.dtsi > @@ -22,15 +22,29 @@ >

Re: [PATCH v10 10/17] dt-bindings: add document for rockchip dp phy

2015-12-08 Thread Rob Herring
On Mon, Dec 07, 2015 at 02:39:50PM +0800, Yakir Yang wrote: > Add dt binding documentation for rockchip display port PHY. > > Signed-off-by: Yakir Yang > Reviewed-by: Heiko Stuebner One possible typo below, otherwise: Acked-by: Rob Herring > --- > Changes in v10: None > Changes in v9: None >

Re: [PATCH v10 05/17] dt-bindings: add document for analogix display port driver

2015-12-08 Thread Rob Herring
On Mon, Dec 07, 2015 at 02:39:07PM +0800, Yakir Yang wrote: > Analogix dp driver is split from exynos dp driver, so we just > make an copy of exynos_dp.txt, and then simplify exynos_dp.txt > > Beside update some exynos dtsi file with the latest change > according to the devicetree binding document

Re: [PATCH v10 14/17] drm: bridge: analogix/dp: try force hpd after plug in lookup failed

2015-12-08 Thread Rob Herring
On Mon, Dec 07, 2015 at 02:40:42PM +0800, Yakir Yang wrote: > Some edp screen do not have hpd signal, so we can't just return > failed when hpd plug in detect failed. > > This is an hardware property, so we need add a devicetree property > "analogix,need-force-hpd" to indicate this sutiation. I c

Re: [PATCH 01/19] ASoC: da7218: avoid 64-bit compile warning

2015-12-08 Thread Arnd Bergmann
On Tuesday 08 December 2015 16:12:54 Arnd Bergmann wrote: > When building the da7218 driver on a 64-bit architecture, we get > a harmless warning: > > sound/soc/codecs/da7218.c: In function 'da7218_of_get_id': > sound/soc/codecs/da7218.c:2261:10: warning: cast from pointer to integer of > differe

Re: [PATCH 10/34] x86, pkeys: arch-specific protection bitsy

2015-12-08 Thread Thomas Gleixner
Dave, On Thu, 3 Dec 2015, Dave Hansen wrote: > > +static inline int vma_pkey(struct vm_area_struct *vma) Shouldn't this return something unsigned? > +{ > + u16 pkey = 0; > +#ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS > + unsigned long vma_pkey_mask = VM_PKEY_BIT0 | VM_PKEY_BIT1 | >

[PATCH 01/19] ASoC: da7218: avoid 64-bit compile warning

2015-12-08 Thread Arnd Bergmann
When building the da7218 driver on a 64-bit architecture, we get a harmless warning: sound/soc/codecs/da7218.c: In function 'da7218_of_get_id': sound/soc/codecs/da7218.c:2261:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] This changes the code to use uintptr_

[PATCH] cifs: avoid unused variable and label

2015-12-08 Thread Arnd Bergmann
The newly introduced cifs_clone_file_range() function produces two harmless compile-time warnings: cifsfs.c: In function 'cifs_clone_file_range': cifsfs.c:963:1: warning: label 'out_unlock' defined but not used [-Wunused-label] cifsfs.c:924:20: warning: unused variable 'src_tcon' [-Wunused-variab

Re: [PATCH 14/34] x86, pkeys: add functions to fetch PKRU

2015-12-08 Thread Thomas Gleixner
On Thu, 3 Dec 2015, Dave Hansen wrote: > +#ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS > +static inline u32 __read_pkru(void) > +{ > + unsigned int ecx = 0; > + unsigned int edx, pkru; u32 please. Other than that: Reviewed-by: Thomas Gleixner > + > + /* > + * "rdpkru"

Re: [PATCH] usb: musb: dsps: handle the otg_state_a_wait_vrise_timeout case

2015-12-08 Thread Felipe Balbi
Hi, Bin Liu writes: > "This bit should be set high prior to setting bit 0 and cleared after bit > 0 > is cleared." > > and on the other side: > "Both the soft_reset and soft_reset_isolation bits should be asserted > simultaneously." > > The hang you saw could

Re: [PATCH 2/2] input: gt801_2plus1 - Add initial support for Goodix GT801 2+1

2015-12-08 Thread Rob Herring
On Mon, Dec 07, 2015 at 09:26:01AM +0200, Priit Laes wrote: > This patch adds Goodix GT801 2+1 touchscreen controller support. > > GT801 2+1 is a 10-finger touch controller consisting of > ARM controller interfacing two GT801 5-finger controllers. > > Signed-off-by: Priit Laes > --- > .../bindi

[PATCH] nvme: fix another 32-bit build warning

2015-12-08 Thread Arnd Bergmann
The nvme_user_cmd function was recently moved around from one file to another, which made a warning reappear that I had fixed before at some point: drivers/nvme/host/core.c: In function 'nvme_user_cmd': drivers/nvme/host/core.c:424:4: warning: cast to pointer from integer of different size [-Wint

[PATCH] net: fsl: avoid 64-bit warning on pq_mdio

2015-12-08 Thread Arnd Bergmann
The pq_mdio driver can now be built for ARM64, where we get a format string warning: drivers/net/ethernet/freescale/fsl_pq_mdio.c: In function 'fsl_pq_mdio_probe': drivers/net/ethernet/freescale/fsl_pq_mdio.c:467:25: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has

Re: [PATCH 5/8 v3] thermal: rcar: enable to use thermal-zone on DT

2015-12-08 Thread Rob Herring
On Mon, Dec 07, 2015 at 07:44:09AM +, Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > This patch enables to use thermal-zone on DT if it was call as > "renesas,rcar-thermal-gen2". > Previous style is still supported by "renesas,rcar-thermal". > > Signed-off-by: Kuninori Morimoto >

[PATCH] mm/ksm.c: use list_for_each_entry_safe

2015-12-08 Thread Geliang Tang
Use list_for_each_entry_safe() instead of list_for_each_safe() to simplify the code. Signed-off-by: Geliang Tang --- mm/ksm.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/mm/ksm.c b/mm/ksm.c index 5e96753..ca6d2a0 100644 --- a/mm/ksm.c +++ b/mm/ksm.c

[PATCH] hfs: use list_for_each_entry in hfs_cat_delete

2015-12-08 Thread Geliang Tang
Use list_for_each_entry() instead of list_for_each() to simplify the code. Signed-off-by: Geliang Tang --- fs/hfs/catalog.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/hfs/catalog.c b/fs/hfs/catalog.c index db458ee..1eb5d41 100644 --- a/fs/hfs/catalog.c +++ b/fs/

[PATCH 1/2] crypto: sahara: fix 64-bit dma_addr_t compilation

2015-12-08 Thread Arnd Bergmann
The sahara hardware uses DMA descriptors with 32-bit addresses, but dma_addr_t is variable size depending on whether we want to support any devices that use 64-bit DMA addresses in hardware. This means that the definition of the DMA descriptor structure is wrong, and we helpfully get a compiler war

[PATCH 2/2] crypto: sahara: fix debug output for 64-bit dma_addr_t

2015-12-08 Thread Arnd Bergmann
The sahara_dump_descriptors and sahara_dump_links functions attempt to print a dma_addr_t value with a 0x%08x format string, which produces a warning when dma_addr_t is 64-bit wide: drivers/crypto/sahara.c:419:120: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has t

[PATCH] mfd: as3722: mark PM functions as __maybe_unused

2015-12-08 Thread Arnd Bergmann
The newly introduced as3722_i2c_suspend/resume functions are built unconditionally, but only used when power management is enabled, so we get a warning otherwise: drivers/mfd/as3722.c:427:12: warning: 'as3722_i2c_suspend' defined but not used [-Wunused-function] drivers/mfd/as3722.c:438:12: warni

Re: cgroup pids controller -- WARN_ON_ONCE triggering

2015-12-08 Thread Tejun Heo
Hello, Andy. On Tue, Dec 08, 2015 at 02:58:51PM +, Andy Whitcroft wrote: > Converting this to a printk I was able to obtain confirmation that we are > indeed seeing this go negative in some cases. > > Reverting the above commit seems to resolve the early boot issues in > my testing. Fix alre

Re: [PATCH v2] usb: Use memdup_user to reuse the code

2015-12-08 Thread Alan Stern
On Tue, 8 Dec 2015, Pathak, Rahul (R.) wrote: > From: Rahul Pathak > > Fixing coccicheck warning which recommends to use memdup_user instead > to reimplement its code, using memdup_user simplifies the code > > ./drivers/usb/core/devio.c:1398:11-18: WARNING opportunity for memdup_user > > Chang

Re: CGroup Namespaces (v6)

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 11:10:03AM +0100, Alban Crequy wrote: > Hi, > > Thanks for the patches! > > On 8 December 2015 at 00:06, wrote: > > Hi, > > > > following is a revised set of the CGroup Namespace patchset which Aditya > > Kali has previously sent. The code can also be found in the cgrou

Re: [PATCH v2 next 1/2] dts: hisi: fixes no syscon error when init mdio

2015-12-08 Thread Rob Herring
On Mon, Dec 07, 2015 at 04:25:06PM +0800, yankejian wrote: > Signed-nux start up, we get the log below: > "Hi-HNS_MDIO 803c.mdio: no syscon hisilicon,peri-c-subctrl > mdio_bus mdio@803c: mdio sys ctl reg has not maped " > > the source code about the subctrl is dealled with syscon, b

Re: [PATCH net 2/2] bindings: net: macb: add no-usrio optional property

2015-12-08 Thread Rob Herring
On Mon, Dec 07, 2015 at 11:58:34AM +0100, Neil Armstrong wrote: > Add the no-usrio optional property to disable usage of the USRIO > register on platforms not implementing it. > --- > Documentation/devicetree/bindings/net/macb.txt | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Docume

<    1   2   3   4   5   6   7   8   9   >