[PATCH 1/2] groups: Factor out a function to set a pre-sorted group list

2014-11-15 Thread Josh Triplett
This way, functions that already need to sort the group list need not do so twice. The new set_groups_sorted is intentionally not exported. Signed-off-by: Josh Triplett j...@joshtriplett.org --- kernel/groups.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git

[PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Josh Triplett
Currently, unprivileged processes (without CAP_SETGID) cannot call setgroups at all. In particular, processes with a set of supplementary groups cannot further drop permissions without obtaining elevated permissions first. Allow unprivileged processes to call setgroups with a subset of their

[PATCH manpages] getgroups.2: Document unprivileged setgroups calls

2014-11-15 Thread Josh Triplett
Signed-off-by: Josh Triplett j...@joshtriplett.org --- This should probably also include appropriate documentation for what kernel introduces this behavior. man2/getgroups.2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/man2/getgroups.2 b/man2/getgroups.2 index

Re: [PATCH] zram: rely on the bi_end_io for zram_rw_page fails

2014-11-15 Thread Sergey Senozhatsky
Hi, On (11/14/14 09:49), Minchan Kim wrote: When I tested zram, I found processes got segfaulted. The reason was zram_rw_page doesn't make the page dirty again when swap write failed, and even it doesn't return error by [1]. If error by zram internal happens, zram_rw_page should return

Re: [PATCH v2] x86, mm: set NX across entire PMD at boot

2014-11-15 Thread Yinghai Lu
On Fri, Nov 14, 2014 at 7:38 PM, Yinghai Lu ying...@kernel.org wrote: On Fri, Nov 14, 2014 at 6:46 PM, Kees Cook keesc...@chromium.org wrote: Is this correct? It sounded like tglx wanted the pmd split, like this: 0x8220-0x82c010M RW PSE GLB NX pmd

Re: [PATCH v10 05/11] drm: bridge/dw_hdmi:split some phy configuration to platform driver

2014-11-15 Thread Daniel Kurtz
On Fri, Nov 14, 2014 at 7:13 PM, Zubair Lutfullah Kakakhel zubair.kakak...@imgtec.com wrote: On 14/11/14 11:08, Andy Yan wrote: On 2014年11月14日 18:55, Zubair Lutfullah Kakakhel wrote: On 14/11/14 10:53, Andy Yan wrote: Hi ZubairLK: Thanks for your review. On 2014年11月14日 18:19, Zubair

Re: [PATCH v10 05/11] drm: bridge/dw_hdmi:split some phy configuration to platform driver

2014-11-15 Thread Russell King - ARM Linux
On Sat, Nov 15, 2014 at 06:07:50PM +0800, Daniel Kurtz wrote: On Fri, Nov 14, 2014 at 7:13 PM, Zubair Lutfullah Kakakhel zubair.kakak...@imgtec.com wrote: On 14/11/14 11:08, Andy Yan wrote: On 2014年11月14日 18:55, Zubair Lutfullah Kakakhel wrote: On 14/11/14 10:53, Andy Yan wrote:

[x86, mm] BUG: Bad page state in process swapper/0 pfn:020c0

2014-11-15 Thread Fengguang Wu
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git x86/pmd-nx commit 3622dcc2b4f4eaf23bae2511a30fc449d0e5f0d9 Author: Kees Cook keesc...@chromium.org AuthorDate: Fri Nov 14 11:36:17 2014 -0800

[x86, mm] kernel BUG at include/linux/mm.h:548!

2014-11-15 Thread Fengguang Wu
Hi Kees, Here is another bisect result. git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git x86/pmd-nx commit 3622dcc2b4f4eaf23bae2511a30fc449d0e5f0d9 Author: Kees Cook keesc...@chromium.org AuthorDate: Fri Nov 14 11:36:17 2014 -0800 Commit: Kees Cook keesc...@chromium.org

[x86, mm] WARNING: CPU: 0 PID: 1 at arch/x86/mm/pageattr.c:1086 __cpa_process_fault()

2014-11-15 Thread Fengguang Wu
Hi Kees, FYI, one more warning message and call trace. git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git x86/pmd-nx commit 3622dcc2b4f4eaf23bae2511a30fc449d0e5f0d9 Author: Kees Cook keesc...@chromium.org AuthorDate: Fri Nov 14 11:36:17 2014 -0800 Commit: Kees Cook

Re: SOLO6x10: fix a race in IRQ handler.

2014-11-15 Thread Hans Verkuil
Hi Andrey, Please always prefix the subject line with [PATCH] when you post a patch. That way it will be picked up by patchwork (https://patchwork.linuxtv.org/project/linux-media/list/) and the patch won't be lost. Can you repost with such a prefix? Thanks! Hans On 11/15/2014 11:34

[PATCH 1/2] PCI/MSI: Allow an msi_chip to be associated to an irq domain

2014-11-15 Thread Marc Zyngier
With the new stacked irq domains, it becomes pretty tempting to allocate an MSI domain per PCI bus, which would remove the requirement of either relying on arch-specific code, or a default PCI MSI domain. By allowing the msi_chip structure to carry a pointer to an irq_domain, we can easily use

[PATCH 0/2] Stacked domains and MSI improvements

2014-11-15 Thread Marc Zyngier
This short series builds upon Jiang Liu's MSI stacked domain and tries to clean up a couple of points: - Patch 1 allows an msi_chip to carry a pointer to its irq domain. When populated by the MSI driver, this allow the PCI bus to be associated with an irq domain, removing most of the need for

[PATCH 2/2] genirq: Work around __irq_set_handler vs stacked domains ordering issues

2014-11-15 Thread Marc Zyngier
With the introduction of stacked domains, we have the issue that, depending on where in the stack this is called, __irq_set_handler will succeed or fail: If this is called from the inner irqchip, __irq_set_handler() will fail, as it will look at the outer domain as the (desc-irq_data.chip ==

[PATCH] solo6x10: fix a race in IRQ handler

2014-11-15 Thread Andrey Utkin
From: Krzysztof Hałasa khal...@piap.pl The IRQs have to be acknowledged before they are serviced, otherwise some events may be skipped. Also, acknowledging IRQs just before returning from the handler doesn't leave enough time for the device to deassert the INTx line, and for bridges to propagate

Re: [PATCH v10 05/11] drm: bridge/dw_hdmi:split some phy configuration to platform driver

2014-11-15 Thread Russell King - ARM Linux
On Sat, Nov 15, 2014 at 10:12:18AM +, Russell King - ARM Linux wrote: Once the wranglings on the patch series are complete, I do intend to test it on the platforms I have - and remember that I do have the ALSA based audio and CEC bits as well, some of which will probably need a little bit

Re: [PATCH V2 2/2] dmaengine: Add driver for IMG MDC

2014-11-15 Thread Arnd Bergmann
On Friday 14 November 2014 13:59:43 Andrew Bresticker wrote: Add support for the IMG Multi-threaded DMA Controller (MDC) found on certain IMG SoCs. Currently this driver supports the variant present on the MIPS-based Pistachio SoC. Signed-off-by: Andrew Bresticker abres...@chromium.org

Re: [PATCH V2 1/2] dmaengine: Add binding document for IMG MDC

2014-11-15 Thread Arnd Bergmann
On Friday 14 November 2014 13:59:42 Andrew Bresticker wrote: Add a binding document for the IMG Multi-threaded DMA Controller (MDC) present on the MIPS-based Pistachio and other IMG SoCs. Signed-off-by: Andrew Bresticker abres...@chromium.org Acked-by: Arnd Bergmann a...@arndb.de -- To

[PATCH] genirq: Add IRQ 0 to domain debug file

2014-11-15 Thread Dmitry Eremin-Solenikov
Currently irq_domain_mapping debugfs file dumps IRQ information starting from IRQ 1. IRQ 0 is missing from that file. Add it to have the complete picture of IRQ/domains mappings. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- kernel/irq/irqdomain.c | 2 +- 1 file changed, 1

[PATCH v8 1/4] ARM: rockchip: add suspend and resume for RK3288

2014-11-15 Thread Chris Zhong
It's a basic version of suspend and resume for rockchip, it only support RK3288 now. Signed-off-by: Tony Xie x...@rock-chips.com Signed-off-by: Chris Zhong z...@rock-chips.com Tested-by: Doug Anderson diand...@chromium.org Reviewed-by: Doug Anderson diand...@chromium.org --- Changes in v8: -

[PATCH v8 0/4] This is the 1st version of suspend for RK3288.

2014-11-15 Thread Chris Zhong
This suspend patch is only support cut off the power of cpu and some external devices, since we still lack power_domain driver, so the other power rail of rk3288 need keep power on. I have tested it on rk3288-evb board, atop next-20141112. goto suspend by type echo mem /sys/power/state, vdd_cpu

[PATCH v8 4/4] ARM: dts: add suspend voltage setting for RK808

2014-11-15 Thread Chris Zhong
global_pwroff would be pull to high when RK3288 entering suspend, this pin is a sleep signal for RK808, so RK808 could goto sleep mode, and some regulators would be disable. Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v8: - keep all except cputp power rail on during suspend -

[PATCH v8 3/4] ARM: dts: add RK3288 suspend support

2014-11-15 Thread Chris Zhong
add pmu sram node for suspend, add global_pwroff pinctrl. The pmu sram is used to store the resume code. global_pwroff is held low level at work, it would be pull to high when entering suspend. reference this in the board DTS file since some boards need it. ddrio_pwroff is power switch of

[PATCH v8 2/4] ARM: rockchip: Add pmu-sram binding

2014-11-15 Thread Chris Zhong
The pmu-sram is used to store resume code, suspend/resume need get the address of it. Therefore add a binding and documentation for it. Signed-off-by: Tony Xie x...@rock-chips.com Signed-off-by: Chris Zhong z...@rock-chips.com Reviewed-by: Doug Anderson diand...@chromium.org --- Changes in v8:

Re: [PATCH] PM / domains: Kconfig: always enable PM_RUNTIME when genpd enabled

2014-11-15 Thread Geert Uytterhoeven
Hi Kevin, On Fri, Nov 14, 2014 at 6:36 PM, Kevin Hilman khil...@kernel.org wrote: On Thu, Nov 13, 2014 at 11:28 PM, Kevin Hilman khil...@kernel.org wrote: It makes little sense to use generic power domains without runtime PM. Does it? It still powers down the PM domains on system suspend (at

Re: [PATCH] genirq: Add IRQ 0 to domain debug file

2014-11-15 Thread Jiang Liu
On 2014/11/15 19:27, Dmitry Eremin-Solenikov wrote: Currently irq_domain_mapping debugfs file dumps IRQ information starting from IRQ 1. IRQ 0 is missing from that file. Add it to have the complete picture of IRQ/domains mappings. Hi Dmitry, For most irqdomain interfaces, they treat

Re: [PATCH] zsmalloc: correct fragile [kmap|kunmap]_atomic use

2014-11-15 Thread Sergey Senozhatsky
On (11/14/14 09:07), Seth Jennings wrote: On Fri, Nov 14, 2014 at 10:11:01AM +0900, Minchan Kim wrote: The kunmap_atomic should use virtual address getting by kmap_atomic. However, some pieces of code in zsmalloc uses modified address, not the one got by kmap_atomic for kunmap_atomic.

Re: phy/micrel: KSZ8031RNL RMII clock reconfiguration bug

2014-11-15 Thread Johan Hovold
On Wed, Nov 12, 2014 at 12:17:57PM +, Bruno Thomsen wrote: Hi Johan, As you may have seen by now, I've been working on refactoring the micrel phy driver to be able to use common initialisation code. Specifically, I've added generic support for disabling the broadcast address,

[Patch V2 0/9] Refine generic/PCI MSI irqodmian interfaces

2014-11-15 Thread Jiang Liu
This patch set is based on tip/irq/irqdomain and tries to refine interfaces to support irqdomain for generic MSI and PCI MSI. Patch 1 is just minor fixes for tip/irq/irqdomain. Patch 2-4 introduce mechanisms to help reduce irqdomain users' code size. When converting XEN to use hierarchy

[Patch V2 4/9] irqdomain: Introduce helper function irq_domain_add_hierarchy()

2014-11-15 Thread Jiang Liu
Introduce helper function irq_domain_add_hierarchy(), which creates a linear irqdomain if parameter 'size' is not zero, otherwise creates a tree irqdomain. Signed-off-by: Jiang Liu jiang@linux.intel.com --- include/linux/irqdomain.h |4 kernel/irq/irqdomain.c| 19

[Patch V2 1/9] PCI, MSI: Fix errors caused by commit e5f1a59c4e12

2014-11-15 Thread Jiang Liu
Better to fold into commit e5f1a59c4e12 (PCI/MSI: Rename write_msi_msg() to pci_write_msi_msg()). Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/pci/msi.c |2 +- include/linux/msi.h |2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pci/msi.c

[Patch V2 3/9] irqdomain: Implement a method to automatically call parent domain's alloc/free

2014-11-15 Thread Jiang Liu
Add a flags to irq_domain.flags to control whether the irqdomain core should automatically call parent irqdomain's alloc/free callbacks. It help to reduce hierarchy irqdomains users' code size. Signed-off-by: Jiang Liu jiang@linux.intel.com --- include/linux/irqdomain.h | 24

[Patch V2 9/9] PCI, MSI: Provide mechanism to alloc/free MSI/MSIX interrupt from irqdomain

2014-11-15 Thread Jiang Liu
Provide mechanism to directly alloc/free MSI/MSIX interrupt from irqdomain, which will be used to replace arch_setup_msi_irq()/ arch_setup_msi_irqs()/arch_teardown_msi_irq()/arch_teardown_msi_irqs(). To kill weak functions, this patch introduce a new weak function arch_get_pci_msi_domain(), which

[Patch V2 8/9] PCI, MSI: Refine irqdomain interfaces to simplify its usage

2014-11-15 Thread Jiang Liu
Refine irqdomain interfaces to simplify its usage. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/pci/msi.c | 119 ++- include/linux/msi.h | 13 +++--- 2 files changed, 98 insertions(+), 34 deletions(-) diff --git

[Patch V2 7/9] genirq: Provide default callbacks for msi_domain_ops

2014-11-15 Thread Jiang Liu
Extend struct msi_domain_info and provide default callbacks for msi_domain_ops. Signed-off-by: Jiang Liu jiang@linux.intel.com --- include/linux/msi.h | 29 ++--- kernel/irq/msi.c| 113 +++ 2 files changed, 129 insertions(+), 13

[Patch V2 6/9] genirq: Introduce msi_domain_{alloc|free}_irqs()

2014-11-15 Thread Jiang Liu
Introduce msi_domain_{alloc|free}_irqs() to alloc/free interrupts from generic MSI irqdomain. Signed-off-by: Jiang Liu jiang@linux.intel.com --- include/linux/msi.h | 39 + kernel/irq/msi.c| 60 +++ 2

[Patch V2 5/9] PCI, MSI: Introduce helpers to hide struct msi_desc implementation details

2014-11-15 Thread Jiang Liu
Introduce helpers to hide struct msi_desc implementation details, so we could easily support non-PCI-compliant MSI devices later by moving msi_list into struct device. Signed-off-by: Jiang Liu jiang@linux.intel.com --- include/linux/msi.h | 19 +++ 1 file changed, 19

[Patch V2 2/9] irqdomain: Use consistent prototype for irq_domain_free_irqs_*

2014-11-15 Thread Jiang Liu
From: Yingjoe Chen yingjoe.c...@mediatek.com When using irq_domain_free_irqs_top() directly in irq_domain_ops, gcc generate the following warnings: ../drivers/irqchip/irq-gic.c:879:2: warning: initialization from incompatible pointer type [enabled by default] ../drivers/irqchip/irq-gic.c:879:2:

Re: [PATCH] clk-divider: Fix READ_ONLY when divider 1

2014-11-15 Thread Heiko Stübner
Hi James, Am Freitag, 14. November 2014, 15:32:09 schrieb James Hogan: Commit 79c6ab509558 (clk: divider: add CLK_DIVIDER_READ_ONLY flag) in v3.16 introduced the CLK_DIVIDER_READ_ONLY flag which caused the recalc_rate() and round_rate() clock callbacks to be omitted. However using this flag

[PATCH] staging: rtl8712: fix coding style warning

2014-11-15 Thread Christian Resell
Simple style fix (else is not generally useful after a break or return). For the eudyptula challenge (http://eudyptula-challenge.org/). Signed-off-by: Christian F. Resell christian.res...@gmail.com --- diff --git a/drivers/staging/rtl8712/rtl871x_security.c

Re: [PATCH] [media] Add RGB444_1X12 and RGB565_1X16 media bus formats

2014-11-15 Thread Sakari Ailus
Hi Boris, Boris Brezillon wrote: Hi Sakari, On Fri, 14 Nov 2014 15:58:31 +0200 Sakari Ailus sakari.ai...@iki.fi wrote: Hi Boris, On Fri, Nov 14, 2014 at 11:36:00AM +0100, Boris Brezillon wrote: ... diff --git a/include/uapi/linux/media-bus-format.h

Re: [PATCH] genirq: Add IRQ 0 to domain debug file

2014-11-15 Thread Dmitry Eremin-Solenikov
Hello, 2014-11-15 16:01 GMT+03:00 Jiang Liu jiang@linux.intel.com: On 2014/11/15 19:27, Dmitry Eremin-Solenikov wrote: Currently irq_domain_mapping debugfs file dumps IRQ information starting from IRQ 1. IRQ 0 is missing from that file. Add it to have the complete picture of IRQ/domains

Re: [PATCH] staging: rtl8712: fix coding style warning

2014-11-15 Thread Larry Finger
On 11/15/2014 08:25 AM, Christian Resell wrote: Simple style fix (else is not generally useful after a break or return). For the eudyptula challenge (http://eudyptula-challenge.org/). Signed-off-by: Christian F. Resell christian.res...@gmail.com --- This patch leads to the following build

Re: Creating a new platform_bus inside a spi_driver

2014-11-15 Thread DATACOM - Erico Nunes
On 11/13/2014 06:52 AM, Stanimir Varbanov wrote: Hi Grant, Arnd and Erico On 11/11/2014 01:07 PM, Grant Likely wrote: On Fri, 07 Nov 2014 18:04:35 +0100 , Arnd Bergmann a...@arndb.de wrote: On Friday 07 November 2014 14:37:26 DATACOM - Érico Nunes wrote: Hello Arnd and all, On

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Eric W. Biederman
Josh Triplett j...@joshtriplett.org writes: Currently, unprivileged processes (without CAP_SETGID) cannot call setgroups at all. In particular, processes with a set of supplementary groups cannot further drop permissions without obtaining elevated permissions first. Allow unprivileged

[PATCH] staging: comedi: me4000: Fixed code style issue

2014-11-15 Thread Marcus Hufvudsson
Fixed checkpatch.pl error message. Space prohibited before that ',' Signed-off-by: Marcus Hufvudsson marcus...@gmail.com --- drivers/staging/comedi/drivers/me4000.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/me4000.c

Re: [PATCH 1/3] iio: adc: Add module device table for autoloading

2014-11-15 Thread Jonathan Cameron
On 11/11/14 19:30, Jacob Pan wrote: From: Aaron Lu aaron...@intel.com Add the module device id table so that the driver can be automatically loaded once the platform device is created. Signed-off-by: Aaron Lu aaron...@intel.com Signed-off-by: Jacob Pan jacob.jun@linux.intel.com

Re: [PATCH 3/3] iio/axp288_adc: remove THIS_MODULE owner

2014-11-15 Thread Jonathan Cameron
On 11/11/14 19:30, Jacob Pan wrote: This is no longer needed in that platform driver_register will do it. Signed-off-by: Jacob Pan jacob.jun@linux.intel.com Acked-by: Jonathan Cameron ji...@kernel.org --- drivers/iio/adc/axp288_adc.c | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH] iio: Fix IIO_EVENT_CODE_EXTRACT_DIR bit mask

2014-11-15 Thread Jonathan Cameron
On 11/11/14 14:07, Cristina Ciocan wrote: The direction field is set on 7 bits, thus we need to AND it with 0111 111 mask in order to retrieve it, that is 0x7F, not 0xCF as it is now. Fixes: ade7ef7ba (staging:iio: Differential channel handling) Signed-off-by: Cristina Ciocan

Re: [PATCH] iio: accel: kxcjk-1013: Fix kxcjk10013_set_range

2014-11-15 Thread Jonathan Cameron
On 10/11/14 08:20, Daniel Baluta wrote: Currently, we get the new GSEL bits by OR-ing the old values with the new ones. This only works first time when the old values are 0. Startup: * GSEL0 = 0, GSEL1 = 0 Set range to 4G: (GSEL0 = 1, GSEL1 = 0) * GSEL0 = 0 | 1 = 1 *

Re: [PATCH] mm: do not overwrite reserved pages counter at show_mem()

2014-11-15 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/14/2014 01:34 PM, Rafael Aquini wrote: Minor fixlet to perform the reserved pages counter aggregation for each node, at show_mem() Signed-off-by: Rafael Aquini aqu...@redhat.com Acked-by: Rik van Riel r...@redhat.com - -- All rights

[PATCH 1/1] fs-ext4: Deletion of an unnecessary check before the function call iput

2014-11-15 Thread SF Markus Elfring
From: Markus Elfring elfr...@users.sourceforge.net Date: Sat, 15 Nov 2014 19:04:06 +0100 The iput() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by:

Re: Request for help: what did I do wrong with idtentry?

2014-11-15 Thread Andi Kleen
I'm not completely thrilled with what it does to double_fault, though. If we somehow get a double fault caused by an interrupt hitting userspace with a bad kernel_stack, then we'll end up page faulting in the double_fault prologue. I'm not convinced that this is worth worrying about. It

[PATCH 1/1] ntfs: Deletion of unnecessary checks before the function call iput

2014-11-15 Thread SF Markus Elfring
From: Markus Elfring elfr...@users.sourceforge.net Date: Sat, 15 Nov 2014 19:35:05 +0100 The iput() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by:

Re: Request for help: what did I do wrong with idtentry?

2014-11-15 Thread Andy Lutomirski
On Sat, Nov 15, 2014 at 10:28 AM, Andi Kleen a...@firstfloor.org wrote: I'm not completely thrilled with what it does to double_fault, though. If we somehow get a double fault caused by an interrupt hitting userspace with a bad kernel_stack, then we'll end up page faulting in the

Re: [PATCH v4 2/6] input: touchscreen: ti_am335x_tsc: Remove udelay in interrupt handler

2014-11-15 Thread Richard Cochran
On Fri, Nov 14, 2014 at 10:37:27AM +0530, Vignesh R wrote: From: Brad Griffis bgrif...@ti.com TSC interrupt handler had udelay to avoid reporting of false pen-up interrupt to user space. This patch implements workaround suggesting in Advisory 1.0.31 of silicon errata for am335x, thus

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Josh Triplett
On Sat, Nov 15, 2014 at 09:37:27AM -0600, Eric W. Biederman wrote: Josh Triplett j...@joshtriplett.org writes: Currently, unprivileged processes (without CAP_SETGID) cannot call setgroups at all. In particular, processes with a set of supplementary groups cannot further drop permissions

Re: [PATCH] irqchip: bcm7120-l2: fix error handling of irq_of_parse_and_map

2014-11-15 Thread Florian Fainelli
2014-11-14 14:16 GMT-08:00 Dmitry Torokhov d...@chromium.org: Return value of irq_of_parse_and_map() is unsigned int, with 0 indicating failure, so testing for negative result never works. Signed-off-by: Dmitry Torokhov d...@chromium.org Acked-by: Florian Fainelli f.faine...@gmail.com ---

Re: [PATCH] irqchip: brcmstb-l2: fix error handling of irq_of_parse_and_map

2014-11-15 Thread Florian Fainelli
2014-11-14 14:16 GMT-08:00 Dmitry Torokhov d...@chromium.org: Return value of irq_of_parse_and_map() is unsigned int, with 0 indicating failure, so testing for negative result never works. Signed-off-by: Dmitry Torokhov d...@chromium.org Acked-by: Florian Fainelli f.faine...@gmail.com ---

Re: [PATCH] irqchip: bcm7120-l2: fix error handling of irq_of_parse_and_map

2014-11-15 Thread Kevin Cernekee
On Fri, Nov 14, 2014 at 2:16 PM, Dmitry Torokhov d...@chromium.org wrote: Return value of irq_of_parse_and_map() is unsigned int, with 0 indicating failure, so testing for negative result never works. Signed-off-by: Dmitry Torokhov d...@chromium.org --- Not tested, found by casual code

[PATCH] staging: media: bcm2048: fix coding style error

2014-11-15 Thread Christian Resell
Simple style fix (checkpatch.pl: space prohibited before that ','). For the eudyptula challenge (http://eudyptula-challenge.org/). Signed-off-by: Christian F. Resell christian.res...@gmail.com --- diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c

Re: [Cocci] [PATCH 1/1] ntfs: Deletion of unnecessary checks before the function call iput

2014-11-15 Thread Julia Lawall
On Sat, 15 Nov 2014, SF Markus Elfring wrote: From: Markus Elfring elfr...@users.sourceforge.net Date: Sat, 15 Nov 2014 19:35:05 +0100 The iput() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected

[PATCH 1/2] mfd: t7l66xb: prepare/unprepare clocks

2014-11-15 Thread Dmitry Eremin-Solenikov
Change clk_enable/disable() calls to clk_prepare_enable() and clk_disable_unrepapre(). Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- drivers/mfd/t7l66xb.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mfd/t7l66xb.c

[PATCH 2/2] mfd: tc6387xb: prepare/unprepare clocks

2014-11-15 Thread Dmitry Eremin-Solenikov
Change clk_enable/disable() calls to clk_prepare_enable() and clk_disable_unrepapre(). Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- drivers/mfd/tc6387xb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/tc6387xb.c

[PATCH 1/1] fs-fat: Less function calls in fat_fill_super() after error detection

2014-11-15 Thread SF Markus Elfring
From: Markus Elfring elfr...@users.sourceforge.net Date: Sat, 15 Nov 2014 20:55:23 +0100 The iput() function was called in an inefficient way by the implementation of the fat_fill_super() function in case of an allocation failure. The corresponding source code was improved by deletion of two

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Andy Lutomirski
On Sat, Nov 15, 2014 at 11:29 AM, Josh Triplett j...@joshtriplett.org wrote: On Sat, Nov 15, 2014 at 09:37:27AM -0600, Eric W. Biederman wrote: Josh Triplett j...@joshtriplett.org writes: Currently, unprivileged processes (without CAP_SETGID) cannot call setgroups at all. In particular,

Re: [PATCH] staging: media: bcm2048: fix coding style error

2014-11-15 Thread Konrad Zapalowicz
On 11/15, Christian Resell wrote: Simple style fix (checkpatch.pl: space prohibited before that ','). For the eudyptula challenge (http://eudyptula-challenge.org/). Nice, however we do not need the information about the 'eudyptula challenge' in the commit message. If you want to include extra

Re: [PATCH 1/1] fs-fat: Less function calls in fat_fill_super() after error detection

2014-11-15 Thread Julia Lawall
On Sat, 15 Nov 2014, SF Markus Elfring wrote: From: Markus Elfring elfr...@users.sourceforge.net Date: Sat, 15 Nov 2014 20:55:23 +0100 The iput() function was called in an inefficient way by the implementation of the fat_fill_super() function in case of an allocation failure. The

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Josh Triplett
On Sat, Nov 15, 2014 at 12:06:20PM -0800, Andy Lutomirski wrote: On Sat, Nov 15, 2014 at 11:29 AM, Josh Triplett j...@joshtriplett.org wrote: On Sat, Nov 15, 2014 at 09:37:27AM -0600, Eric W. Biederman wrote: Josh Triplett j...@joshtriplett.org writes: Currently, unprivileged processes

Re: [PATCH] ARM: dts: rockchip: enable PWM on Radxa Rock

2014-11-15 Thread Heiko Stübner
Am Freitag, 14. November 2014, 16:32:25 schrieb Julien CHAUVEAU: This enables user space access to the 3 PWM available on the Radxa Rock headers. Signed-off-by: Julien CHAUVEAU julien.chauv...@neo-technologies.fr added to my v3.19-armsoc/dts branch -- To unsubscribe from this list: send the

[PATCH 1/1] lib/mpi: Deletion of unnecessary checks before the function call mpi_free_limb_space

2014-11-15 Thread SF Markus Elfring
From: Markus Elfring elfr...@users.sourceforge.net Date: Sat, 15 Nov 2014 21:33:26 +0100 The mpi_free_limb_space() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software.

Re: [PATCH] NFC: st21nfca: fix error handling of irq_of_parse_and_map

2014-11-15 Thread Christophe RICARD
Hi Dmitry, Thank you for your feedback. A patch got already pushed earlier this month: https://lists.01.org/pipermail/linux-nfc/2014-November/003123.html The i2c-core is already running the i2c_of_parse_and_map function when registering the slave device when using dts. This step got removed for

Re: [PATCH] NFC: st21nfcb: fix error handling of irq_of_parse_and_map

2014-11-15 Thread Christophe RICARD
Hi Dmitry, Thank you for your feedback. A patch got already pushed earlier this month: https://lists.01.org/pipermail/linux-nfc/2014-November/003126.html The i2c-core is already running the i2c_of_parse_and_map function when registering the slave device when using dts. This step got removed for

Re: [PATCH] PM / domains: Kconfig: always enable PM_RUNTIME when genpd enabled

2014-11-15 Thread Pavel Machek
On Fri 2014-11-14 23:41:15, Rafael J. Wysocki wrote: On Friday, November 14, 2014 09:36:17 AM Kevin Hilman wrote: Geert Uytterhoeven ge...@linux-m68k.org writes: Hi Kevin, On Thu, Nov 13, 2014 at 11:28 PM, Kevin Hilman khil...@kernel.org wrote: It makes little sense to use

Re: [PATCH] staging: media: bcm2048: fix coding style error

2014-11-15 Thread Pavel Machek
On Sat 2014-11-15 21:12:18, Konrad Zapalowicz wrote: On 11/15, Christian Resell wrote: Simple style fix (checkpatch.pl: space prohibited before that ','). For the eudyptula challenge (http://eudyptula-challenge.org/). Nice, however we do not need the information about the 'eudyptula

[PATCHv2 1/2] groups: Factor out a function to set a pre-sorted group list

2014-11-15 Thread Josh Triplett
This way, functions that already need to sort the group list need not do so twice. The new set_groups_sorted is intentionally not exported. Signed-off-by: Josh Triplett j...@joshtriplett.org --- kernel/groups.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git

[PATCHv2 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Josh Triplett
Currently, unprivileged processes (without CAP_SETGID) cannot call setgroups at all. In particular, processes with a set of supplementary groups cannot further drop permissions without obtaining elevated permissions first. Allow unprivileged processes to call setgroups with a subset of their

[PATCHv2 manpages] getgroups.2: Document unprivileged setgroups calls

2014-11-15 Thread Josh Triplett
Signed-off-by: Josh Triplett j...@joshtriplett.org --- v2: Document requirement for no_new_privs. (If this doesn't end up going into 3.18, the version number in the patch will need updating.) man2/getgroups.2 | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 2/3] r8169: Use load_acquire() and store_release() to reduce memory barrier overhead

2014-11-15 Thread Francois Romieu
Alexander Duyck alexander.du...@gmail.com : On 11/13/2014 01:30 PM, Francois Romieu wrote: Alexander Duyck alexander.h.du...@redhat.com : [...] In addition the r8169 uses a rmb() however I believe it is placed incorrectly as I assume it supposed to be ordering descriptor reads after

Re: linux-next: Tree for Nov 14

2014-11-15 Thread Guenter Roeck
On Fri, Nov 14, 2014 at 07:27:38PM +1100, Stephen Rothwell wrote: Hi all, Changes since 20141113: New tree: overlayfs The idle tree gained a conflict against Linus' tree. The scsi tree gained a conflict against the usb tree. Non-merge commits (relative to Linus' tree): 6264 6509

Re: [PATCH 1/1] ipc/mqueue.c: Drag unneeded code out of locks

2014-11-15 Thread Davidlohr Bueso
On Sat, 2014-11-15 at 04:44 +, Steven Stewart-Gallus wrote: What's the benefit here? Seems very risky at very little gain. The juice ain't worth the squeeze. NAK Hello, It is fair to argue that these changes are too tiny to be very meaningful for performance but the other goal of

Re: [PATCH] staging: media: bcm2048: fix coding style error

2014-11-15 Thread Greg KH
On Sat, Nov 15, 2014 at 09:59:34PM +0100, Pavel Machek wrote: On Sat 2014-11-15 21:12:18, Konrad Zapalowicz wrote: On 11/15, Christian Resell wrote: Simple style fix (checkpatch.pl: space prohibited before that ','). For the eudyptula challenge (http://eudyptula-challenge.org/).

Re: [V2 PATCH 01/10] added media agnostic (MA) USB HCD driver

2014-11-15 Thread Alan Stern
On Fri, 14 Nov 2014, Sean O. Stalley wrote: To summarize the spec: MA USB groups a host connected devices into MA service sets (MSS). The architectural limit is 254 MA devices per MSS. If the host needs to connect more devices than that, It can start a new MSS and connect to 254 more MA

Re: [PATCH] staging: media: bcm2048: fix coding style error

2014-11-15 Thread Konrad Zapalowicz
On 11/15, Pavel Machek wrote: On Sat 2014-11-15 21:12:18, Konrad Zapalowicz wrote: On 11/15, Christian Resell wrote: Simple style fix (checkpatch.pl: space prohibited before that ','). For the eudyptula challenge (http://eudyptula-challenge.org/). Nice, however we do not need the

Re: frequent lockups in 3.18rc4

2014-11-15 Thread Dave Jones
On Fri, Nov 14, 2014 at 02:01:27PM -0800, Linus Torvalds wrote: But since you say several times a day, just for fun, can you test the follow-up patch to that one-liner fix that Will Deacon posted today (Subject: [PATCH] mmu_gather: move minimal range calculations into generic code). That

[GIT PULL] parisc architecture patches for v3.18

2014-11-15 Thread Helge Deller
Hi Linus, please pull some patches for the parisc architecture for kernel 3.18 from git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-3.18-2 Changes include: - wire up the bpf syscall - Remove CONFIG_64BIT usage from some userspace-exported header files - Use

Re: [PATCH] clk: rockchip: fix clk_usbphy480m_gate bit location in register

2014-11-15 Thread Heiko Stübner
Am Donnerstag, 13. November 2014, 15:19:21 schrieb Kever Yang: According to rk3288 trm, the clk_usbphy480m_gate is locate at bit 14 of CRU_CLKGATE5_CON register. Signed-off-by: Kever Yang kever.y...@rock-chips.com applied this to my clk branch. Heiko -- To unsubscribe from this list: send

Re: [PATCH 7/8] x86, microcode, intel: guard against misaligned microcode data

2014-11-15 Thread Henrique de Moraes Holschuh
On Thu, 13 Nov 2014, Borislav Petkov wrote: On Wed, Nov 12, 2014 at 10:18:47PM -0200, Henrique de Moraes Holschuh wrote: The detail is that: since most Intel microcodes are bigger than the kmalloc cache, most of the time kmalloc will return page-aligned addresses, which don't need any

Re: [PATCH] clk: rockchip: fix clock select order for usbphy480m_src

2014-11-15 Thread Heiko Stübner
Am Donnerstag, 13. November 2014, 16:11:49 schrieb Kever Yang: According to rk3288 trm, the mux selector locate at bit[12:11] of CRU_CLKSEL13_CON shows: 2'b00: select HOST0 USB pll clock (clk_otgphy1) 2'b01: select HOST1 USB pll clock (clk_otgphy2) 2'b10: select OTG USB pll clock

[PATCHv3 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Josh Triplett
Currently, unprivileged processes (without CAP_SETGID) cannot call setgroups at all. In particular, processes with a set of supplementary groups cannot further drop permissions without obtaining elevated permissions first. Allow unprivileged processes to call setgroups with a subset of their

[PATCH] getgroups.2: Document unprivileged setgroups calls

2014-11-15 Thread Josh Triplett
Signed-off-by: Josh Triplett j...@joshtriplett.org --- v3: Document use of gid/egid/sgid. v2: Document requirement for no_new_privs. (If this doesn't end up going into 3.18, the version number in the patch will need updating.) man2/getgroups.2 | 11 +-- 1 file changed, 9 insertions(+),

[PATCHv3 1/2] groups: Factor out a function to set a pre-sorted group list

2014-11-15 Thread Josh Triplett
This way, functions that already need to sort the group list need not do so twice. The new set_groups_sorted is intentionally not exported. Signed-off-by: Josh Triplett j...@joshtriplett.org --- v2, v3: No changes to patch 1/2. kernel/groups.c | 16 +--- 1 file changed, 13

Re: [PATCH v2 00/33] thermal: exynos: convert the driver to use per-SoC type operations

2014-11-15 Thread Eduardo Valentin
Hello Bartlomiej, On Thu, Nov 13, 2014 at 04:00:55PM +0100, Bartlomiej Zolnierkiewicz wrote: Hi, This patch series replaces the hardware registers abstractions in the Exynos thermal driver by the usage of per-SoC type operations. Good! I think the driver is a bit confusing because it has

re: bug? mac 00:00:00:00:00:00 with natsemi DP83815 after driver load

2014-11-15 Thread devzero
forwarding to lkml, as no response on netdev list so far. maybe someone has a clue how to properly fix this timing issue. the remaining question is about how to correctly replace readl() with inl() to make it compile cleanly or how eeprom_delay() is being done correctly. inl() seems to be

[PATCH V2 00/22] Multiplatform BMIPS kernel

2014-11-15 Thread Kevin Cernekee
This patch series implements a multiplatform target that runs on a variety of different Broadcom chipsets based on the BMIPS CPUs. It evolved out of the BMIPS updates and BCM3384 platform support RFC posted earlier. V1-V2: - Add several more DTS files so the same kernel can boot on multiple

[PATCH V2 04/22] irqchip: bcm7120-l2: Refactor driver for arbitrary IRQEN/IRQSTAT offsets

2014-11-15 Thread Kevin Cernekee
Currently the driver assumes that REG_BASE+0x00 is the IRQ enable mask, and REG_BASE+0x04 is the IRQ status mask. This is true on BCM3384 and BCM7xxx, but it is not true for some of the controllers found on BCM63xx chips. So we will change a couple of key assumptions: - Don't assume that both

[PATCH V2 09/22] MIPS: BMIPS: Introduce helper function to change the reset vector

2014-11-15 Thread Kevin Cernekee
This will need to be called from a few different places, and the logic is starting to get a bit hairy (with the need for IPIs, CPU bug workarounds, and hazards). Signed-off-by: Kevin Cernekee cerne...@gmail.com --- arch/mips/kernel/smp-bmips.c | 65 +++- 1

[PATCH V2 01/22] irqchip: Update docs regarding irq_domain_add_tree()

2014-11-15 Thread Kevin Cernekee
Several drivers now use this API, including the ARM GIC driver, so remove the outdated comment. Signed-off-by: Kevin Cernekee cerne...@gmail.com --- Documentation/IRQ-domain.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/IRQ-domain.txt

[PATCH V2 19/22] Documentation: DT: Add mti vendor prefix

2014-11-15 Thread Kevin Cernekee
We have a bunch of platforms using mti,cpu-interrupt-controller but the mti prefix isn't documented. Fix this. Signed-off-by: Kevin Cernekee cerne...@gmail.com --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH V2 17/22] MIPS: BMIPS: Add PRId for BMIPS5200 (Whirlwind)

2014-11-15 Thread Kevin Cernekee
This is a dual core (quad thread) BMIPS5000. It needs a little extra code to boot the second core (CPU2/CPU3), but for now we can treat it the same as a single core BMIPS5000. Signed-off-by: Kevin Cernekee cerne...@gmail.com --- arch/mips/include/asm/cpu.h | 1 + arch/mips/kernel/cpu-probe.c |

  1   2   3   4   >