[PATCH 1/1] Cpufreq: Keep cpufreq sysfs nodes across S2RAM/S2DISK when using intel_pstate driver.

2014-09-18 Thread Lan Tianyu
Cpufreq core introduces cpufreq_suspended flag to let cpufreq sysfs nodes across S2RAM/S2DISK. But the flag is only set in the cpufreq_suspend() for cpufreq drivers which have target or target_index callback. This skips intel_pstate driver. This patch is to set the flag before checking target or ta

Re: [PATCH 00/24] MIPS GIC cleanup, part 1

2014-09-18 Thread Qais Yousef
On 09/17/2014 06:42 PM, Andrew Bresticker wrote: On Wed, Sep 17, 2014 at 3:20 AM, Qais Yousef wrote: On 09/16/2014 12:51 AM, Andrew Bresticker wrote: The current MIPS GIC driver and the platform code using it are rather ugly and could use a good cleanup before adding device-tree support [0]. T

Re: [GIT PULL] KEYS: Fixes for keyrings

2014-09-18 Thread James Morris
On Thu, 18 Sep 2014, David Howells wrote: > James Morris wrote: > > > No, if they go direct to Linus, they don't go into -next. > > Can you then sync your -next branch to Linus after Linus takes them please? Nope, I only want to sync on point releases unless absolutely necessary. -- James M

Re: [PATCH v2] Input: joystick - Use ktime for measuring timing

2014-09-18 Thread Takashi Iwai
At Wed, 17 Sep 2014 21:23:37 +0200, Andreas Mohr wrote: > > Hi, > > On Wed, Sep 10, 2014 at 05:57:17PM +0200, Takashi Iwai wrote: > > The current codes in gameport and analog joystick drivers for the time > > accounting have a long-standing problem when the system is running > > with CPU freq; si

Re: [PATCH RFC tip/core/rcu] Eliminate deadlock between CPU hotplug and expedited grace periods

2014-09-18 Thread Lan Tianyu
On 2014年09月17日 21:10, Paul E. McKenney wrote: > On Wed, Sep 17, 2014 at 03:11:42PM +0800, Lan Tianyu wrote: >> On 2014年08月29日 03:47, Paul E. McKenney wrote: >>> Currently, the expedited grace-period primitives do get_online_cpus(). >>> This greatly simplifies their implementation, but means that ca

Re: [RESEND PATCH 1/3] x86: Adding structs to reflect cpuid fields

2014-09-18 Thread Borislav Petkov
On Thu, Sep 18, 2014 at 02:29:54AM +0200, Radim Krčmář wrote: > I think you proposed to use magic constant in place of of MASK_FAM_X, so Huh, what? > Second problem: Most elements don't begin at offset 0, so the usual > retrieval would add a shift, (repurposing max_monitor_line_size) So what?

Re: [PATCH] mmc: rtsx: add card power off during probe

2014-09-18 Thread Roger Tseng
On Wed, 2014-09-17 at 21:29 +0200, Ulf Hansson wrote: > On 17 September 2014 11:11, micky wrote: > > On 09/17/2014 02:01 AM, Ulf Hansson wrote: > >> > >> On 12 September 2014 03:39, wrote: > >>> > >>> From: Roger Tseng > >>> > >>> Some platform have both UEFI driver and MFD/mmc driver, if enter

[PATCH] mfd: syscon: binding: Add syscon endianness support.

2014-09-18 Thread Xiubo Li
For many drivers which will support rich endianness of Devices need define DT properties by itself with the binding support. The regmap core has already support endianness of the following case: Index Device DT properties needed -- 1 BE

Re: [RFC Part2 v1 01/21] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-09-18 Thread Jiang Liu
On 2014/9/17 1:43, Thomas Gleixner wrote: > Jiang, > > On Thu, 11 Sep 2014, Jiang Liu wrote: >> diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c >> /* Create mapping */ >> -virq = irq_create_mapping(domain, hwirq); >> +#ifdef CONFIG_IRQ_DOMAIN_HIERARCHY >> +if (domain

bcache call trace

2014-09-18 Thread Thomas Stein
Hello everybody. I'm playing around with kernel 3.17-rc and noticed a bcache misbehaviour every now and then. The machine gets unresponsive and syslog gets this call trace: Sep 18 07:56:18 hn kernel: [139899.611485] Task dump for CPU 0: Sep 18 07:56:18 hn kernel: [139899.611487] bcache_gc R

[PATCH] spi: pl022: Add missing error check for devm_kzalloc

2014-09-18 Thread Kiran Padwal
Currently this driver is missing a check on the return value of devm_kzalloc, which would cause a NULL pointer dereference in a OOM situation. This patch adds a missing check. Signed-off-by: Kiran Padwal --- drivers/spi/spi-pl022.c |5 + 1 file changed, 5 insertions(+) diff --git a/dri

[PATCH v2 0/2] regulator: get voltage & duty table from dts for st-pwm

2014-09-18 Thread Chris Zhong
get voltage & duty table from device tree might be better, other platforms can also use this driver without any modify. Tested on a rk3288 sdk board as logic voltage regulator. Changes in v2: Adviced by Lee Jones - rename the documentation Adviced by Doug Anderson - update the example Adviced by

[PATCH v2 1/2] regulator: st-pwm: get voltage and duty table from dts

2014-09-18 Thread Chris Zhong
Get voltage & duty table from device tree might be better, other platforms can also use this driver without any modify. Signed-off-by: Chris Zhong eries-changes: 2 Adviced by Lee Jones - rename the file - remove all the prefix st_ - add depend on PWM in Kconfig --- Changes in v2: None driver

[PATCH v2 2/2] dt-bindings: add devicetree bindings for st-pwm regulator

2014-09-18 Thread Chris Zhong
Document the st-pwm regulator Signed-off-by: Chris Zhong --- Changes in v2: Adviced by Lee Jones - rename the documentation Adviced by Doug Anderson - update the example Adviced by Mark Rutland - remove pwm-reg-period .../bindings/regulator/pwm-regulator.txt | 29 +

Re: [PATCH] x86: Consider multiple nodes in a single socket to be "sane"

2014-09-18 Thread Borislav Petkov
On Wed, Sep 17, 2014 at 02:55:26PM +0200, Borislav Petkov wrote: > This sounds misleading to me. If I would have to explain how I > understand physical_package_id, I'd say it is the physical piece of > silicon containing the core. Which is consistent with what Peter says > that using it to identify

Re: [PATCHv3 0/8] target: Save memory on unused se_dev_entrys and se_luns

2014-09-18 Thread Nicholas A. Bellinger
On Sat, 2014-09-13 at 21:55 +0200, Christoph Hellwig wrote: > On Tue, Jul 29, 2014 at 03:15:11PM +0200, Christoph Hellwig wrote: > > Nic, > > > > any progress on looking over these? Seems like there's actually > > nothing at all queued up for 3.17 in the target tree, or am І missing > > something

Re: [RFC][PATCH 0/6] fix topology for multi-NUMA-node CPUs

2014-09-18 Thread Borislav Petkov
On Wed, Sep 17, 2014 at 03:33:10PM -0700, Dave Hansen wrote: > This is a big fat RFC. It takes quite a few liberties with the > multi-core topology level that I'm not completely comfortable > with. > > It has only been tested lightly. > > Full dmesg for a Cluster-on-Die system with this set appl

Re: [PATCH 3.17-rc4 v7 4/6] irqchip: gic: Add support for IPI FIQ

2014-09-18 Thread Russell King - ARM Linux
On Wed, Sep 17, 2014 at 10:07:13PM +0100, Russell King - ARM Linux wrote: > On Wed, Sep 17, 2014 at 01:12:23PM -0700, Daniel Thompson wrote: > > I may have missed something but this sounds like the expected behaviour > > to me. > > > > Without AckCtl set (GIC_CPU_CTRL bit 2) then it is not possibl

Re: [PATCHv2] pinctrl: baytrail: Clear DIRECT_IRQ bit

2014-09-18 Thread Mika Westerberg
On Wed, Sep 17, 2014 at 03:47:01PM +0200, Loic Poulain wrote: > Direct Irq En bit can be initialized to a bad value. > This bit has to be cleared for io access mode. +Eric I would like to have a bit better explanation *why* this bit needs to be cleared. Also want to ask Eric (who added the WARN(

Re: [PATCH] staging: rtl8192u: delete unused function CAM_read_entry

2014-09-18 Thread Tobias Klauser
On 2014-09-17 at 21:17:29 +0200, Benedict Boerger wrote: > Fix the sparse warning: symbol 'CAM_read_entry' was not declared. Should it > be static? > > The function CAM_read_entry is not used and therefore deleted. Your patch is missing a Signed-off-by line. Please check Documentation/Submitti

[GIT PULL] sound fixes for 3.17-rc6

2014-09-18 Thread Takashi Iwai
Linus, please pull sound fixes for v3.17-rc6 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-3.17-rc6 The topmost commit is 779608521976e3b8d264f89c67e64c918949cc9b sound fixes for 3.17-rc6 All

RE: [PATCH v3] mfd: syscon: Decouple syscon interface from platform devices

2014-09-18 Thread li.xi...@freescale.com
Hi, [...] > > please see regmap_get_val_endian called in regmap_init function. > > static enum regmap_endian regmap_get_val_endian(struct device *dev, > > const struct regmap_bus *bus, > > const struct regmap_config >

[PATCH 1/2] cgroup: simplify proc_cgroup_show()

2014-09-18 Thread Zefan Li
Use the ONE macro instead of REG, and we can simplify proc_cgroup_show(). Signed-off-by: Zefan Li --- fs/proc/base.c | 19 ++- include/linux/cgroup.h | 3 ++- kernel/cgroup.c| 18 +++--- 3 files changed, 7 insertions(+), 33 deletions(-) diff --git a/

[PATCH 2/2] cpuset: simplify proc_cpuset_show()

2014-09-18 Thread Zefan Li
Use the ONE macro instead of REG, and we can simplify proc_cpuset_show(). Signed-off-by: Zefan Li --- fs/proc/base.c | 20 ++-- include/linux/cpuset.h | 3 ++- kernel/cpuset.c| 15 +++ 3 files changed, 7 insertions(+), 31 deletions(-) diff --git a/fs

[PATCH v2] cgroup: use a per-cgroup work for release agent

2014-09-18 Thread Zefan Li
Instead of using a global work to schedule release agent on removable cgroups, we change to use a per-cgroup work to do this, which makes the code much simpler. v2: use a dedicated work instead of reusing css->destroy_work. (Tejun) Signed-off-by: Zefan Li --- include/linux/cgroup.h | 10 ++---

Re: [PATCH 3.17-rc4 v7 4/6] irqchip: gic: Add support for IPI FIQ

2014-09-18 Thread Russell King - ARM Linux
On Wed, Sep 17, 2014 at 09:10:16AM -0700, Daniel Thompson wrote: > @@ -604,8 +731,19 @@ static void gic_raise_softirq(const struct cpumask > *mask, unsigned int irq) > { > int cpu; > unsigned long flags, map = 0; > + unsigned long softint; > > - raw_spin_lock_irqsave(&irq_co

Re: [PATCH 3.17-rc5 ] scripts/sortextable: Suppress warning: ‘relocs_size’ may be used uninitialized

2014-09-18 Thread Jamie Iles
Hi Tim, On Tue, Sep 16, 2014 at 12:49:22PM -0600, tim.gard...@canonical.com wrote: > From: Tim Gardner > > In file included from scripts/sortextable.c:194:0: > scripts/sortextable.c: In function ‘main’: > scripts/sortextable.h:176:3: warning: ‘relocs_size’ may be used uninitialized > in this fu

[PATCH] mfd: core: Fix possible ZERO_SIZE_PTR pointer dereferencing error.

2014-09-18 Thread Xiubo Li
Since we cannot make sure the 'cell->num_resources' will always be none zero here, and then if either equal to zero, the kzalloc() will return ZERO_SIZE_PTR, which equals to ((void *)16). So this patch fix this with just doing the zero check before calling kzalloc(). Signed-off-by: Xiubo Li ---

Re: [PATCH v4 2/3] i2c: add support for Diolan DLN-2 USB-I2C adapter

2014-09-18 Thread Johan Hovold
On Wed, Sep 17, 2014 at 01:07:51PM +0300, Octavian Purdila wrote: > On Wed, Sep 17, 2014 at 12:44 PM, Johan Hovold wrote: > > > > >> + /* > >> + * Buffer to hold the packet for read or write transfers. One > >> + * is enough since we can't have multiple transfers in > >> + *

Re: [PATCH v3] mfd: syscon: Decouple syscon interface from platform devices

2014-09-18 Thread Dong Aisheng
On Thu, Sep 18, 2014 at 11:33:26AM +0530, Pankaj Dubey wrote: > Hi, > > Adding CC to Xiubo Li, Geert Uytterhoeven and Stephen Warren. > > On Thursday, September 18, 2014, Dong Aisheng wrote, > > On Wed, Sep 17, 2014 at 04:50:50PM +0530, Pankaj Dubey wrote: > > > Hi, > > > > > > On Wednesday, Sep

[PATCH 0/15] POWER8 Coherent Accelerator device driver

2014-09-18 Thread Michael Neuling
This add support for the Coherent Accelerator (cxl) attached to POWER8 processors. This coherent accelerator interface is designed to allow the coherent connection of FPGA based accelerators (and other devices) to a POWER systems. IBM refers to this as the Coherent Accelerator Processor Interface

[PATCH 14/15] cxl: Add driver to Kbuild and Makefiles

2014-09-18 Thread Michael Neuling
From: Ian Munsie Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- drivers/misc/cxl/Kconfig | 18 ++ drivers/misc/cxl/Makefile | 3 +++ 2 files changed, 21 insertions(+) diff --git a/drivers/misc/cxl/Kconfig b/drivers/misc/cxl/Kconfig index 48533e1..d413e90 100644

[PATCH 15/15] cxl: Add documentation for userspace APIs

2014-09-18 Thread Michael Neuling
From: Ian Munsie This documentation gives an overview of the hardware architecture, userspace APIs via /dev/cxl/afu0.0 and the syfs files. It also adds a MAINTAINERS file entry for cxl. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- Documentation/ABI/testing/sysfs-class-cxl | 1

[PATCH 06/15] cxl: Add new header for call backs and structs

2014-09-18 Thread Michael Neuling
From: Ian Munsie This new header add defines for callbacks and structs needed by the rest of the kernel to hook into the cxl infrastructure. Empty functions are provided when CONFIG CXL_BASE is not enabled. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- include/misc/cxl.h | 34

[PATCH 12/15] cxl: Driver code for powernv PCIe based cards for userspace access

2014-09-18 Thread Michael Neuling
From: Ian Munsie This is the core of the cxl driver. It adds support for using cxl cards in the powernv environment only (no guest support). It allows access to cxl accelerators by userspace using /dev/cxl/afu0.0 char device. The kernel driver has no knowledge of the acceleration function. It

[PATCH 05/15] powerpc/powernv: Split out set MSI IRQ chip code

2014-09-18 Thread Michael Neuling
From: Ian Munsie Some of the MSI IRQ code in pnv_pci_ioda_msi_setup() is generically useful so split it out. This will be used by some of the cxl PCIe code later. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/platforms/powernv/pci-ioda.c | 43 ++---

[PATCH 11/15] cxl: Add base builtin support

2014-09-18 Thread Michael Neuling
From: Ian Munsie This adds the base cxl support that needs to be build into the kernel to use cxl as a module. This is needed so that the cxl call backs from the core powerpc mm code always exist irrespective of if the cxl module is loaded or not. This is similar to how cell works with CONFIG_S

[PATCH 04/15] powerpc/mm: Export mmu_kernel_ssize and mmu_linear_psize

2014-09-18 Thread Michael Neuling
From: Ian Munsie Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/mm/hash_utils_64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index daee7f4..0f73367 100644 --- a/arch/powerpc/mm/hash_utils_6

[PATCH 13/15] cxl: Userspace header file.

2014-09-18 Thread Michael Neuling
From: Ian Munsie This defines structs and magic numbers required for userspace to interact with the kernel cxl driver via /dev/cxl/afu0.0. It adds this header file Kbuild so it's exported when doing make headers_installs. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- include/u

[PATCH 10/15] powerpc/mm: Add hooks for cxl

2014-09-18 Thread Michael Neuling
From: Ian Munsie This add a hook into tlbie() so that we use global invalidations when there are cxl contexts active. Normally cxl snoops broadcast tlbie. cxl can have TLB entries invalidated via MMIO, but we aren't doing that yet. So for now we are just disabling local tlbies when cxl context

[PATCH 03/15] powerpc/msi: Improve IRQ bitmap allocator

2014-09-18 Thread Michael Neuling
From: Ian Munsie Currently msi_bitmap_alloc_hwirqs() will round up any IRQ allocation requests to the nearest power of 2. eg. ask for 5 IRQs and you'll get 8. This wastes a lot of IRQs which can be a scarce resource. For cxl we can require multiple IRQs for every contexts that is attached to t

[PATCH 07/15] powerpc/powerpc: Add new PCIe functions for allocating cxl interrupts

2014-09-18 Thread Michael Neuling
From: Ian Munsie This adds a number of functions for allocating IRQs under powernv PCIe for cxl. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/pnv-pci.h| 27 + arch/powerpc/platforms/powernv/pci-ioda.c | 186 ++

Re: [PATCH v5 1/4] thermal: rockchip: add driver for Thermal

2014-09-18 Thread Caesar Wang
Dear Dmitry, 在 2014年09月18日 01:02, Dmitry Torokhov 写道: Hi Caesar, On Wed, Sep 17, 2014 at 11:59:10AM +0800, Caesar Wang wrote: Thermal is TS-ADC Controller module supports user-defined mode and automatic mode. User-defined mode refers,TSADC all the control signals entirely by software writing

[PATCH 08/15] powerpc/mm: Add new hash_page_mm()

2014-09-18 Thread Michael Neuling
From: Ian Munsie This adds a new function hash_page_mm() based on the existing hash_page(). This version allows any struct mm to be passed in, rather than assuming current. This is useful for servicing co-processor faults which are not in the context of the current running process. We need to b

[PATCH 02/15] powerpc/cell: Move data segment faulting code out of cell platform

2014-09-18 Thread Michael Neuling
From: Ian Munsie __spu_trap_data_seg() currently contains code to determine the VSID and ESID required for a particular EA and mm struct. This code is generically useful for other co-processors. This moves the code of the cell platform so it can be used by other powerpc code. Signed-off-by: Ia

[PATCH 01/15] powerpc/cell: Move spu_handle_mm_fault() out of cell platform

2014-09-18 Thread Michael Neuling
From: Ian Munsie Currently spu_handle_mm_fault() is in the cell platform. This code is generically useful for other non-cell co-processors on powerpc. This patch moves this function out of the cell platform into arch/powerpc/mm so that others may use it. Signed-off-by: Ian Munsie Signed-off-b

[PATCH 09/15] powerpc/opal: Add PHB to cxl mode call

2014-09-18 Thread Michael Neuling
From: Ian Munsie This adds the OPAL call to change a PHB into cxl mode. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/opal.h| 2 ++ arch/powerpc/platforms/powernv/opal-wrappers.S | 1 + 2 files changed, 3 insertions(+) diff --git a/arch

Re: [RFC PATCH V2] PM/CPU: Parallel enalbing nonboot cpus with resume devices

2014-09-18 Thread Lan Tianyu
On 2014年09月17日 17:03, Gautham R Shenoy wrote: > Hi Lan, > > Sorry missed this repost! Couple of comments. > Np, Thanks for review :) > On Fri, Aug 22, 2014 at 04:33:40PM +0800, Lan Tianyu wrote: > > [.. snip ..] >> >> +static int _cpu_up_with_trace(int cpu) >> +{ >> +int error; >> + >> +

Re: [PATCH v4 2/3] i2c: add support for Diolan DLN-2 USB-I2C adapter

2014-09-18 Thread Octavian Purdila
On Thu, Sep 18, 2014 at 11:19 AM, Johan Hovold wrote: > On Wed, Sep 17, 2014 at 01:07:51PM +0300, Octavian Purdila wrote: >> On Wed, Sep 17, 2014 at 12:44 PM, Johan Hovold wrote: >> >> >> >> >> + /* >> >> + * Buffer to hold the packet for read or write transfers. One >> >> + * is e

Re: [PATCH] staging: lustre: lustre: libcfs: debug.c: Cleaning up unnecessary use of memset in conjunction with strncpy

2014-09-18 Thread Dan Carpenter
On Thu, Sep 18, 2014 at 12:12:42AM +0200, Rickard Strandqvist wrote: > Hi Dan > > Ok, I have made two suggestions for strncpy function that also > guarantees a terminating null character. > 1) retunerar number of characters to be copied, it can be good to > have, but was not really satisfied. str

Re: Status of 'cris' architecture support in Linux kernel

2014-09-18 Thread Jesper Nilsson
On Wed, Sep 17, 2014 at 09:07:53PM +0200, Guenter Roeck wrote: > Just to give you an update. I "kind of" got an image to run with qemu > after applying the following patches. > > 8119d33 cris: Add basic qemu_defconfig > 40d078b cris: time.c: Add missing include file to fix compile error > a4f2390

[PATCH] gpio: samsung: Remove remaining check for CONFIG_S5P_GPIO_DRVSTR

2014-09-18 Thread Paul Bolle
t hides)? > > Yes, I think this one is an obvious candidate for removal. Still there in v3.17-rc5 and next-20140918. So I submit yet another trivial cleanup. Done on top of next-20140918. Only tested by grepping the tree. Please note that, obviously, nothing uses s5p_gpio_get_drvstr() or s5

RE: [PATCH v3] mfd: syscon: Decouple syscon interface from platform devices

2014-09-18 Thread li.xi...@freescale.com
[...] > > I think there should have been a check for NULL on "dev" in > > "regmap_get_val_endian", so that if dev pointer exist then only it makes > > sense to get > > endianness property from DT. > > > > I will suggest following fix in regmap.c for this. With following fix I > > tested it and it w

Re: [RFC Part2 v1 01/21] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-09-18 Thread Jiang Liu
On 2014/9/18 16:48, Joe.C wrote: > On Thu, 2014-09-11 at 22:03 +0800, Jiang Liu wrote: >> +#else /* CONFIG_IRQ_DOMAIN_HIERARCHY */ >> +static inline int irq_domain_activate_irq(struct irq_data *data) { return >> 0; } >> +static inline int irq_domain_deactivate_irq(struct irq_data *data) { re

[PATCH 1/1] gpio: Fix ngpio in gpio-xilinx driver

2014-09-18 Thread Gernot Vormayr
If one adds 'gpio-controller;' to the chip in the devicetree, then initialization fails with 'gpiochip_find_base: cannot find free range', because ngpio is 0. This patch fixes the bug. Tested on ml507 board. Signed-off-by: Gernot Vormayr --- drivers/gpio/gpio-xilinx.c | 11 +++ 1 file c

[PATCH] blk-mq: Avoid race condition with uninitialized requests

2014-09-18 Thread David Hildenbrand
This patch should fix the bug reported in https://lkml.org/lkml/2014/9/11/249. Test is still pending. David Hildenbrand (1): blk-mq: Avoid race condition with uninitialized requests block/blk-mq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 1.8.5.5 -- To unsubscribe from th

[PATCH] blk-mq: Avoid race condition with uninitialized requests

2014-09-18 Thread David Hildenbrand
This patch should fix the bug reported in https://lkml.org/lkml/2014/9/11/249. We have to initialize at least the atomic_flags and the cmd_flags when allocating storage for the requests. Otherwise blk_mq_timeout_check() might dereference uninitialized pointers when racing with the creation of a r

Re: [PATCH v4 2/3] i2c: add support for Diolan DLN-2 USB-I2C adapter

2014-09-18 Thread Johan Hovold
On Thu, Sep 18, 2014 at 11:49:19AM +0300, Octavian Purdila wrote: > On Thu, Sep 18, 2014 at 11:19 AM, Johan Hovold wrote: > > On Wed, Sep 17, 2014 at 01:07:51PM +0300, Octavian Purdila wrote: > >> On Wed, Sep 17, 2014 at 12:44 PM, Johan Hovold wrote: > >> > >> > >> > >> >> + /* > >> >> +

[PATCH] kernel/kallsyms.c: use __seq_open_private()

2014-09-18 Thread Rob Jones
Reduce boilerplate code by using __seq_open_private() instead of seq_open() in kallsyms_open(). Signed-off-by: Rob Jones --- kernel/kallsyms.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index cb0cf37..606664d 100644 ---

Re: [PATCH v2] sound: pci: ctxfi: pr_* replaced with dev_*

2014-09-18 Thread Sudip Mukherjee
On Mon, Sep 15, 2014 at 08:17:52PM +0200, Takashi Iwai wrote: > At Mon, 15 Sep 2014 20:55:54 +0530, > Sudip Mukherjee wrote: > > > > On Mon, Sep 15, 2014 at 04:29:48PM +0200, Takashi Iwai wrote: > > > At Mon, 15 Sep 2014 19:39:41 +0530, > > > Sudip Mukherjee wrote: > > > > > > > > diff --git a/s

[RFC] fdt:free the fdt reserved memory

2014-09-18 Thread Wang, Yalin
This patch make some change to unflatten_dt_node(), make sure the device_node don't reference to fdt raw blob memory, so that we can free the raw blob reserved memory after initcalls. Signed-off-by: Yalin Wang --- drivers/of/fdt.c | 27 +++ include/linux/of_fdt.h |

Re: [PATCH v5 2/4] dt-bindings: document Rockchip thermal

2014-09-18 Thread Tomeu Vizoso
On 17 September 2014 05:59, Caesar Wang wrote: > This add the necessary binding documentation for the thermal > found on Rockchip SoCs Hi Caesar, is there any reason to not use the existing thermal bindings? You can find a description in Documentation/devicetree/bindings/thermal/thermal.txt and

[PATCH] Move BTRFS RCU string to common library

2014-09-18 Thread Omar Sandoval
The RCU-friendy string API used internally by BTRFS is generic enough for common use. This doesn't add any new functionality, but instead just moves the code and documents the existing API. Signed-off-by: Omar Sandoval --- This patch applies to 3.17-rc5. fs/btrfs/check-integrity.c | 6 ++-- fs

[PATCH] cgroup: fix unbalanced locking

2014-09-18 Thread Zefan Li
cgroup_pidlist_start() holds cgrp->pidlist_mutex and then calls pidlist_array_load(), and cgroup_pidlist_stop() releases the mutex. It is wrong that we release the mutex in the failure path in pidlist_array_load(), because cgroup_pidlist_stop() will be called no matter if cgroup_pidlist_start() re

Re: [PATCHv2] pinctrl: baytrail: Clear DIRECT_IRQ bit

2014-09-18 Thread Loic Poulain
Warn seems necessary because we unconditionally change the pin behavior, I didn't meet any case where direct irq is truly used on our platform. But maybe it could happen? Don't want to cause any hidden regression. Moreover if it is confirmed that is an hardware issue (BIOS), We can just keep this

RE: [PATCH v3] mfd: syscon: Decouple syscon interface from platform devices

2014-09-18 Thread Pankaj Dubey
Hi, On September 18, 2014 1:26, Dong Aisheng wrote > On Thu, Sep 18, 2014 at 11:33:26AM +0530, Pankaj Dubey wrote: > > Hi, > > > > Adding CC to Xiubo Li, Geert Uytterhoeven and Stephen Warren. > > > > On Thursday, September 18, 2014, Dong Aisheng wrote, > > > On Wed, Sep 17, 2014 at 04:50:50PM +05

[PATCH v2 0/5] Add drm driver for Rockchip Socs

2014-09-18 Thread Mark yao
From: mark yao This a series of patches is a DRM Driver for Rockchip Socs, add support for vop devices, eDP. Future patches will add additional encoders/connectors, such as HDMI. The basic "crtc" for rockchip is a "VOP" - Video Output Processor. the vop devices found on Rockchip rk3288 Soc, rk32

[PATCH v2 1/5] drm/rockchip: Add basic drm driver

2014-09-18 Thread Mark yao
This patch adds the basic structure of a DRM Driver for Rockchip Socs. Signed-off-by: Mark yao --- Changes in v2: - use the component framework to defer main drm driver probe until all VOP devices have been probed. - use dma-mapping API with ARM_DMA_USE_IOMMU, create dma mapping by master dev

RE: [PATCH v3] mfd: syscon: Decouple syscon interface from platform devices

2014-09-18 Thread Pankaj Dubey
Hi, On September 18, 2014, Li.Xiubo wrote, > Subject: RE: [PATCH v3] mfd: syscon: Decouple syscon interface from platform > devices > > [...] > > > I think there should have been a check for NULL on "dev" in > > > "regmap_get_val_endian", so that if dev pointer exist then only it > > > makes sens

RE: [PATCH] arm64:free_initrd_mem should also free the memblock

2014-09-18 Thread Wang, Yalin
Hi Russell, mm.. I see your meaning, But how to debug reserved memory, I mean how to know which physical memory are reserved in kernel if Not use /sys/kernel/debug/memblock/reserved debug file ? I think memblock provides a debug interface, so it should keep it Correct for debug . For Catalin

[PATCH v2 2/5] dt-bindings: video: Add for rockchip display subsytem

2014-09-18 Thread Mark yao
This add a display subsystem comprise the all display interface nodes. Signed-off-by: Mark Yao --- changes in v2: - add DRM master device node to list all display nodes that comprise the graphics subsystem. .../devicetree/bindings/video/rockchip-drm.txt | 19 +++ 1 file

[PATCH v2 3/5] dt-bindings: video: Add documentation for rockchip vop

2014-09-18 Thread Mark yao
This adds binding documentation for Rockchip SoC VOP driver. Signed-off-by: Mark Yao --- changes in v2: - rename "lcdc" to "vop" - add vop reset - add iommu node - add port for display-subsystem .../devicetree/bindings/video/rockchip-vop.txt | 58 1 file changed, 58 i

[PATCH v2 4/5] dt-bindings: video: Add documentation for rockchip edp

2014-09-18 Thread Mark yao
Add binding documentation for Rockchip SoC EDP driver. Signed-off-by: Jeff Chen Signed-off-by: Mark Yao --- changes in v2: - add edp reset - add panel node - add port for display-subsystem .../devicetree/bindings/video/rockchip-edp.txt | 50 1 file changed, 50 insert

Re: [RFC] ARM: edma: unconditionally ack the error interrupt

2014-09-18 Thread Peter Ujfalusi
On 09/10/2014 10:39 PM, Sebastian Andrzej Siewior wrote: > With 8250-dma, 8250-omap and am335x I observe the following: > > - start a RX transfer which will finish once the FIFO has enough data > - The TX side starts a large TX transfer, say 1244 bytes. It takes approx > 102ms for the transfer t

[PATCH v2 5/5] drm/rockchip: Add support for Rockchip Soc EDP

2014-09-18 Thread Mark yao
This adds support for Rockchip soc edp found on rk3288 Signed-off-by: Mark Yao Signed-off-by: Jeff Chen --- change in v2: - fix code sytle - use some define from drm_dp_helper.h - use panel-simple driver for primary display. - remove unnecessary clock clk_24m_parent. drivers/gpu/drm/rockchip/K

Re: [PATCHv2] pinctrl: baytrail: Clear DIRECT_IRQ bit

2014-09-18 Thread Samuel Ortiz
Hi Mika, On Thu, Sep 18, 2014 at 10:49:43AM +0300, Mika Westerberg wrote: > On Wed, Sep 17, 2014 at 03:47:01PM +0200, Loic Poulain wrote: > > Direct Irq En bit can be initialized to a bad value. > > This bit has to be cleared for io access mode. > > +Eric > > I would like to have a bit better ex

[PATCH] ASoC: samsung: Remove goni or aquila with the WM8994

2014-09-18 Thread Paul Bolle
an not be set anymore. > > > [...] > > I think it would be nice if you could submit a patch to remove the > drivers from ASoC, then we can see if anybody complains. Same thing for v3.17-rc5 and next-20140918. Let's see if we can remove the goni or aquila with wm8994 driver. Done on

[PATCH] regmap: fix NULL pointer dereference in regmap_get_val_endian

2014-09-18 Thread Pankaj Dubey
Recents commits for getting reg endianness causing NULL pointer dereference if dev is passed NULL in regmap_init_mmio. This patch fixes this issue, and allows to parse reg endianness only if dev and dev->of_node exist. Signed-off-by: Pankaj Dubey --- drivers/base/regmap/regmap.c | 23 +

Re: [PATCH v2 0/5] AHCI: Optimize interrupt processing

2014-09-18 Thread Alexander Gordeev
On Wed, Sep 17, 2014 at 05:41:44PM +0200, Alexander Gordeev wrote: > Hello, > > As per Tejun's feedback I am sending v2. This should have been v3, not v2. Please, disregard this series if you see it. Thanks! > Changes since v1: > - single patch split in a series of 5; > - changelog for patc

Re: [PATCHv2] pinctrl: baytrail: Clear DIRECT_IRQ bit

2014-09-18 Thread Mika Westerberg
On Thu, Sep 18, 2014 at 11:31:35AM +0200, Loic Poulain wrote: > Warn seems necessary because we unconditionally change > the pin behavior, I didn't meet any case where direct irq is truly > used on our platform. But maybe it could happen? > Don't want to cause any hidden regression. The datasheet

Re: [PATCHv2] pinctrl: baytrail: Clear DIRECT_IRQ bit

2014-09-18 Thread Mika Westerberg
On Thu, Sep 18, 2014 at 11:41:13AM +0200, Samuel Ortiz wrote: > Hi Mika, > > On Thu, Sep 18, 2014 at 10:49:43AM +0300, Mika Westerberg wrote: > > On Wed, Sep 17, 2014 at 03:47:01PM +0200, Loic Poulain wrote: > > > Direct Irq En bit can be initialized to a bad value. > > > This bit has to be cleare

Re: [PATCH 0/6] usb: dwc2/gadget: improvements for gadget driver

2014-09-18 Thread Robert Baldyga
Hi Greg, On 09/10/2014 10:34 PM, Greg KH wrote: > On Tue, Sep 09, 2014 at 10:44:51AM +0200, Robert Baldyga wrote: >> Hi, >> >> I have splitted my patchset "usb: dwc2/gadget: fix series" into two series. >> This patch series contains improvements for dwc2/gadget driver. It's intended >> for 3.18. >

Re: [PATCH v2 1/2] iio: vadc: Qualcomm SPMI PMIC voltage ADC driver

2014-09-18 Thread Stanimir Varbanov
Hi Jonathan, On 09/15/2014 07:11 PM, Jonathan Cameron wrote: > > > On September 15, 2014 3:12:50 PM GMT+01:00, Stanimir Varbanov > wrote: >> Hi Jonathan, >> >> Thanks for the review! >> >> On 09/13/2014 08:27 PM, Jonathan Cameron wrote: >>> On 13/09/14 00:27, Hartmut Knaack wrote: Stanimi

Re: [PATCH] mips: Save all registers when saving the frame

2014-09-18 Thread Ralf Baechle
On Tue, Sep 16, 2014 at 04:45:25PM -0500, miny...@acm.org wrote: > From: Corey Minyard > > The MIPS frame save code was just saving a few registers, enough to > do a backtrace if every function set up a frame. However, this is > not working if you are using DWARF unwinding, because most of the

Re: [PATCH] arm64:free_initrd_mem should also free the memblock

2014-09-18 Thread Russell King - ARM Linux
On Thu, Sep 18, 2014 at 05:38:54PM +0800, Wang, Yalin wrote: > Hi Russell, > > mm.. > I see your meaning, > But how to debug reserved memory, > I mean how to know which physical memory are reserved in kernel if > Not use /sys/kernel/debug/memblock/reserved debug file ? What are you trying to do

Re: [PATCH 01/15] powerpc/cell: Move spu_handle_mm_fault() out of cell platform

2014-09-18 Thread Jeremy Kerr
Hi Mikey & Ian, > Currently spu_handle_mm_fault() is in the cell platform. > > This code is generically useful for other non-cell co-processors on powerpc. > > This patch moves this function out of the cell platform into arch/powerpc/mm > so > that others may use it. Makes sense. Acked-by: Je

Re: [PATCH] fs: don't remove inotify watchers from alive inode-s

2014-09-18 Thread Jan Kara
On Thu 18-09-14 01:01:22, Andrew Vagin wrote: > From c7a79bccca1aac70f5e50fb145942b932eca79ba Mon Sep 17 00:00:00 2001 > From: Andrey Vagin > Date: Sat, 6 Sep 2014 08:35:24 +0400 > Subject: [PATCH] fs: don't remove inotify watchers from alive inode-s (v2) > > Currently watchers are removed in den

Re: [RESEND PATCH 1/3] x86: Adding structs to reflect cpuid fields

2014-09-18 Thread Radim Krčmář
2014-09-18 09:19+0200, Borislav Petkov: > On Thu, Sep 18, 2014 at 02:29:54AM +0200, Radim Krčmář wrote: > > I think you proposed to use magic constant in place of of MASK_FAM_X, so > > Huh, what? Your example. It cannot be verbatim MASK_FAM_X in real code. I interpreted it to be a placeholder f

Re: [PATCH] thermal: show supported policies

2014-09-18 Thread Sanjay Singh Rawat
thanks for the review Rui On Thursday 18 September 2014 06:27 AM, Zhang Rui wrote: On Tue, 2014-09-16 at 16:27 +0530, Sanjay Singh Rawat wrote: With knowledge of supported thermal policies from this attribute, it helps in setting the policy without failure from the available ones. Hmmm, I thi

Re: [PATCH v4 4/4] dma: pl330: add Power Management support

2014-09-18 Thread Krzysztof Kozlowski
On śro, 2014-09-17 at 20:42 +0200, Ulf Hansson wrote: > On 16 September 2014 10:51, Krzysztof Kozlowski > wrote: [...] > > > > @@ -2585,6 +2620,34 @@ static int pl330_dma_device_slave_caps(struct > > dma_chan *dchan, > > return 0; > > } > > > > +/* > > + * Assume that IRQ safe runtime

[PATCHv2 1/1] bluetooth: Check for SCO type before setting retransmission effort

2014-09-18 Thread Bernhard Thaler
SCO connection cannot be setup to devices that do not support retransmission. Patch based on http://permalink.gmane.org/gmane.linux.bluez.kernel/7779 and adapted for this kernel version. Code changed to check SCO/eSCO type before setting retransmission effort and max. latency. The purpose of the pa

Re: [PATCH v2] sound: pci: ctxfi: pr_* replaced with dev_*

2014-09-18 Thread Takashi Iwai
At Thu, 18 Sep 2014 14:51:26 +0530, Sudip Mukherjee wrote: > > On Mon, Sep 15, 2014 at 08:17:52PM +0200, Takashi Iwai wrote: > > At Mon, 15 Sep 2014 20:55:54 +0530, > > Sudip Mukherjee wrote: > > > > > > On Mon, Sep 15, 2014 at 04:29:48PM +0200, Takashi Iwai wrote: > > > > At Mon, 15 Sep 2014 19:

Re: [PATCH 2/6] phy: improved lookup method

2014-09-18 Thread Heikki Krogerus
On Mon, Sep 15, 2014 at 03:35:08PM +0300, Heikki Krogerus wrote: > On Fri, Sep 12, 2014 at 08:16:01PM +0530, Kishon Vijay Abraham I wrote: > > Assume you have 2 phys in your system.. > > static struct phy_lookup usb_lookup = { > > .phy_name = "phy-usb.0", > > .dev_id = "usb.0"

Re: [PATCH 02/15] powerpc/cell: Move data segment faulting code out of cell platform

2014-09-18 Thread Jeremy Kerr
Hi Mikey & Ian, > __spu_trap_data_seg() currently contains code to determine the VSID and ESID > required for a particular EA and mm struct. > > This code is generically useful for other co-processors. This moves the code > of the cell platform so it can be used by other powerpc code. OK, nice.

[PATCH] ASoC: samsung: Remove PCM support for WM8580 on SMDK

2014-09-18 Thread Paul Bolle
you could submit a patch to remove the > drivers from ASoC, then we can see if anybody complains. Also the same thing for v3.17-rc5 and next-20140918. So let's see if we can remove this driver too. Done on top of next-20140918. Again untested. >8 From: Paul Bolle Comm

Re: [PATCH v3] mfd: syscon: Decouple syscon interface from platform devices

2014-09-18 Thread Dong Aisheng
On Thu, Sep 18, 2014 at 03:06:59PM +0530, Pankaj Dubey wrote: > Hi, > > On September 18, 2014 1:26, Dong Aisheng wrote > > On Thu, Sep 18, 2014 at 11:33:26AM +0530, Pankaj Dubey wrote: > > > Hi, > > > > > > Adding CC to Xiubo Li, Geert Uytterhoeven and Stephen Warren. > > > > > > On Thursday, Sept

Re: [PATCH v4 3/3] gpio: add support for the Diolan DLN-2 USB GPIO driver

2014-09-18 Thread Johan Hovold
On Tue, Sep 09, 2014 at 10:24:46PM +0300, Octavian Purdila wrote: > +#define DLN2_GPIO_DIRECTION_IN 0 > +#define DLN2_GPIO_DIRECTION_OUT 1 > + > +static int dln2_gpio_get_direction(struct gpio_chip *chip, unsigned offset) > +{ > + int ret; > + struct dln2_gpio

Re: [Intel-gfx] External monitor issues with 3.17-rc4 and i915 module

2014-09-18 Thread Carlos R. Mafra
On Wed, 17 Sep 2014 at 11:39:57 +0300, Jani Nikula wrote: > On Tue, 16 Sep 2014, "Carlos R. Mafra" wrote: > > Hi, the same happens with 3.17-rc5. The kernel is unfortunately > > unusable with my external monitor because after some plug, unplug > > and suspend to RAM cycles the behaviour is not goo

[PATCH] vfs: Don't exchange filenames unconditionally.

2014-09-18 Thread Mikhail Efremov
Only exchange source and destination filenames if flags contain RENAME_EXCHANGE. In case if executable file was running and replaced by other file /proc/PID/exe should still show correct file name, not the old name of the file by which it was replaced. The scenario when this bug manifests itself w

Re: [PATCH 1/3] gpio: sch: Consolidate similar algorithms

2014-09-18 Thread Mika Westerberg
On Wed, Sep 17, 2014 at 04:49:03PM +0800, Chang Rebecca Swee Fun wrote: > Consolidating similar algorithms into common functions to make > GPIO SCH simpler and manageable. > > Signed-off-by: Chang Rebecca Swee Fun > --- > drivers/gpio/gpio-sch.c | 95 > ++--

  1   2   3   4   5   6   7   >