Re: [PATCH 2/5] all: introduce COMPAT_WRAPPER option and enable it for s390

2016-02-25 Thread Heiko Carstens
On Wed, Feb 24, 2016 at 09:34:11PM +0300, Yury Norov wrote: > Signed-off-by: Yury Norov > --- > arch/Kconfig | 4 > arch/s390/Kconfig | 1 + > 2 files changed, 5 insertions(+) > > diff --git a/arch/Kconfig b/arch/Kconfig > index f6b649d..6393093 100644 > --- a/arch/Kconfig > +++ b/arch

Re: [PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-25 Thread Heiko Carstens
On Wed, Feb 24, 2016 at 09:34:12PM +0300, Yury Norov wrote: > diff --git a/include/linux/syscalls_structs.h > b/include/linux/syscalls_structs.h > new file mode 100644 > index 000..a920cbc > --- /dev/null > +++ b/include/linux/syscalls_structs.h > @@ -0,0 +1,60 @@ > +#ifndef _LINUX_SYSCALL_STR

Re: [PATCH 4/5] all: s390: move compat_wrappers.c from arch/s390/kernel to kernel/

2016-02-25 Thread Heiko Carstens
On Wed, Feb 24, 2016 at 09:34:13PM +0300, Yury Norov wrote: > Some syscalls are declared conditionally, so corresponding wrappers > are conditional accordingly. > > Signed-off-by: Yury Norov > --- > arch/s390/kernel/Makefile | 2 +- > arch/s390/kernel/compat_wrapper.c | 129 ---

Re: [PATCH v2 0/5] all: s390: make compat wrappers the generic solution

2016-02-25 Thread Heiko Carstens
On Wed, Feb 24, 2016 at 09:34:09PM +0300, Yury Norov wrote: > The problem that makes us use wrappers is that some compat > architectures allows user code to access top halves of registers. > This is not a problem for syscalls that are already handled by compat > code, or for that who has types of t

Re: custom ioctl-based interface to control LED in networking (was Re: [PATCHv2 09/10] rfkill: Userspace control for airplane mode)

2016-02-25 Thread Pavel Machek
On Wed 2016-02-24 14:31:33, Johannes Berg wrote: > On Wed, 2016-02-24 at 13:14 +0100, Pavel Machek wrote: > >  > > Why would it need to? It could look at default triggers for the led > > if it really wanted to. > > And then it needs to change them; if anything goes wrong error recovery > is practi

[PATCH] doc: fix grammar

2016-02-25 Thread Javi Merino
Some minor typos: - make is unbindable -> make it unbindable - a underlying -> an underlying - different version -> different versions Cc: Jonathan Corbet Signed-off-by: Javi Merino --- Documentation/filesystems/sharedsubtree.txt | 8 1 file changed, 4 insertions(+), 4 deletions

Re: [PATCH 11/50] pinctrl: cherryview: Use devm_pinctrl_register() for pinctrl registration

2016-02-25 Thread Heikki Krogerus
Hi, On Wed, Feb 24, 2016 at 06:45:36PM +0530, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration. > > Signed-off-by: Laxman Dewangan > Cc: Mika Westerberg > Cc: Heikki Krogerus > --- > drivers/pinctrl/intel/pinctrl-cherryview.c | 4 ++-- > 1 file changed, 2 inse

Re: [PATCH 12/50] pinctrl: intel: Use devm_pinctrl_register() for pinctrl registration

2016-02-25 Thread Heikki Krogerus
On Wed, Feb 24, 2016 at 06:45:37PM +0530, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration. > > Signed-off-by: Laxman Dewangan > Cc: Mika Westerberg > Cc: Heikki Krogerus > --- > drivers/pinctrl/intel/pinctrl-intel.c | 4 ++-- > 1 file changed, 2 insertions(+),

Re: [PATCHv6 1/3] rdmacg: Added rdma cgroup controller

2016-02-25 Thread Haggai Eran
On 24/02/2016 18:16, Parav Pandit wrote: >>> + struct rdmacg_resource_pool *rpool; >>> + struct rdmacg_pool_info *pool_info = &device->pool_info; >>> + >>> + spin_lock(&cg->rpool_list_lock); >>> + rpool = find_cg_rpool_locked(cg, device); >> Is it possible for rpool to be NULL? >> >

Re: [PATCH 00/61] gpio: Add and use devm_gpiochip_add_data()

2016-02-25 Thread Linus Walleij
On Tue, Feb 23, 2016 at 4:15 PM, Laxman Dewangan wrote: > I have made the repo in git hub as > https://github.com/ldewangan/linux-upstream.git Awesome. > branch name is devm_gpiochip. > https://github.com/ldewangan/linux-upstream/tree/devm_gpiochip I've pulled this branch into my tree

Re: [PATCHv6 1/3] rdmacg: Added rdma cgroup controller

2016-02-25 Thread Parav Pandit
On Thu, Feb 25, 2016 at 5:33 PM, Haggai Eran wrote: +retry: + spin_lock(&cg->rpool_list_lock); + rpool = find_cg_rpool_locked(cg, device); + if (!rpool) { + spin_unlock(&cg->rpool_list_lock); + ret = alloc_cg_rpool(cg, device);

Re: [PATCH 27/50] pinctrl: stm32: Use devm_pinctrl_register() for pinctrl registration

2016-02-25 Thread Maxime Coquelin
2016-02-24 14:15 GMT+01:00 Laxman Dewangan : > Use devm_pinctrl_register() for pin control registration. > > Signed-off-by: Laxman Dewangan > Cc: Maxime Coquelin > Cc: Patrice Chotard > --- > drivers/pinctrl/stm32/pinctrl-stm32.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) A

Re: [PATCH 00/50] pinctrl: Add and use devm_ apis for pinctrl_{register, unregister}

2016-02-25 Thread Linus Walleij
On Wed, Feb 24, 2016 at 2:15 PM, Laxman Dewangan wrote: > Add resource manageemnt APIs fro pinctrl_register() and pinctrl_unregister() > and use these new APIs on hw driver to reduce the error path code and > remove callback for driver. As you can probably guess I like this too, so wait a while,

Re: [PATCH 39/50] pinctrl: lantiq: Use devm_pinctrl_register() for pinctrl registration

2016-02-25 Thread John Crispin
On 24/02/2016 14:16, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration. > > Signed-off-by: Laxman Dewangan Acked-by: John Crispin > --- > drivers/pinctrl/pinctrl-lantiq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pin

Re: [PATCHv6 1/3] rdmacg: Added rdma cgroup controller

2016-02-25 Thread Parav Pandit
> Can we call kfree() with spin_lock held? All these years I tend to > avoid doing so. Also it doesn't look correct to hold the lock while freeing the memory which is totally unrelated to the lock. With that I think current code appears ok with exception that its duplicated at two place for code re

Re: [PATCHv6 1/3] rdmacg: Added rdma cgroup controller

2016-02-25 Thread Haggai Eran
On 25/02/2016 15:34, Parav Pandit wrote: > On Thu, Feb 25, 2016 at 5:33 PM, Haggai Eran wrote: > +retry: > + spin_lock(&cg->rpool_list_lock); > + rpool = find_cg_rpool_locked(cg, device); > + if (!rpool) { > + spin_unlock(&cg->rpool_list_lock); > +

Re: [PATCHv6 1/3] rdmacg: Added rdma cgroup controller

2016-02-25 Thread Haggai Eran
On 25/02/2016 16:26, Parav Pandit wrote: >> Can we call kfree() with spin_lock held? All these years I tend to >> avoid doing so. > Also it doesn't look correct to hold the lock while freeing the memory > which is totally unrelated to the lock. > With that I think current code appears ok with excep

Re: [PATCH 01/50] pinctrl: Add devm_ apis for pinctrl_{register, unregister}

2016-02-25 Thread Philipp Zabel
Hi Laxman, Am Mittwoch, den 24.02.2016, 18:45 +0530 schrieb Laxman Dewangan: > Add device managed APIs devm_pinctrl_register() and > devm_pinctrl_unregister() for the APIs pinctrl_register() > and pinctrl_unregister(). > > This helps in reducing code in error path and sometimes > removal of .remo

Re: [PATCH 09/50] pinctrl: imx: Use devm_pinctrl_register() for pinctrl registration

2016-02-25 Thread Philipp Zabel
Am Mittwoch, den 24.02.2016, 18:45 +0530 schrieb Laxman Dewangan: > Use devm_pinctrl_register() for pin control registration and remove > need of .remove callback. > > Signed-off-by: Laxman Dewangan > Cc: Shawn Guo > Cc: Stefan Agner > Cc: Adrian Alonso > Cc: Uwe Kleine-König [...] Reviewed-

Re: [PATCH] Documentation: gpio: board: fix GPIO_LOOKUP{,_IDX} documentation

2016-02-25 Thread Linus Walleij
On Thu, Feb 25, 2016 at 8:00 AM, Gabor Juhos wrote: > The 'dev_id' parameter of the GPIO_LOOKUP{,_IDX} macros were removed by > commit ad824783fb23 ("gpio: better lookup method for platform GPIOs"). > > Update the documentation to reflect that. > > Signed-off-by: Gabor Juhos Patch applied. You

Re: [PATCH 2/5] all: introduce COMPAT_WRAPPER option and enable it for s390

2016-02-25 Thread Yury Norov
On Thu, Feb 25, 2016 at 09:49:43AM +0100, Heiko Carstens wrote: > On Wed, Feb 24, 2016 at 09:34:11PM +0300, Yury Norov wrote: > > Signed-off-by: Yury Norov > > --- > > arch/Kconfig | 4 > > arch/s390/Kconfig | 1 + > > 2 files changed, 5 insertions(+) > > > > diff --git a/arch/Kconfig

Re: [PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-25 Thread Yury Norov
On Thu, Feb 25, 2016 at 09:51:40AM +0100, Heiko Carstens wrote: > On Wed, Feb 24, 2016 at 09:34:12PM +0300, Yury Norov wrote: > > diff --git a/include/linux/syscalls_structs.h > > b/include/linux/syscalls_structs.h > > new file mode 100644 > > index 000..a920cbc > > --- /dev/null > > +++ b/inc

Re: [PATCH 4/5] all: s390: move compat_wrappers.c from arch/s390/kernel to kernel/

2016-02-25 Thread Yury Norov
On Wed, Feb 24, 2016 at 09:34:13PM +0300, Yury Norov wrote: [...] > +COMPAT_SYSCALL_WRAP3(bpf, int, cmd, union bpf_attr *, attr, unsigned int, > size); > +COMPAT_SYSCALL_WRAP3(s390_pci_mmio_write, const unsigned long, mmio_addr, > const void __user *, user_buffer, const size_t, length); > +COMP

Re: [PATCH 42/50] pinctrl: pic32: Use devm_pinctrl_register() for pinctrl registration

2016-02-25 Thread Joshua Henderson
On 02/24/2016 06:16 AM, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration. > > Signed-off-by: Laxman Dewangan Reviewed-by: Joshua Henderson Thanks, Josh > --- > drivers/pinctrl/pinctrl-pic32.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff

Re: [PATCH v6 0/8] Additional kmsg devices

2016-02-25 Thread Tejun Heo
Hello, Kazimierz. On Wed, Feb 24, 2016 at 12:53:13PM +0100, Kazimierz Krosman wrote: > 1. kmsg device does not require maintenance by reader process side. > Multiple writers can write to a device and new records overwrite logs saved > earlier. > When system crashes logs can be restored with pstor

Re: [PATCH 2/5] all: introduce COMPAT_WRAPPER option and enable it for s390

2016-02-25 Thread Heiko Carstens
On Thu, Feb 25, 2016 at 11:19:26PM +0300, Yury Norov wrote: > On Thu, Feb 25, 2016 at 09:49:43AM +0100, Heiko Carstens wrote: > > On Wed, Feb 24, 2016 at 09:34:11PM +0300, Yury Norov wrote: > > > Signed-off-by: Yury Norov > > > --- > > > arch/Kconfig | 4 > > > arch/s390/Kconfig | 1 + >

Re: [PATCH 3/5] all: s390: move wrapper infrastructure to generic headers

2016-02-25 Thread Heiko Carstens
On Thu, Feb 25, 2016 at 11:23:50PM +0300, Yury Norov wrote: > On Thu, Feb 25, 2016 at 09:51:40AM +0100, Heiko Carstens wrote: > > On Wed, Feb 24, 2016 at 09:34:12PM +0300, Yury Norov wrote: > > > diff --git a/include/linux/syscalls_structs.h > > > b/include/linux/syscalls_structs.h > > > new file

[PATCH v17 1/6] fpga: add bindings document for fpga region

2016-02-25 Thread Alan Tull
New bindings document for FPGA Region to support programming FPGA's under Device Tree control Signed-off-by: Alan Tull Signed-off-by: Moritz Fischer --- v9: initial version added to this patchset v10: s/fpga/FPGA/g replace DT overlay example with slightly more complicated example move

[PATCH v17 0/6] Device Tree support for FPGA Programming

2016-02-25 Thread Alan Tull
v17 has a rewrite of devicetree/bindings/fpga/fpga-region.txt for clarity and uses the overlay notifications that I've introduced and are being discussed. I'm mostly submitting to see if the bindings are looking acceptable-ish. The bridge has been stable a long time. I hope that can go in also.

[PATCH v17 2/6] ARM: socfpga: add bindings document for fpga bridge drivers

2016-02-25 Thread Alan Tull
Add bindings documentation for Altera SOCFPGA bridges: * fpga2sdram * fpga2hps * hps2fpga * lwhps2fpga Signed-off-by: Alan Tull Signed-off-by: Matthew Gerlach Signed-off-by: Dinh Nguyen --- v2: separate into 2 documents for the 2 drivers v12: bump version to line up with simple-fpga-bus ve

[PATCH v17 4/6] fpga: add fpga bridge framework

2016-02-25 Thread Alan Tull
This framework adds API functions for enabling/ disabling FPGA bridges under kernel control. This allows the Linux kernel to disable FPGA bridges during FPGA reprogramming and to enable FPGA bridges when FPGA reprogramming is done. This framework is be manufacturer-agnostic, allowing it to be use

[PATCH v17 3/6] add sysfs document for fpga bridge class

2016-02-25 Thread Alan Tull
Add documentation for new FPGA bridge class's sysfs interface. Signed-off-by: Alan Tull -- v15: Document added in v15 of patch set v16: No change to this patch in v16 of patch set v17: No change to this patch in v17 of patch set --- Documentation/ABI/testing/sysfs-class-fpga-bridge | 11 ++

[PATCH v17 5/6] fpga: fpga-region: device tree control for FPGA

2016-02-25 Thread Alan Tull
FPGA Regions support programming FPGA under control of the Device Tree. Signed-off-by: Alan Tull --- v9: initial version (this patch added during rest of patchset's v9) v10: request deferral if fpga mgr or bridges not available yet cleanup as fpga manager core goes into the real kernel

[PATCH v17 6/6] ARM: socfpga: fpga bridge driver support

2016-02-25 Thread Alan Tull
Supports Altera SOCFPGA bridges: * fpga2sdram * fpga2hps * hps2fpga * lwhps2fpga Allows enabling/disabling the bridges through the FPGA Bridge Framework API functions. The fpga2sdram driver only supports enabling and disabling of the ports that been configured early on. This is due to a hard

Re: [PATCH v5 01/11] drm/hisilicon: Add device tree binding for hi6220 display subsystem

2016-02-25 Thread Xinliang Liu
On 25 February 2016 at 10:21, Xinliang Liu wrote: > On 24 February 2016 at 02:37, Mark Rutland wrote: > Hi Mark, thanks for review. > >> On Tue, Feb 23, 2016 at 11:00:21AM +0800, Xinliang Liu wrote: >>> Add ADE display controller binding doc. >>> Add DesignWare DSI Host Controller v1.20a binding

Re: [PATCH 50/50] pinctrl: zynq: Use devm_pinctrl_register() for pinctrl registration

2016-02-25 Thread Sören Brinkmann
On Wed, 2016-02-24 at 18:46:15 +0530, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration and > remove the need of .remove callback. > > Signed-off-by: Laxman Dewangan > Cc: Michal Simek > Cc: Sören Brinkmann > Cc: linux-g...@vger.kernel.org > Cc: linux-arm-ker...@