Re: [PATCH] kernel/sys: Fix the indent issue in switch.

2014-03-11 Thread Dongsheng Yang
Peter, Sorry for the noise, I should add this patch into my thread 'A series patchse about sched priority', as some patch depends on this patch. Otherwise, there will be a conflict. Thanx., On 03/11/2014 05:44 PM, Dongsheng Yang wrote: From: Joe Perches Fix the indent issue and add a

Re: [PATCH v3 4/5] ARM: dts: Add STiH407 SoC support

2014-03-11 Thread Maxime Coquelin
On 03/10/2014 01:28 PM, Lee Jones wrote: On Fri, 07 Mar 2014, Maxime COQUELIN wrote: The STiH407 is advanced multi-HD AVC processor with 3D graphics acceleration and 1.5-GHz ARM Cortex-A9 SMP CPU. Signed-off-by: Maxime Coquelin Signed-off-by: Giuseppe Cavallaro --- arch/arm/boot/dts/stih

Re: [PATCH v4 6/7] DMA: sun6i: Add driver for the Allwinner A31 DMA controller

2014-03-11 Thread Maxime Ripard
Hi, On Tue, Mar 11, 2014 at 09:52:55AM +, Shevchenko, Andriy wrote: > On Mon, 2014-03-10 at 15:41 +0100, Maxime Ripard wrote: > > The Allwinner A31 has a 16 channels DMA controller that it shares with the > > newer A23. Although sharing some similarities with the DMA controller of the > > olde

[PATCH 15/17] driver/staging/lustre: Replace hardcoding of -20 with MIN_NICE.

2014-03-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang cc: de...@driverdev.osuosl.org cc: Xiong Zhou cc: Andreas Dilger cc: Cyril Roelandt cc: Kent Overstreet cc: Peng Tao --- drivers/staging/lustre/lustre/llite/lloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre

[PATCH 16/17] driver/scsi: Replace hardcoding of -20 with MIN_NICE.

2014-03-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang cc: fcoe-de...@open-fcoe.org cc: James Smart cc: Robert Jennings cc: Robert Love --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 4 ++-- drivers/scsi/bnx2i/bnx2i_hwi.c| 2 +- drivers/scsi/fcoe/fcoe.c | 2 +- drivers/scsi/ibmvscsi/ibmvfc.c| 2 +- drivers/s

Re: [RFC 4/6] sched: powerpc: create a dedicated topology table

2014-03-11 Thread Preeti U Murthy
Hi Vincent, On 03/05/2014 12:48 PM, Vincent Guittot wrote: > Create a dedicated topology table for handling asymetric feature. > The current proposal creates a new level which describes which groups of CPUs > take adavantge of SD_ASYM_PACKING. The useless level will be removed during > the > buil

[PATCH 12/17] drivers/s390: Replace hardcoding of 19 with MAX_NICE.

2014-03-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang cc: linux-s...@vger.kernel.org cc: Heiko Carstens cc: Martin Schwidefsky cc: Ingo Tuchscherer --- drivers/s390/crypto/ap_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c index ab3

[PATCH 07/17] mm: Replace hardcoding of 19 with MAX_NICE.

2014-03-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang cc: linux...@kvack.org cc: Bob Liu cc: "Aneesh Kumar K.V" cc: "Kirill A. Shutemov" cc: Mel Gorman cc: Rik van Riel cc: Andrew Morton --- mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c ind

[PATCH 14/17] driver/staging/android: Use rlimit_to_nice to replace opened code implementation.

2014-03-11 Thread Dongsheng Yang
There is a macro rlimit_to_nice in linux/sched/prio.h to convert priority in rlimit to nice value. This patch replace the opened implementation with rlimit_to_nice. Signed-off-by: Dongsheng Yang cc: de...@driverdev.osuosl.org cc: Masanari Iida cc: Bojan Prtvar cc: Serban Constantinescu Signe

[PATCH 10/17] driver/block: Replace hardcoding of -20 with MIN_NICE.

2014-03-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang cc: nbd-gene...@lists.sourceforge.net cc: Wei Yongjun cc: Tejun Heo --- drivers/block/loop.c| 2 +- drivers/block/nbd.c | 2 +- drivers/block/pktcdvd.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/block/loop.c b/drivers/blo

[PATCH 17/17] sched: Get rid of opened code implementation of funtion nice_to_rlimit().

2014-03-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index ee8004c..d2735eb 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -3046,7 +3046,7 @@ EXPORT_SYMBOL(set_user_nice);

[PATCH 11/17] driver/char: Replace hardcoding of 19 with MAX_NICE.

2014-03-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang cc: openipmi-develo...@lists.sourceforge.net cc: Corey Minyard --- drivers/char/ipmi/ipmi_si_intf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 03f4189..03c0eed 100644

Re: [x86, vdso] BUG: unable to handle kernel paging request at d34bd000

2014-03-11 Thread Ingo Molnar
* Linus Torvalds wrote: > On Mon, Mar 10, 2014 at 1:19 PM, Linus Torvalds > wrote: > > > > If the only immediate problem is the code generation size, then Andy > > already had a (simpler) hack-around: > > > > #undef CONFIG_OPTIMIZE_INLINING > > #undef CONFIG_X86_PPRO_FENCE > > > > in vclock

[PATCH 09/17] fs/hearbeat: Replace hardcoding of -20 with MIN_NICE.

2014-03-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang cc: ocfs2-de...@oss.oracle.com cc: Dong Fang --- fs/ocfs2/cluster/heartbeat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c index bf482df..7303929 100644 --- a/fs/ocfs2/cluster/heartbe

Re: [PATCH v2] gpio: davinci: fix gpio selection for OF

2014-03-11 Thread Linus Walleij
On Wed, Mar 5, 2014 at 12:21 PM, Alexander Holler wrote: > The driver missed an of_xlate function to translate gpio numbers > as found in the DT to the correct chip and number. > > While there I've set #gpio_cells to a fixed value of 2. > > I've used gpio-pxa.c as template for those changes and t

[PATCH 13/17] sched/prio: Add an inline function named rlimit_to_nice in prio.h.

2014-03-11 Thread Dongsheng Yang
This patch add an inline function named rlimit_to_nice to convert rlimit style value in [1, 40] to nice value in [-20, 19]. Signed-off-by: Dongsheng Yang --- include/linux/sched/prio.h | 8 1 file changed, 8 insertions(+) diff --git a/include/linux/sched/prio.h b/include/linux/sched/pr

[PATCH 02/17] kernel/sys: Fix the indent issue in switch.

2014-03-11 Thread Dongsheng Yang
From: Joe Perches Fix the indent issue and add a comment line for /* fall-through */. Signed-off-by: Joe Perches Signed-off-by: Dongsheng Yang --- kernel/sys.c | 204 +-- 1 file changed, 102 insertions(+), 102 deletions(-) diff --git a/

[PATCH 4/4] serial: sh-sci: Replace hardcoded 3 by UART_PM_STATE_OFF

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index e0c7db0027b7..cceaaee2b585 100644 --- a/drivers/tty/serial/sh-sci.c +

[PATCH 03/17] kernel/sys: Replace opened code implementation with nice_to_rlimit().

2014-03-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang --- kernel/sys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/sys.c b/kernel/sys.c index 61a2ae9..1bfe79a 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -250,7 +250,7 @@ SYSCALL_DEFINE2(getpriority, int, which, int, who)

[PATCH 05/17] locktorture: Replace hardcoding of 19 with MAX_NICE.

2014-03-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang --- kernel/locking/locktorture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/locking/locktorture.c b/kernel/locking/locktorture.c index f26b1a1..23343be 100644 --- a/kernel/locking/locktorture.c +++ b/kernel/locking/locktorture.c @@ -21

[PATCH 08/17] ioprio: Add a macro named NICE_TO_IOPRIO.

2014-03-11 Thread Dongsheng Yang
As the task nice value is in [-20, 19] and the io priority is in [0, 7], and the convert method from niceval to ioprio is implemented with an opened code in task_nice_ioprio(). This patch move the implementation to a macro NICE_TO_IOPRIO, making it more readable and modular. Signed-off-by: Dongsh

[tip:perf/urgent] perf symbols: Fix crash in elf_section_by_name

2014-03-11 Thread tip-bot for Jiri Olsa
Commit-ID: 155b3a13a65d4217316dbe094843f2a7df0711fa Gitweb: http://git.kernel.org/tip/155b3a13a65d4217316dbe094843f2a7df0711fa Author: Jiri Olsa AuthorDate: Sun, 2 Mar 2014 14:32:07 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 10 Mar 2014 11:17:14 -0300 perf symbols: Fix

[tip:perf/urgent] perf machine: Use map as success in ip__resolve_ams

2014-03-11 Thread tip-bot for Don Zickus
Commit-ID: fdf57dd052d5cbd415533ae98f4d423286a85220 Gitweb: http://git.kernel.org/tip/fdf57dd052d5cbd415533ae98f4d423286a85220 Author: Don Zickus AuthorDate: Tue, 25 Feb 2014 22:43:45 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 10 Mar 2014 11:19:36 -0300 perf machine: Us

[tip:perf/urgent] perf trace: Decode architecture-specific signal numbers

2014-03-11 Thread tip-bot for Ben Hutchings
Commit-ID: 02c5bb4a352a4cca56e9b5d3a2a57d61062eb2e1 Gitweb: http://git.kernel.org/tip/02c5bb4a352a4cca56e9b5d3a2a57d61062eb2e1 Author: Ben Hutchings AuthorDate: Thu, 6 Feb 2014 01:00:41 + Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 10 Mar 2014 11:10:45 -0300 perf trace: De

[PATCH 3/4] serial: sh-sci: Add more register documentation

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 28 +++-- include/linux/serial_sci.h | 93 +++ 2 files changed, 73 insertions(+), 48 deletions(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers

[PATCH 04/17] workqueue: Replace hardcoding of -20 with MIN_NICE.

2014-03-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang cc: Tejun Heo --- kernel/workqueue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 3fa5b8f..7528bec 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -100,10 +100,10 @@ enum {

[PATCH 1/4] serial: sh-sci: Replace printk() by pr_*()

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Make banner const while we're at it Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 7958115e6a51..24ec6ef6798

[PATCH 06/17] tools/mq_perf_tests: Replace hardcoding of -20 with MIN_NICE.

2014-03-11 Thread Dongsheng Yang
Signed-off-by: Dongsheng Yang --- tools/testing/selftests/mqueue/mq_perf_tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mqueue/mq_perf_tests.c b/tools/testing/selftests/mqueue/mq_perf_tests.c index 2fadd4b..09dce51 100644 --- a/tools/testi

[PATCH 00/17 for-tip V3] A series patches about sched priority.

2014-03-11 Thread Dongsheng Yang
Hi all, This patchset is all about priority. 1. Add two inline functions in prio.h named nice_to_rlimit and rlimit_to_nice. They are converting the value between nice value [-20, 19] and rlimit style value [1, 40]. 2. Add a macro in ioprio.h named NICE_TO_IOPRIO. It convert nice

[PATCH 2/4] serial: sh-sci: Remove useless casts

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 24ec6ef67984..4529dbca2287 100644 --- a/drivers/tty/serial/sh

[PATCH 01/17] sched/prio: Add a inline function named nice_to_rlimit() in prio.h.

2014-03-11 Thread Dongsheng Yang
This patch add an inline function named nice_to_rlimit() in prio.h to convert nice value [19,-20] to rlimit style value [1,40]. Signed-off-by: Dongsheng Yang --- include/linux/sched/prio.h | 8 1 file changed, 8 insertions(+) diff --git a/include/linux/sched/prio.h b/include/linux/sche

Re: [PATCH] PM: Add missing "freeze" state

2014-03-11 Thread Srivatsa S. Bhat
On 03/11/2014 03:34 PM, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Srivatsa S. Bhat While at it, can you also fix up the comment over the state_show() function in kernel/power/main.c? It is also similarly outdated. Regards, Srivats

Re: [PATCH] devicetree: bindings: gpio-davinic: fix documentation

2014-03-11 Thread Linus Walleij
On Thu, Mar 6, 2014 at 6:58 AM, Prabhakar Lad wrote: > From: "Lad, Prabhakar" > > This patch adds missing #gpio-cells and also adds a > usage example for leds. > > Reported-by: Alexander Holler > Signed-off-by: Lad, Prabhakar Thanks, patch applied. Note: > + - second cell is used to specif

[PATCH 2/3] ARM: STi: stih416-b2020: Explicitly include STiH416 Pinctrl bindings

2014-03-11 Thread Lee Jones
At the moment we're relying on inheriting them from DTSI files which we're including Ideally we should be specifying these for ourselves. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih416-b2020-revE.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stih416-b2020-revE

[PATCH 1/3] ARM: DT: STi: Add support to B2020 revision E board.

2014-03-11 Thread Lee Jones
From: Srinivas Kandagatla This patch adds support to rev E board of B2020 which has few minor changes : PHY reset PIO (Change from PIO30 to PIO07) Power LED(Green) Control(Change from PIO47 to PIO13) Acked-by: Lee Jones Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/

[PATCH 3/3] ARM: STi: stih41x: Provide a proper header for this DTSI file

2014-03-11 Thread Lee Jones
Also explicitly include STiH416 Clk bindings instead of relying on inheriting them from other DTSI files which we happen to include. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih41x.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/stih41x.dtsi b/arch/arm/b

Re: [PATCH v4 6/7] DMA: sun6i: Add driver for the Allwinner A31 DMA controller

2014-03-11 Thread Shevchenko, Andriy
On Tue, 2014-03-11 at 11:08 +0100, Maxime Ripard wrote: [] > > > + spin_lock_irq(&sdev->lock); > > > + for (pchan_idx = 0; pchan_idx < NR_MAX_CHANNELS; pchan_idx++) { > > > + pchan = &sdev->pchans[pchan_idx]; > > > + > > > + if (pchan->vchan == NULL && !list_empty(&sdev->pending))

[PATCH trivial 03/16] drm/exynos: Spelling s/contro/control/

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: David Airlie Cc: dri-de...@lists.freedesktop.org --- drivers/gpu/drm/exynos/exynos_drm_ipp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c b/drivers/gpu/drm/exynos/e

[PATCH trivial 05/16] arm64: mm: Remove superfluous "the" in comment

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: Catalin Marinas Cc: linux-arm-ker...@lists.infradead.org --- arch/arm64/include/asm/pgtable.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.

[PATCH trivial 15/16] [SCSI] aic7xxx: Spelling s/termnation/termination/

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: James E.J. Bottomley Cc: linux-s...@vger.kernel.org --- drivers/scsi/aic7xxx/aic79xx.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/aic7xxx/aic79xx.h b/drivers/scsi/aic7xxx/aic79xx.h index 9b0

[PATCH trivial 02/16] serial_core: Grammar s/ports/port's/

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: Greg Kroah-Hartman Cc: linux-ser...@vger.kernel.org --- drivers/tty/serial/serial_core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c ind

[PATCHv6 0/6] Getting rid of get_unused_fd() / enable close-on-exec

2014-03-11 Thread Yann Droneaud
Hi, Please find the sixth revision of my patchset to remove get_unused_fd() macro in order to help subsystems to use get_unused_fd_flags() (or anon_inode_getfd()) with flags either provided by the userspace or set to O_CLOEXEC by default where appropriate. Without get_unused_fd() macro, more subs

[PATCH trivial 16/16] of: Spelling s/anonymouns/anonymous/

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: Grant Likely Cc: devicet...@vger.kernel.org --- include/linux/of_platform.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h index 05cb4a928252..8cdd53

Re: [PATCH 2/2] timer: Make sure TIMER_FLAG_MASK bits are free in allocated base

2014-03-11 Thread Viresh Kumar
Hi Thomas, On 28 February 2014 18:52, Thomas Gleixner wrote: > On Fri, 28 Feb 2014, Viresh Kumar wrote: > >> Currently we are using two lowest bit of base for internal purpose and so >> they >> both should be zero in the allocated address. The code was doing the right >> thing >> before this pa

[PATCH trivial 13/16] wimax: Spelling s/than/that/, wording s/destinatary/recipient/

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: Inaky Perez-Gonzalez Cc: wi...@linuxwimax.org --- include/net/wimax.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/net/wimax.h b/include/net/wimax.h index 98498e1daa06..e52ef5357e08 100644 ---

[PATCH trivial 12/16] ath6kl: Spelling s/determnine/determine/

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: John W. Linville Cc: linux-wirel...@vger.kernel.org --- drivers/net/wireless/ath/ath6kl/wmi.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath6kl/wmi.h b/drivers/net/wireless/ath/

[PATCHv6 1/6] ia64: use get_unused_fd_flags(0) instead of get_unused_fd()

2014-03-11 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be "unsafe": O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), function get_unused_fd_flags() (or anon_inode_getfd()) should be u

[PATCH trivial 14/16] dma: imx-sdma: Spelling s/determnine/determine/

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: Rob Herring Cc: devicet...@vger.kernel.org --- .../devicetree/bindings/dma/fsl-imx-sdma.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Docu

[PATCHv6 3/6] binfmt_misc: use get_unused_fd_flags(0) instead of get_unused_fd()

2014-03-11 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be "unsafe": O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), function get_unused_fd_flags() (or anon_inode_getfd()) should be u

Re: [PATCH] pinctrl-baytrail: add function mux checking in gpio pin request

2014-03-11 Thread Linus Walleij
On Thu, Mar 6, 2014 at 2:59 PM, Chew Chiau Ee wrote: > From: Chew, Kean Ho > > The requested gpio pin must has the func_pin_mux field set > to GPIO function by BIOS/FW in advanced. Else, the gpio pin > request would fail. This is to ensure that we do not expose > any gpio pins which shall be use

[PATCHv6 4/6] file: use get_unused_fd_flags(0) instead of get_unused_fd()

2014-03-11 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be "unsafe": O_CLOEXEC must be made the default to not leak file descriptor across exec(). In a further patch, get_unused_fd() will be removed so that new code start using get_unused_fd_flag

[PATCHv6 5/6] fanotify: enable close-on-exec on events' fd when requested in fanotify_init()

2014-03-11 Thread Yann Droneaud
According to commit 80af258867648, file descriptor created as part of file access notification events inherit flags from the event_f_flags argument passed to syscall fanotify_init(2). So while it is legal for userspace to call fanotify_init() with O_CLOEXEC as part of its second argument, O_CLOEXE

[PATCHv6 6/6] file: remove macro get_unused_fd()

2014-03-11 Thread Yann Droneaud
Macro get_unused_fd() allocates a file descriptor without enabling close-on-exec: it calls function get_unused_fd_flags() without O_CLOEXEC flag. This can be seen as an unsafe default: in most case close-on-exec should be enabled to not leak file descriptor across exec(). This patch removes get_u

Re: [PATCH] dma: Add Keystone Packet DMA Engine driver

2014-03-11 Thread Vinod Koul
On Fri, Feb 28, 2014 at 05:56:40PM -0500, Santosh Shilimkar wrote: > From: Sandeep Nair > > The Packet DMA driver sets up the dma channels and flows for the > QMSS(Queue Manager SubSystem) who triggers the actual data movements > across clients using destination queues. Every client modules like

Re: [PATCH] pinctrl-baytrail: add function mux checking in gpio pin request

2014-03-11 Thread Mika Westerberg
On Tue, Mar 11, 2014 at 11:27:13AM +0100, Linus Walleij wrote: > On Thu, Mar 6, 2014 at 2:59 PM, Chew Chiau Ee wrote: > > > From: Chew, Kean Ho > > > > The requested gpio pin must has the func_pin_mux field set > > to GPIO function by BIOS/FW in advanced. Else, the gpio pin > > request would fai

Re: [PATCH 1/4] serial: sh-sci: Replace printk() by pr_*()

2014-03-11 Thread Laurent Pinchart
Hi Geert, Thank you for the patches. I had patches similar to 3/4 and 4/4 in my tree, that's a sign you're going in the right direction (or at least the direction I consider to be right :-)). For the whole series, Acked-by: Laurent Pinchart On Tuesday 11 March 2014 11:11:17 Geert Uytterhoeve

Re: blackfin + dmaengine: conflicting define/enum "DMA_COMPLETE"

2014-03-11 Thread Vinod Koul
On Thu, Feb 27, 2014 at 10:59:47AM -0500, Oleksandr G Zhadan wrote: > Hello, > > It's good to "... matched the manual ...", and in this case we can > match the manual more pedantically, maybe with prefix "HOST". > > In the case of Host DMA port STATUS register: > > From manual : > HOST_STAT

[PATCHv6 2/6] ppc/cell: use get_unused_fd_flags(0) instead of get_unused_fd()

2014-03-11 Thread Yann Droneaud
Macro get_unused_fd() is used to allocate a file descriptor with default flags. Those default flags (0) can be "unsafe": O_CLOEXEC must be used by default to not leak file descriptor across exec(). Instead of macro get_unused_fd(), function get_unused_fd_flags() (or anon_inode_getfd()) should be u

[PATCH trivial 06/16] PM / Runtime: Add missing "it" in comment

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: Pavel Machek Cc: linux...@vger.kernel.org --- drivers/base/power/runtime.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c index 4776cf528d08..67c79

Re: [PATCH 2/6] sched: rework of sched_domain topology definition

2014-03-11 Thread Peter Zijlstra
On Thu, Mar 06, 2014 at 04:32:35PM +0800, Vincent Guittot wrote: > > Never got the new name DIE for CPU? Might confuse people when they use > > /proc/sys/kernel/sched_domain/cpuX/domainY/name or sched_domain_debug_one(). > > In fact, CPU is also confusing because it's used for different things. >

[PATCH trivial 07/16] PM / Hibernate: Spelling s/anonymouns/anonymous/

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: Pavel Machek Cc: linux...@vger.kernel.org --- kernel/power/snapshot.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c index d9f61a145802..149e745eaa52 100644

[PATCH trivial 08/16] packet: doc: Spelling s/than/that/

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: David S. Miller Cc: net...@vger.kernel.org --- Documentation/networking/packet_mmap.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/networking/packet_mmap.txt b/Documentation/networking/pac

[PATCH trivial 04/16] of: Improve grammar for of_alias_get_id() documentation

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: Grant Likely Cc: devicet...@vger.kernel.org --- drivers/of/base.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 89e888a78899..5becd08651a7 100644 --- a/driver

[PATCH trivial 09/16] i2c: Spelling s/than/that/

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: Wolfram Sang Cc: linux-...@vger.kernel.org --- Documentation/i2c/functionality |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/i2c/functionality b/Documentation/i2c/functionality index b0ff2ab59

[PATCH trivial 11/16] ath10k: Improve grammar in comments

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: John W. Linville Cc: linux-wirel...@vger.kernel.org --- drivers/net/wireless/ath/ath10k/wmi.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/

[PATCH trivial 01/16] serial_core: Spelling s/contro/control/

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: Greg Kroah-Hartman Cc: linux-ser...@vger.kernel.org --- drivers/tty/serial/serial_core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c ind

[PATCH trivial 10/16] gpio: Spelling s/than/that/

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven Cc: Linus Walleij Cc: linux-g...@vger.kernel.org --- drivers/gpio/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 858681ba0f5b..a994ba9608cd 100644 --- a/

Re: [PATCH 1/8] perf, tools: Add jsmn `jasmine' JSON parser

2014-03-11 Thread Jiri Olsa
On Wed, Mar 05, 2014 at 11:49:31AM -0800, Andi Kleen wrote: > From: Andi Kleen > SNIP > +{ > + return t->end - t->start; > +} > + > +/* Is string t equal to s? */ > +int json_streq(char *map, jsmntok_t *t, const char *s) > +{ > + unsigned len = t->end - t->start; > + return len == s

[PATCH v2 3/4] ASoC: simple-card: accept many DAI links

2014-03-11 Thread Jean-Francois Moine
Some simple audio cards may have many DAI links. This patch extends the simple-card driver for handling such cards. Signed-off-by: Jean-Francois Moine --- sound/soc/generic/simple-card.c | 132 ++-- 1 file changed, 85 insertions(+), 47 deletions(-) diff --git

[PATCH v2 4/4] ASoC: simple-card: Add DT documentation for multi-DAI links

2014-03-11 Thread Jean-Francois Moine
There may be many couples of CPU/CODEC DAI links. The example 2 is extracted from the Cubox DT. Signed-off-by: Jean-Francois Moine --- .../devicetree/bindings/sound/simple-card.txt | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/Documentation/devic

[PATCH v2 1/4] ASoC: simple-card: Fix the reference count of device nodes

2014-03-11 Thread Jean-Francois Moine
The reference count of some device nodes is not correctly reset at end of card probe. Signed-off-by: Jean-Francois Moine --- sound/soc/generic/simple-card.c | 50 ++--- 1 file changed, 37 insertions(+), 13 deletions(-) diff --git a/sound/soc/generic/simple-ca

[PATCH v2 2/4] ASoC: simple-card: dynamically allocate the DAI link array

2014-03-11 Thread Jean-Francois Moine
The DAI link array is hard-coded as a single CPU / CODEC link. This patch allocates this array with the card definition and facilitates handling more DAI links. Signed-off-by: Jean-Francois Moine --- sound/soc/generic/simple-card.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-)

[PATCH v2 0/4] ASoC: simple-card: DT fix and multi DAI links extension

2014-03-11 Thread Jean-Francois Moine
This patch series fixes a small problem about node device locks and also extends the simple card driver to handle many DAI links as this exists in the Cubox audio subsystem. - v2 - change subject/comment about device node reference count (Mark Brown) - use a null si

[PATCH] perf/x86/uncore: fix compilation warning in snb_uncore_imc_init_box()

2014-03-11 Thread Stephane Eranian
This patches fixes a compilation problem (unused variable) with the new SNB/IVB/HSW uncore IMC code. Reported-by: Stephen Rothwell Signed-off-by: Stephane Eranian diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c b/arch/x86/kernel/cpu/perf_event_intel_uncore.c index b262c61..3846a37

Re: [PATCH v6 6/6] pci: Add support for creating a generic host_bridge from device tree

2014-03-11 Thread Arnd Bergmann
On Tuesday 11 March 2014 09:46:41 Liviu Dudau wrote: > On Tue, Mar 11, 2014 at 06:50:24AM +, Arnd Bergmann wrote: > > On Monday 10 March 2014 21:56:00 Liviu Dudau wrote: > > > > > > PCI_IOBASE is always defined. See the discussion with Russell on this > > > subject. > > > > > > include/asm-g

Re: [PATCH 2/3] spi: sh-msiof: Convert to spi core auto_runtime_pm framework

2014-03-11 Thread Mark Brown
On Tue, Mar 11, 2014 at 10:59:11AM +0100, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven Applied, thanks. signature.asc Description: Digital signature

Re: [RFC][PATCH 0/7] locking: qspinlock

2014-03-11 Thread Ingo Molnar
* Peter Zijlstra wrote: > Hi Waiman, > > I promised you this series a number of days ago; sorry for the delay > I've been somewhat unwell :/ > > That said, these few patches start with a (hopefully) simple and > correct form of the queue spinlock, and then gradually build upon > it, explain

Re: [PATCH 3/3] spi: rspi: Add runtime PM support, using spi core auto_runtime_pm

2014-03-11 Thread Mark Brown
On Tue, Mar 11, 2014 at 10:59:12AM +0100, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven Applied, thanks, though... > - ret = clk_prepare_enable(rspi->clk); > - if (ret < 0) { > - dev_err(&pdev->dev, "unable to prepare/enable clock\n"); > - goto error1; > -

Re: [PATCH v2 0/7] tty: xuartps: Rebranding + DT documentation

2014-03-11 Thread Michal Simek
On 03/10/2014 10:40 PM, Soren Brinkmann wrote: > Hi, > > this series rebrands the Xilinx PS UART driver as Cadence UART and > documents its DT bindings (+ some clean up along the way). > > The rebranding goes as far as reasonable. Things like file name, kconfig > symbols and other things with use

Re: [PATCH v2] sched: Fix broken setscheduler()

2014-03-11 Thread Thomas Gleixner
On Tue, 11 Mar 2014, Juri Lelli wrote: > On Mon, 10 Mar 2014 17:37:31 -0400 > Steven Rostedt wrote: > > > On Mon, 10 Mar 2014 22:18:56 +0100 (CET) > > Thomas Gleixner wrote: > > > > > > > Lemme look at it tomorrow again with an awake brain. This seems to be > > > some forward porting hickup wh

Re: [PATCH 1/3] ARM: DT: STi: Add support to B2020 revision E board.

2014-03-11 Thread Maxime Coquelin
Hi Lee, On 03/11/2014 11:22 AM, Lee Jones wrote: From: Srinivas Kandagatla This patch adds support to rev E board of B2020 which has few minor changes : PHY reset PIO (Change from PIO30 to PIO07) Power LED(Green) Control(Change from PIO47 to PIO13) I thought we decided last O

Re: [PATCH trivial 06/16] PM / Runtime: Add missing "it" in comment

2014-03-11 Thread Pavel Machek
On Tue 2014-03-11 11:23:40, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven > > Signed-off-by: Geert Uytterhoeven Acked-by: Pavel Machek > Cc: linux...@vger.kernel.org Note that you might want to cc Rafael. Thanks, Pavel --

Re: [PATCH] MAINTAINERS: wi...@linuxwimax.org is subscribers-only

2014-03-11 Thread Geert Uytterhoeven
On Wed, Sep 25, 2013 at 9:54 PM, Joe Perches wrote: > Mark it so. > > Signed-off-by: Joe Perches Acked-by: Geert Uytterhoeven > --- > MAINTAINERS | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index e61c2e8..a386a22 100644 > --- a/MAIN

Re: [PATCH trivial 07/16] PM / Hibernate: Spelling s/anonymouns/anonymous/

2014-03-11 Thread Pavel Machek
On Tue 2014-03-11 11:23:41, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven > > Signed-off-by: Geert Uytterhoeven Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscr

Re: [PATCH 2/3] ARM: STi: stih416-b2020: Explicitly include STiH416 Pinctrl bindings

2014-03-11 Thread Maxime Coquelin
On 03/11/2014 11:22 AM, Lee Jones wrote: At the moment we're relying on inheriting them from DTSI files which we're including Ideally we should be specifying these for ourselves. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih416-b2020-revE.dts | 1 + 1 file changed, 1 insertion(+) di

Re: [PATCH 0/2] Fix CPPI Warnings during tear down after ISOCH transfers

2014-03-11 Thread Vinod Koul
On Thu, Feb 27, 2014 at 10:44:39AM +0530, George Cherian wrote: > Warinings are seen after ISOCH transfers, during channel tear down. > This is mainly beacause we handle ISOCH differently as compared to > other transfers. > > Patch 1: make sure we do channel tear down only if channel is busy. >

Re: [PATCH v3 2/5] pinctrl: st: Enhance the controller to manage unavailable registers

2014-03-11 Thread Maxime Coquelin
On 03/11/2014 09:18 AM, Maxime Coquelin wrote: On 03/10/2014 10:17 AM, Lee Jones wrote: From: Giuseppe Cavallaro This patch adds a new logic inside the st pinctrl to manage an unsupported scenario: some sysconfig are not available! This is the case of STiH407 where, although documented, t

Re: serial core: crash / race condition on unbind

2014-03-11 Thread Geert Uytterhoeven
Hi Peter, On Tue, Mar 11, 2014 at 4:14 AM, Peter Hurley wrote: >> >> [...] >> >> /* >> * Indicate that there isn't a port here anymore. >> */ >> uport->type = PORT_UNKNOWN; >> >> state->uart_port = NULL; > > How did this ever work? > > Detac

Re: [PATCH 2/2] dmaengine: at_hdmac: run callback function with no lock held nor interrupts disabled

2014-03-11 Thread Vinod Koul
On Mon, Jan 27, 2014 at 03:23:24PM +0100, Nicolas Ferre wrote: > Now, submission from callbacks are permitted as per dmaengine framework. So we > shouldn't hold any spinlock nor disable IRQs while calling callbacks. > As locks were taken by parent routines, spin_lock_irqsave() has to be called > in

[PATCH V4 RESEND] Support Thinkpad X1 Carbon 2nd gen's adaptive keyboard

2014-03-11 Thread Shuduo Sang
Resend patch V4. Support Thinkpad X1 Carbon 2nd generation's adaptive keyboard. Hi Henrique, could you please have a chance to review it? Thanks, Shuduo >From b153a7b14791c6e01892c0e274e23eefd625fb8d Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 3 Mar 2014 14:29:32 +0800 Subject: [PAT

Re: [RFC][PATCH 0/7] locking: qspinlock

2014-03-11 Thread Peter Zijlstra
On Tue, Mar 11, 2014 at 11:45:03AM +0100, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > Hi Waiman, > > > > I promised you this series a number of days ago; sorry for the delay > > I've been somewhat unwell :/ > > > > That said, these few patches start with a (hopefully) simple and > >

Re: [PATCHv2 RESEND] i2c: designware-pci: set ideal HCNT, LCNT and SDA hold time value

2014-03-11 Thread Mika Westerberg
On Tue, Mar 11, 2014 at 07:33:45PM +0800, Chew Chiau Ee wrote: > From: Chew, Chiau Ee > > On Intel BayTrail, there was case whereby the resulting fast mode > bus speed becomes slower (~20% slower compared to expected speed) > if using the HCNT/LCNT calculated in the core layer. Thus, this > patch

Re: [RFC][PATCH 0/7] locking: qspinlock

2014-03-11 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Tue, Mar 11, 2014 at 11:45:03AM +0100, Ingo Molnar wrote: > > > > * Peter Zijlstra wrote: > > > > > Hi Waiman, > > > > > > I promised you this series a number of days ago; sorry for the delay > > > I've been somewhat unwell :/ > > > > > > That said, these few p

Re: [PATCH v6 4/8] of: Reduce indentation in of_graph_get_next_endpoint

2014-03-11 Thread Philipp Zabel
Hi Laurent, Am Montag, den 10.03.2014, 20:19 +0100 schrieb Laurent Pinchart: > On Friday 07 March 2014 18:40:54 Philipp Zabel wrote: > > While we look at of_graph_get_next_endpoint(), could you explain the > > reason behind the extra reference count increase on the prev node: > > > > /* > >

[PATCH] MAINTAINERS: Add tools/net to NETWORKING [GENERAL]

2014-03-11 Thread Tobias Klauser
Make sure patches for these tools go to the netdev list as well. References: https://marc.info/?l=linux-kernel&m=139450284501328&w=2 Cc: David S. Miller Cc: Daniel Borkmann Signed-off-by: Tobias Klauser --- MAINTAINERS |1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTA

[PATCH v2] PM: Add missing "freeze" state

2014-03-11 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven --- v2: - Update comments for state_show() as suggested by Srivatsa S. Bhat Documentation/ABI/testing/sysfs-power |5 +++-- kernel/power/main.c |4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-)

Re: [PATCH 3/7] DMA: Freescale: add fsl_dma_free_descriptor() to reduce code duplication

2014-03-11 Thread Vinod Koul
On Thu, Jan 16, 2014 at 01:47:22PM +0800, hongbo.zh...@freescale.com wrote: > From: Hongbo Zhang > > There are several places where descriptors are freed using identical code. > This patch puts this code into a function to reduce code duplication. > > Signed-off-by: Hongbo Zhang > Signed-off-by

Re: [PATCH v2] PM: Add missing "freeze" state

2014-03-11 Thread Srivatsa S. Bhat
On 03/11/2014 04:38 PM, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Srivatsa S. Bhat Regards, Srivatsa S. Bhat > --- > v2: > - Update comments for state_show() as suggested by Srivatsa S. Bhat > > > Documentation/ABI/testin

Re: [PATCH v3 2/5] pinctrl: st: Enhance the controller to manage unavailable registers

2014-03-11 Thread Lee Jones
> >>From: Giuseppe Cavallaro > >> > >>This patch adds a new logic inside the st pinctrl to manage > >>an unsupported scenario: some sysconfig are not available! > >> > >>This is the case of STiH407 where, although documented, the > >>following registers from SYSCFG_FLASH have been removed from the

Re: [PATCH] x86, fix x86 fixup_irqs() error handling [v2]

2014-03-11 Thread Ingo Molnar
* Prarit Bhargava wrote: > fixup_irqs() calls chip->set_irq_affinity which eventually calls > __assign_irq_vector(). Errors are not propogated back from this function call > and this results in silent irq relocation failures. This patch fixes this > issue and prints out a warning if there is a

<    1   2   3   4   5   6   7   8   9   >