[PATCH 65/71] clocksource: em_sti: Remove unnecessary OOM messages

2014-05-23 Thread Daniel Lezcano
From: Jingoo Han The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han Signed-off-by: Daniel Lezcano --- drivers/clocksource/em_sti.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/driv

[PATCH 66/71] clocksource: sh_cmt: Remove unnecessary OOM messages

2014-05-23 Thread Daniel Lezcano
From: Jingoo Han The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. [dlezcano] : refreshed against latest modifications: kmalloc -> kzalloc Signed-off-by: Jingoo Han Signed-off-by: Daniel Lezcano --- drivers/clocksource/sh_cmt.c |

[PATCH 63/71] clocksource: Fix clocksource_mmio_readX_down

2014-05-23 Thread Daniel Lezcano
From: Xiubo Li For some clocksource devices, for example, the registers are 32-bit, while the lower 16-bit is used for timer counting(And reading the upper 16-bit will return 0). For example, when the counter value is 0x, and then the ~readl_relaxed(to_mmio_clksrc(c)->reg) will return th

[PATCH 62/71] clocksource: Fix type confusion for clocksource_mmio_readX_Y

2014-05-23 Thread Daniel Lezcano
From: Xiubo Li The types' definations are: o cycle_t -> u64 o readl_relaxed -> u32 o readw_relaxed -> u16 So let clocksource_mmio_readX_Ys return a cast to cycle_t, though this maybe look reduntant sometimes, it make sense and they will be more readable and less confusion... T

[PATCH 59/71] ARM: sun6i: a31: Add support for the High Speed Timers

2014-05-23 Thread Daniel Lezcano
From: Maxime Ripard The Allwinner A31 has support for four high speed timers. Apart for the number of timers (4 vs 2), it's basically the same logic than the high speed timers found in the sun5i chips. Now that we have a driver to support it, we can enable them in the device tree. Signed-off-by

[PATCH v10 2/3] clk: exynos5410: register clocks using common clock framework

2014-05-23 Thread Tarek Dakhran
The EXYNOS5410 clocks are statically listed and registered using the Samsung specific common clock helper functions. Signed-off-by: Tarek Dakhran Signed-off-by: Vyacheslav Tyrtov --- .../devicetree/bindings/clock/exynos5410-clock.txt | 51 + drivers/clk/samsung/Makefile

[PATCH v10 3/3] ARM: dts: Add initial device tree support for EXYNOS5410

2014-05-23 Thread Tarek Dakhran
Add initial device tree nodes for EXYNOS5410 SoC and SMDK5410 board. Signed-off-by: Tarek Dakhran Signed-off-by: Vyacheslav Tyrtov --- arch/arm/boot/dts/Makefile|1 + arch/arm/boot/dts/exynos5410-smdk5410.dts | 82 arch/arm/boot/dts/exynos5410.dtsi |

[PATCH v10 1/3] ARM: EXYNOS: Add support for EXYNOS5410 SoC

2014-05-23 Thread Tarek Dakhran
EXYNOS5410 is SoC in Samsung's Exynos5 SoC series. Add initial support for this SoC. Signed-off-by: Tarek Dakhran Signed-off-by: Vyacheslav Tyrtov --- arch/arm/mach-exynos/Kconfig|8 arch/arm/mach-exynos/common.h | 11 ++- arch/arm/mach-exynos/firmware.c |2 +-

[PATCH 61/71] clocksource: sh_tmu: Fix channel IRQ retrieval in legacy case

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart In the legacy platform data case each TMU platform device handles a single channel with a single IRQ for the platform device. Retrieve the IRQ using the logical channel number instead of the hardware channel number. Signed-off-by: Laurent Pinchart Signed-off-by: Daniel Le

[PATCH 58/71] clocksource: sun5i: Add support for reset controller

2014-05-23 Thread Daniel Lezcano
From: Maxime Ripard The Allwinner A31 that uses this timer has the timer IP asserted in reset. Add an optional reset property to the DT, and deassert the timer from reset if it's there. Signed-off-by: Maxime Ripard Signed-off-by: Daniel Lezcano --- .../bindings/timer/allwinner,sun5i-a13-hstim

[PATCH v10 0/3] Exynos 5410 support

2014-05-23 Thread Tarek Dakhran
The series of patches represent support of Exynos 5410 SoC The Exynos 5410 is the first Samsung SoC based on big.LITTLE architecture Patches add new platform description, support of clock controller and device tree for Exynos 5410. Has been build on Samsung Linux Kernel (branch: for-next, comm

[PATCH 57/71] clocksource: efm32: use $vendor,$device scheme for compatible string

2014-05-23 Thread Daniel Lezcano
From: Uwe Kleine-König Wolfram Sang pointed out that "efm32,$device" is non-standard. So use the common scheme and prefix device with "efm32-". The old compatible string is left in place until arch/arm/boot/dts/efm32* is fixed. Acked-by: Wolfram Sang Acked-by: Rob Herring Signed-off-by: Uwe Kl

[PATCH 55/71] dts: ca5: add the global timer for the A5

2014-05-23 Thread Daniel Lezcano
From: Matthew Leach The Cortex A5 contains a global timer: add the appropriate device tree node. Acked-by: Mark Rutland Signed-off-by: Matthew Leach Signed-off-by: Daniel Lezcano --- arch/arm/boot/dts/vexpress-v2p-ca5s.dts | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) di

[PATCH 50/71] clocksource: sh_mtu2: Rename clock to "fck" in the non-legacy case

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The sh_mtu2 driver gets the MTU2 functional clock using a connection ID of "mtu2_fck". While all SH SoCs create clock lookup entries with a NULL device ID and a "mtu2_fck" connection ID, the ARM SoCs use the device ID only with a NULL connection ID. This works on legacy pla

[PATCH 46/71] clocksource: sh_mtu2: Replace hardcoded register values with macros

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Define symbolic macros for all used registers bits. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c | 98 ++--- 1 file changed, 92 insertions(+), 6 deletions(-) diff --git a/drivers/clockso

[PATCH 47/71] clocksource: sh_mtu2: Set cpumask to cpu_possible_mask

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The MTU2 is not tied to CPU0, make it usable on any CPU. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/sh_mtu2.c b/drivers/clocksource/

[PATCH 53/71] clocksource: arm_global_timer: Only check for unusable timer on A9

2014-05-23 Thread Daniel Lezcano
From: Matthew Leach The check for a usable global timer in the probe code does not enquire which CPU we are currently running on. This can cause the driver to incorrectly assume we have an unusable global timer if we are running on a CPU other than A9. Before checking the CPU revision, ensure we

[PATCH 54/71] documentaion: DT: allow a A5 compatible string in global timer

2014-05-23 Thread Daniel Lezcano
From: Matthew Leach The global timer is present on the Cortex A5. Add a compatibility string to the DT binding to allow a Cortex A5 global timer. Acked-by: Rob Herring Signed-off-by: Matthew Leach Signed-off-by: Daniel Lezcano --- .../devicetree/bindings/arm/global_timer.txt |7 +++

[PATCH 45/71] clocksource: sh_mtu2: Allocate channels dynamically

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart This prepares the driver for multi-channel support. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/clocksource/sh_mtu2.c

[PATCH 52/71] clocksource: sh_mtu2: Sort headers alphabetically

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart This helps locating duplicates and inserting new headers. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/clocksource/sh_mtu2.c b/d

[GIT PULL] clockevents: fixes for 3.15

2014-05-23 Thread Daniel Lezcano
Hi Thomas, Ingo, this pull request contains a couple of fixes: * David Jander fixed the calls to clk_disable/clk_enable in the tc_mode function as this could be called in an interrupt context * Zhiwu Song forces the irq affinity on the marco timer as the initialization can happen before t

[PATCH 42/71] clocksource: sh_mtu2: Add memory base to sh_mtu2_channel structure

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The channel memory base is channel-specific, add it to the channel structure in preparation for support of multiple channels per device. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c | 32 ++-- 1

[PATCH 51/71] clocksource: sh_mtu2: Remove FSF mail address from GPL notice

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL. Signed-off-by: Laurent Pinchart Tested-by: Wo

[PATCH 49/71] clocksource: sh_mtu2: Add support for multiple channels per device

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart MTU2 hardware devices can support multiple channels, with global registers and per-channel registers. The sh_mtu2 driver currently models the hardware with one Linux device per channel. This model makes it difficult to handle global registers in a clean way. Add support fo

[PATCH 44/71] clocksource: sh_mtu2: Replace kmalloc + memset with kzalloc

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart One kzalloc a day keeps the bugs away. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clocksource/sh_mtu2.c b/drivers/clocksource/sh_mtu2.c ind

[PATCH 48/71] clocksource: sh_mtu2: Hardcode MTU2 clock event rating to 200

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart All boards use clock event ratings of 200 for the MTU2, hardcode it in the driver. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clocks

[PATCH 43/71] clocksource: sh_mtu2: Add index to struct sh_mtu2_channel

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Use the index as the timer start/stop bit and when printing messages to identify the channel. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff

[PATCH 38/71] clocksource: sh_mtu2: Split channel fields from sh_mtu2_priv

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Create a new sh_mtu2_channel structure to hold the channel-specific fields in preparation for multiple channels per device support. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c | 125 +++--

[PATCH 41/71] clocksource: sh_mtu2: Constify name argument to sh_mtu2_register()

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The name argument is assigned to const structure fields only, constify it. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clocksource/sh_mtu2.

linux-next: Tree for May 23

2014-05-23 Thread Stephen Rothwell
Hi all, The powerpc allyesconfig is again broken more than usual. Changes since 20140522: My fixes tree is empty again. The arm-soc tree gained conflicts against the arm tree. The samsung tree gained a conflict against the arm tree. The pci tree lost its build failure. The l2-mtd tree still

[PATCH 39/71] clocksource: sh_mtu2: Rename struct sh_mtu2_priv to sh_mtu2_device

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Channel data is private as well, rename priv to device to make the distrinction between the core device and the channels clearer. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c | 65 +

[PATCH 30/71] clocksource: sh_tmu: Replace hardcoded register values with macros

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Define symbolic macros for all used registers bits. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_tmu.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c ind

[PATCH 2/2] clocksource: tcb_clksrc: Make tc_mode interrupt safe

2014-05-23 Thread Daniel Lezcano
From: David Jander tc_mode() can be called from interrupt context and thus must not call clk_*prepare*() functions. Signed-off-by: David Jander Signed-off-by: Daniel Lezcano Acked-by: Alexandre Belloni Acked-by: Nicolas Ferre --- drivers/clocksource/tcb_clksrc.c |8 1 file chan

[PATCH 40/71] clocksource: sh_mtu2: Split channel setup to separate function

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Move the channel setup code from sh_mtu2_setup to a new sh_mtu2_setup_channel function and call it from sh_mtu2_setup. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c | 29 +++-- 1 file changed, 19 inse

[PATCH 36/71] clocksource: sh_mtu2: Use request_irq() instead of setup_irq()

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The driver claims it needs to register an interrupt handler too early for request_irq(). This might have been true in the past, but the only meaningful difference between request_irq() and setup_irq() today is an additional kzalloc() call in request_irq(). As the driver cal

Re: [PATCH 1/3] mmc: host: add slot argument to mmc_of_parse

2014-05-23 Thread Tushar Behera
On 23 May 2014 15:55, Jaehoon Chung wrote: > From: Ludovic Desroches > > Some hosts manage several slots. In these case information such as the > bus width, chi detect and others are into the slot node. So we have to > parse child node. If not NULL, slot node will be used instead of the > device

[PATCH 34/71] clocksource: sh_tmu: Remove FSF mail address from GPL notice

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL. Signed-off-by: Laurent Pinchart --- drivers/

[PATCH 1/2] clocksource: marco: Fix the affinity set for local timer of CPU1

2014-05-23 Thread Daniel Lezcano
From: Zhiwu Song irqchip will reject the affinity set to CPUs which is not online yet. but in the CPU1 wakeup stage, OS only sets CPU1 to be online after local timer is set, so that causes the irq_set_affinity not work. this patch moves to irq_force_affinity() for the low level boot stage. Signe

[PATCH 37/71] clocksource: sh_mtu2: Turn sh_mtu2_priv fields into local variables

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The rate and periodic fields are used in a single function only, as local variables. Remove them from the structure. Signed-off-by: Laurent Pinchart Tested-by: Wolfram Sang --- drivers/clocksource/sh_mtu2.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions

[PATCH 33/71] clocksource: sh_tmu: Rename clock to "fck" in the non-legacy case

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The sh_tmu driver gets the TMU functional clock using a connection ID of "tmu_fck". While all SH SoCs create clock lookup entries with a NULL device ID and a "tmu_fck" connection ID, the ARM SoCs use the device ID only with a NULL connection ID. This works on legacy platfor

[PATCH 31/71] clocksource: sh_tmu: Hardcode TMU clock event and source ratings to 200

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart All boards use clock event and clock source ratings of 200 for the TMU, hardcode it in the driver. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_tmu.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/drivers/clo

[PATCH 32/71] clocksource: sh_tmu: Add support for multiple channels per device

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart TMU hardware devices can support multiple channels, with global registers and per-channel registers. The sh_tmu driver currently models the hardware with one Linux device per channel. This model makes it difficult to handle global registers in a clean way. Add support for

[PATCH 24/71] clocksource: sh_tmu: Split channel setup to separate function

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Move the channel setup code from sh_tmu_setup to a new sh_tmu_setup_channel function and call it from sh_tmu_setup. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_tmu.c | 36 +++- 1 file changed, 23 insertions(+), 13 deletion

[PATCH 23/71] clocksource: sh_tmu: Rename struct sh_tmu_priv to sh_tmu_device

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Channel data is private as well, rename priv to device to make the distrinction between the core device and the channels clearer. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_tmu.c | 68 +- 1 file changed, 34 insert

Re: [PATCH] video: fbdev: grvga.c: Fix for possible null pointer dereference

2014-05-23 Thread Tomi Valkeinen
On 21/05/14 00:35, Rickard Strandqvist wrote: > There is otherwise a risk of a possible null pointer dereference. > > Was largely found by using a static code analysis program called cppcheck. > > Signed-off-by: Rickard Strandqvist > --- > drivers/video/fbdev/grvga.c |3 ++- > 1 file change

Re: [PATCH v2] mm, compaction: properly signal and act upon lock and need_sched() contention

2014-05-23 Thread Shawn Guo
On Fri, May 23, 2014 at 10:34:55AM +0200, Vlastimil Babka wrote: > From: Vlastimil Babka > Date: Fri, 23 May 2014 10:18:56 +0200 > Subject: > mm-compaction-properly-signal-and-act-upon-lock-and-need_sched-contention-fix2 > > Step 1: Change function name and comment between v1 and v2 so that the

[PATCH 15/71] clocksource: sh_cmt: Hardcode CMT clock source rating to 125

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart All boards use or should use a clock source rating of 125 for the CMT, hardcode it in the driver. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clocksource/sh_cm

[PATCH 20/71] clocksource: sh_cmt: Request IRQ for clock event device only

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Clock sources don't need an IRQ, request the IRQ only for channels used as clock event devices. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c | 51 ++ 1 file changed, 27 insertions(+), 24 deletions(-) diff --g

[PATCH 22/71] clocksource: sh_tmu: Split channel fields from sh_tmu_priv

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Create a new sh_tmu_channel structure to hold the channel-specific field in preparation for multiple channels per device support. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_tmu.c | 235 ++ 1 file changed, 125 inser

[PATCH 14/71] clocksource: sh_cmt: Hardcode CMT clock event rating to 125

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart All boards use or should use a clock event rating of 125 for the CMT, hardcode it in the driver. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/clocksource/sh_cm

[PATCH 13/71] clocksource: sh_cmt: Set cpumask to cpu_possible_mask

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The CMT is a global timer not restricted to a single CPU. It has a lower rating than the TMU or ARM architected timer, but is still useful on systems where the other timers are stopped during CPU sleep. When multiple timers are available the timers core selects which timer

[PATCH 18/71] clocksource: sh_cmt: Remove FSF mail address from GPL notice

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL. Signed-off-by: Laurent Pinchart --- drivers/

[PATCH 16/71] clocksource: sh_cmt: Add support for multiple channels per device

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart CMT hardware devices can support multiple channels, with global registers and per-channel registers. The sh_cmt driver currently models the hardware with one Linux device per channel. This model makes it difficult to handle global registers in a clean way. Add support for

[PATCH 19/71] clocksource: sh_cmt: Sort headers alphabetically

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart This helps locating duplicates and inserting new headers. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_c

[PATCH 17/71] clocksource: sh_cmt: Rename clock to "fck" in the non-legacy case

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The sh_cmt driver gets the CMT functional clock using a connection ID of "cmt_fck". While all SH SoCs create clock lookup entries with a NULL device ID and a "cmt_fck" connection ID, the ARM SoCs use the device ID only with a NULL connection ID. This works on legacy platfor

Re: [PATCH] drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap

2014-05-23 Thread Tomi Valkeinen
On 21/05/14 09:13, sunzc...@gmail.com wrote: > From: Zhichuang SUN > > Function unifb_mmap calls functions which are defined in linux/mm.h > and asm/pgtable.h > > The related error (for unicore32 with unicore32_defconfig): > CC drivers/video/fbdev/fb-puv3.o > drivers/video/fbdev

[PATCH 09/71] clocksource: sh_cmt: Replace kmalloc + memset with kzalloc

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart One kzalloc a day keeps the bugs away. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index 6b65621..0779bf1 100644 -

Re: [PATCH] staging: rtl8723au: Use kmemdup() instead of memcpy() to duplicate memory

2014-05-23 Thread Jes Sorensen
Benoit Taine writes: > This issue was reported by coccicheck using the semantic patch > at scripts/coccinelle/api/memdup.cocci, and tested by compilation. > > Signed-off-by: Benoit Taine > --- > drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c |3 +-- > drivers/staging/rtl8723au/os_dep/ioc

[PATCH 05/71] clocksource: sh_cmt: Constify name argument to sh_cmt_register()

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The name argument is assigned to const structure fields only, constify it. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/s

[PATCH 28/71] clocksource: sh_tmu: Replace kmalloc + memset with kzalloc

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart One kzalloc a day keeps the bugs away. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_tmu.c |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c index e304304..26a9f7d 100644 -

[PATCH 06/71] clocksource: sh_cmt: Rename mapbase/mapbase_str to mapbase_ch/mapbase

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The mapbase variable points to the mapped base address of the channel, rename it to mapbase_sh. mapbase_str points to the mapped base address of the CMT device, rename it to mapbase. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c | 34

[PATCH 21/71] clocksource: sh_tmu: Use request_irq() instead of setup_irq()

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The driver claims it needs to register an interrupt handler too early for request_irq(). This might have been true in the past, but the only meaningful difference between request_irq() and setup_irq() today is an additional kzalloc() call in request_irq(). As the driver cal

[PATCH 26/71] clocksource: sh_tmu: Add memory base to sh_tmu_channel structure

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The channel memory base is channel-specific, add it to the channel structure in preparation for support of multiple channels per device. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_tmu.c | 30 -- 1 file changed, 16 insertions(

Re: [patch] sched: signedness bug in yield_to()

2014-05-23 Thread Peter Zijlstra
On Fri, May 23, 2014 at 01:20:42PM +0300, Dan Carpenter wrote: > yield_to() is supposed to return -ESRCH if there is no task to > yield to, but because the type is bool that is the same as returning > true. > > The only place I see which cares is kvm_vcpu_on_spin(). > > Signed-off-by: Dan Carpent

[PATCH 10/71] clocksource: sh_cmt: Allocate channels dynamically

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart This prepares the driver for multi-channel support. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index 07

[PATCH 29/71] clocksource: sh_tmu: Allocate channels dynamically

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart This prepares the driver for multi-channel support. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_tmu.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_t

[PATCH 25/71] clocksource: sh_tmu: Constify name argument to sh_tmu_register()

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The name argument is assigned to const structure fields only, constify it. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_tmu.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/s

[PATCH 11/71] clocksource: sh_cmt: Split static information from sh_cmt_device

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Create a new sh_cmt_info structure to hold static information about the device model and reference that structure from the sh_cmt_device structure. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c | 192 +++--- 1 file

[PATCH 02/71] clocksource: sh_cmt: Split channel fields from sh_cmt_priv

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Create a new sh_cmt_channel structure to hold the channel-specific field in preparation for multiple channels per device support. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c | 385 ++ 1 file changed, 199 inser

RE: skbuff truesize incorrect.

2014-05-23 Thread David Laight
From: Bjørn Mork [mailto:bj...@mork.no] > David Laight writes: ... > > Note that some of the usb ethernet drivers allocate large skb then > > lie about the truesize. > > Hmm, which drivers are these? $ grep truesize linux/drivers/net/usb/* asix_88179_178a, smsc95xx, sr9700. David

Re: [PATCH] video: of: display_timing: fix default native-mode setting

2014-05-23 Thread Tomi Valkeinen
On 09/05/14 16:53, Boris BREZILLON wrote: > Set native mode to the first child node of the display-timings node and not > the first child node of the display-timings parent node. > > Signed-off-by: Boris BREZILLON > --- > drivers/video/of_display_timing.c | 2 +- > 1 file changed, 1 insertion(+)

Re: [PATCH 3/3] crypto: Add Allwinner Security System crypto accelerator

2014-05-23 Thread Arnd Bergmann
On Thursday 22 May 2014, Corentin LABBE wrote: > Le 22/05/2014 17:28, Arnd Bergmann a écrit : > > On Thursday 22 May 2014 17:09:56 LABBE Corentin wrote: > >> Signed-off-by: LABBE Corentin > > > > My feeling is that this should either be one driver that provides > > all five algorithms uncondition

[PATCH 08/71] clocksource: sh_cmt: Add index to struct sh_cmt_channel

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Use the index when printing messages to identify the channel. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c | 37 - 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/drivers/clocksource/sh_cmt.c b/dri

[PATCH 04/71] clocksource: sh_cmt: Split channel setup to separate function

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Move the channel setup code from sh_cmt_setup to a new sh_cmt_setup_channel function and call it from sh_cmt_setup. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c | 79 +- 1 file changed, 47 insertions(+), 32 de

Re: [RFC] Unnecessary work and noise from mce code in suspend/resume path

2014-05-23 Thread Borislav Petkov
On Wed, May 14, 2014 at 12:02:32PM -0700, Luck, Tony wrote: > When we suspend a laptop we offline all but one processor. But > the mce code registers on a notify chain so it can clean up > some sysfs entries. Part of that code calls device_unregister() > which will fire kobject_uevent() which might

[PATCH 01/71] clocksource: sh_cmt: Use request_irq() instead of setup_irq()

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart The driver claims it needs to register an interrupt handler too early for request_irq(). This might have been true in the past, but the only meaningful difference between request_irq() and setup_irq() today is an additional kzalloc() call in request_irq(). As the driver cal

[PATCH 03/71] clocksource: sh_cmt: Rename struct sh_cmt_priv to sh_cmt_device

2014-05-23 Thread Daniel Lezcano
From: Laurent Pinchart Channel data is private as well, rename priv to device to make the distrinction between the core device and the channels clearer. Signed-off-by: Laurent Pinchart --- drivers/clocksource/sh_cmt.c | 116 +- 1 file changed, 58 insert

[RFC PATCH] clk: flatten clk tree in debugfs

2014-05-23 Thread Peter De Schrijver
This patch flattens the clk tree in CCF debugfs. Instead of representing the clocks and their hierarchy as a directory structure under /sys/kernel/debug/clk, each clock gets a single directory directly under /sys/kernel/debug/clk. While this may seem strange, here's way I think this is the right t

Re: [PATCH v3 3/4] mfd: tps65917: Add driver for the TPS65917 PMIC

2014-05-23 Thread Keerthy
On Friday 23 May 2014 03:36 PM, Lee Jones wrote: The TPS65917 chip is a power management IC for Portable Navigation Systems and Tablet Computing devices. It contains the following components: - Regulators. - Over Temperature warning and Shut down. This patch adds support for tps65917 mfd de

[PATCH v1] net: driver: stmicro: Remove some useless the lock protection

2014-05-23 Thread Wei.Yang
From: Yang Wei kernel always invokes a pair of rtnl_lock adn rtnl_unlock to protect dev_ethtool(), so its not neccessary to invoke spin_lock/unlock in ethtool_ops. Signed-off-by: Yang Wei --- .../net/ethernet/stmicro/stmmac/stmmac_ethtool.c |8 1 file changed, 8 deletions(-) d

Re: skbuff truesize incorrect.

2014-05-23 Thread Jim Baxter
On 23/05/14 11:45, David Laight wrote: > From: Bjørn Mork [mailto:bj...@mork.no] >> David Laight writes: > ... >>> Note that some of the usb ethernet drivers allocate large skb then >>> lie about the truesize. >> >> Hmm, which drivers are these? > > $ grep truesize linux/drivers/net/usb/* > > as

Re: [PATCH 1/2] ASoC: max98090: Add master clock handling

2014-05-23 Thread Mark Brown
On Fri, May 23, 2014 at 11:05:17AM +0530, Tushar Behera wrote: > I tested with moving clk_enable/clk_disable calls to set_bias_level(): > SND_SOC_BIAS_PREPARE. That works well for me. Does it look okay? > + if (!IS_ERR(max98090->mclk)) { > + if (codec->dapm.bia

Re: [PATCH v3 3/4] mfd: tps65917: Add driver for the TPS65917 PMIC

2014-05-23 Thread Lee Jones
> >>The TPS65917 chip is a power management IC for Portable Navigation > >>Systems > >>and Tablet Computing devices. It contains the following components: > >> > >> - Regulators. > >> - Over Temperature warning and Shut down. > >> > >>This patch adds support for t

Re: [PATCH 0/3] ARM: OMAP5+: Support Duty Cycle Correction(DCC)

2014-05-23 Thread Tero Kristo
On 05/16/2014 01:45 PM, Nishanth Menon wrote: Hi, This patch series has been carried over in vendor kernel for quiet few years now. Unfortunately, it was very recently re-discovered and upstream kernel is noticed to be broken for OMAP5 1.5GHz - at least we are operating DPLL at frequency higher

[patch added to the 3.12 stable tree] blktrace: fix accounting of partially completed requests

2014-05-23 Thread Jiri Slaby
From: Roman Pen This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. === commit af5040da01ef980670b3741b3e10733ee3e33566 upstream. trace_block_rq_complete does not take into account that request can be partially completed, so we can get

Re: [PATCH 1/2] ASoC: max98090: Add master clock handling

2014-05-23 Thread Tushar Behera
On 23 May 2014 16:44, Mark Brown wrote: > On Fri, May 23, 2014 at 11:05:17AM +0530, Tushar Behera wrote: > >> I tested with moving clk_enable/clk_disable calls to set_bias_level(): >> SND_SOC_BIAS_PREPARE. That works well for me. Does it look okay? > >> + if (!IS_ERR(max98090->mclk))

Re: [PATCH 1/2] ASoC: max98090: Add master clock handling

2014-05-23 Thread Mark Brown
On Fri, May 23, 2014 at 05:06:27PM +0530, Tushar Behera wrote: > On 23 May 2014 16:44, Mark Brown wrote: > > Should be clk_prepare_enable() and similarly for the disable and you > > should check the error codes but yes, that looks good. > I was planning to keep clk_prepare/clk_unprepare in probe

Re: [PATCH] mfd: axp20x: Remove unnecessary const qualifier from axp20x_supplies[]

2014-05-23 Thread Lee Jones
> > To be frank, I've never known what the double const means. Care to > > enlighten? > > There's a nice table here: > > http://stackoverflow.com/questions/14562845/why-does-passing-char-as-const-char-generate-a-warning Okay, I get it. I think you're right, I'll make the change and see what els

[PATCH v2] ARM: at91: #if 0 out ISI code for AT91SAM9263

2014-05-23 Thread Paul Bolle
In v2.6.25 code was added for an Image Sensor Interface (ISI) for AT91SAM9263. That code depended on the Kconfig macro CONFIG_VIDEO_AT91_ISI and its MODULE variant. The related Kconfig symbol has never been added to the tree. The net effect of this was that at91_add_device_isi() was a NOP. No one n

Re: [PATCH] x86: extend insn decoder to understand xop and evex prefixes

2014-05-23 Thread Masami Hiramatsu
(2014/05/20 0:26), Denys Vlasenko wrote: > Since xop and evex prefixes are extensions of vex mechanism, > they have similar bit layouts, and they can never be combined > (an instruction can have only one of them), > (ab)use insn->vex_prefix to store data of xop and evex too. > > Users will need to

Re: [PATCH v2 14/14] mmc: mmci: Add Qcom specific pio_read function.

2014-05-23 Thread Srinivas Kandagatla
Hi Linus W, On 23/05/14 10:31, Linus Walleij wrote: static int mmci_qcom_pio_read(struct mmci_host *host, char *buffer, unsigned int remain) { u32 *ptr = (u32*) buffer; unsigned int count = 0; unsigned int words; unsigned int fifo_size = h

Re: [PATCH V2] extcon: arizona: support inverted jack detect switch

2014-05-23 Thread Richard Fitzgerald
Add config option for inverted jack detect switch that opens when jack is inserted. Signed-off-by: Richard Fitzgerald --- drivers/extcon/extcon-arizona.c | 34 ++ include/linux/mfd/arizona/pdata.h |3 +++ 2 files changed, 29 insertions(+), 8 deletions(-)

Re: [PATCH V5 3/4] x86/PCI: Stop enabling ECS for AMD CPUs after Fam16h

2014-05-23 Thread Robert Richter
On 22.05.14 20:54:54, Bjorn Helgaas wrote: > I'm going to go out on a limb and guess that Windows does not enable > ECS, so it probably uses ECAM. Therefore, I suspect Linux's parsing > of MCFG is broken in some way, and we probably *could* use ECAM in all > these cases I'm seeing. Even if ECS is

Re: NFS issue while copying huge file

2014-05-23 Thread J. Bruce Fields
On Thu, May 22, 2014 at 12:50:34PM +0200, Richard Weinberger wrote: > On Wed, May 21, 2014 at 11:33 PM, Richard Weinberger > wrote: > > Hi! > > > > My backup server runs CentOS6 with kernel 2.6.32-431.17.1.el6.x86_64. > > Many servers copy theirs backups to it. This setups works perfectly > > fine

Re: [PATCH v2] x86/mce: Distirbute the clear operation of mces_seen to Per-CPU rather than only monarch CPU

2014-05-23 Thread Chen Yucong
On Fri, 2014-05-23 at 11:10 +0200, Borislav Petkov wrote: > On Fri, May 23, 2014 at 09:32:19AM +0800, Chen Yucong wrote: > > ...if we reach a timeout, there is very little > > chance for recovering. Thought. the probability for this situation to > > happen is very slight, it's not impossible. Indee

Re: [PATCH 1/2] ASoC: max98090: Add master clock handling

2014-05-23 Thread Tushar Behera
On 23 May 2014 17:11, Mark Brown wrote: > On Fri, May 23, 2014 at 05:06:27PM +0530, Tushar Behera wrote: >> On 23 May 2014 16:44, Mark Brown wrote: > >> > Should be clk_prepare_enable() and similarly for the disable and you >> > should check the error codes but yes, that looks good. > >> I was pl

Re: [PATCH 4/7] acpi, apei, ghes: Factor out NMI error notification context.

2014-05-23 Thread Tomasz Nowicki
On 13.05.2014 21:41, Borislav Petkov wrote: On Wed, Apr 09, 2014 at 05:14:32PM +0200, Tomasz Nowicki wrote: Use CONFIG_ACPI_APEI_NMI to isolate NMI error notification path. NMI related data and functions are grouped so they can be wrapped inside one I have missed end of sentence. I should goes

Re: [PATCH v2 4/4] ARM: dts: bcm590xx: add support for GPLDO and VBUS regulators

2014-05-23 Thread Matt Porter
On Wed, Apr 23, 2014 at 07:21:33PM -0400, Matt Porter wrote: > Adds additional nodes to support GPLDO1-6 and VBUS regulators which > are now supported in the bcm590xx regulator driver. Applied to mach-bcm for-3.16/dt > arch/arm/boot/dts/bcm59056.dtsi | 21 + > 1 file changed,

Re: [PATCH] memcg: deprecate memory.force_empty knob

2014-05-23 Thread Michal Hocko
On Mon 19-05-14 17:50:18, Michal Hocko wrote: > On Mon 19-05-14 16:02:48, Michal Hocko wrote: > > On Fri 16-05-14 15:00:16, Greg Thelen wrote: > [...] > > > -- First, demonstrate that just rmdir, without memory.force_empty, > > >temporarily hides reparented child memory stats. > > > > > > $ /t

[PATCH] mm/madvise: fix WILLNEED on SHM/ANON to actually do something

2014-05-23 Thread David Herrmann
Currently, madvise(MADV_WILLNEED) on shmem with swap enabled is a no-op. Problem is, we use find_get_page() to lookup shmem pages in the given range. However, what we're actually interested in is swapped-out pages. Therefore, our current code is a no-op: page = find_get_page(mapping, index);

<    1   2   3   4   5   6   7   8   >