Re: [PATCHv2 09/10] rfkill: Userspace control for airplane mode

2016-02-24 Thread Johannes Berg
On Tue, 2016-02-23 at 22:45 +0100, Pavel Machek wrote: > Well "the airplane mode" is well defined. It means no intentional > transmitting at radio frequencies. > > The fact that you are allowed to use WIFI on certain flights does not > change anything. Nope, not that simple. Pick up any (contemp

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

2016-02-24 Thread Pavel Machek
On Wed 2016-02-24 10:01:49, Johannes Berg wrote: > On Tue, 2016-02-23 at 22:45 +0100, Pavel Machek wrote: > > > Well "the airplane mode" is well defined. It means no intentional > > transmitting at radio frequencies. > > > > The fact that you are allowed to use WIFI on certain flights does not >

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

2016-02-24 Thread Johannes Berg
On Wed, 2016-02-24 at 11:46 +0100, Pavel Machek wrote: > If you want different trigger, implement different trigger. If you > want to indicate all but wifi, implement all but wifi, and then > userspace can select it by writing trigger name. This is still mostly a strawman, since userspace cannot

[PATCH v6 5/8] kmsg: add function for adding and deleting additional buffers

2016-02-24 Thread Kazimierz Krosman
From: Marcin Niesluchowski Additional kmsg buffers should be created and deleted dynamically. Adding two functions * kmsg_sys_buffer_add() creates additional kmsg buffer returning minor * kmsg_sys_buffer_del() deletes one based on provided minor Signed-off-by: Marcin Niesluchowski Signed-off-b

[PATCH v6 2/8] printk: add one function for storing log in proper format

2016-02-24 Thread Kazimierz Krosman
From: Marcin Niesluchowski Preparation commit for future changes purpose. Separate code responsible for storing log message in proper format from operations on consoles by putting it in another function. Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski [Rebased kmsg patch v

[PATCH v6 7/8] kmsg: add ioctl for kmsg* devices operating on buffers

2016-02-24 Thread Kazimierz Krosman
From: Marcin Niesluchowski There is no possibility to clear additional kmsg buffers, get size of them or know what size should be passed to read file operation (too small size causes it to retrun -EINVAL). Add following ioctls which solve those issues: * KMSG_CMD_GET_BUF_SIZE * KMSG_CMD_GET_READ

[PATCH v6 4/8] kmsg: add additional buffers support to memory class

2016-02-24 Thread Kazimierz Krosman
From: Marcin Niesluchowski Memory class does not support additional kmsg buffers. Add additional kmsg buffers support to: * devnode() callback of "mem" class * file operations of major "mem" character device Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski [Rebased kmsg pat

[PATCH v6 3/8] kmsg: introduce additional kmsg devices support

2016-02-24 Thread Kazimierz Krosman
From: Marcin Niesluchowski kmsg device provides operations on cyclic logging buffer used mainly by kernel but also in userspace by privileged processes. Additional kmsg devices keep the same log format but may be added dynamically with custom size. Signed-off-by: Marcin Niesluchowski Signed-of

[PATCH v6 8/8] kmsg: selftests

2016-02-24 Thread Kazimierz Krosman
From: Paul Osmialowski This patch adds selftests framework and four test scenarios for kmsg. The framework shape and code was inspired by similar selftests framework for kdbus. Signed-off-by: Paul Osmialowski [Fixed multithreaded test bug: buffer size > LOG_LINE_MAX] Signed-off-by: Kazimierz K

[PATCH v6 6/8] kmsg: add ioctl for adding and deleting kmsg* devices

2016-02-24 Thread Kazimierz Krosman
From: Marcin Niesluchowski There is no possibility to add/delete kmsg* buffers from userspace. Adds following ioctl for main kmsg device adding and deleting additional kmsg devices: * KMSG_CMD_BUFFER_ADD * KMSG_CMD_BUFFER_DEL Signed-off-by: Marcin Niesluchowski Signed-off-by: Paul Osmialowski

[PATCH v6 1/8] printk: extract kmsg-related routines from printk.c to kmsg.c

2016-02-24 Thread Kazimierz Krosman
From: Paul Osmialowski Following suggestions regarding printk.c code bloat, I prepared this patch which moves kmsg-related routines to new file, kmsg.c This is premilinary step needed for an attempt to extent kmsg interface with ability to dynamically create (and destroy) kmsg-like devices. Sig

[PATCH v6 0/8] Additional kmsg devices

2016-02-24 Thread Kazimierz Krosman
Dear All, This is the sixth iteration of Marcin Niesluchowski's series of patches extending kmsg interface with ability to dynamically create (and destroy) kmsg-like devices which can be used by userspace for logging, Changed from v5: * ioctl that adds kmsg device with minor number higher than

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

2016-02-24 Thread Pavel Machek
On Wed 2016-02-24 12:01:37, Johannes Berg wrote: > On Wed, 2016-02-24 at 11:46 +0100, Pavel Machek wrote: > > > If you want different trigger, implement different trigger. If you > > want to indicate all but wifi, implement all but wifi, and then > > userspace can select it by writing trigger name

[PATCH 29/50] pinctrl: tegra: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and remove need of .remove callback. Signed-off-by: Laxman Dewangan Cc: Stephen Warren Cc: Thierry Reding Cc: Alexandre Courbot --- drivers/pinctrl/tegra/pinctrl-tegra.c| 12 +--- drivers/pinctrl/tegra/pinctrl-tegra.h|

[PATCH 46/50] pinctrl: tb10x: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan --- drivers/pinctrl/pinctrl-tb10x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-tb10x.c b/drivers/pinctrl/pinctrl-tb10x.c index 6546b9b..170d3ee 100644 --- a

[PATCH 44/50] pinctrl: rockchip: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Heiko Stuebner Cc: linux-rockc...@lists.infradead.org --- drivers/pinctrl/pinctrl-rockchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/dri

[PATCH 48/50] pinctrl: tz1090 Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and remove the need of .remove callback. Signed-off-by: Laxman Dewangan --- drivers/pinctrl/pinctrl-tz1090.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/pinctrl/pinctrl-tz1090.c b/drivers/pinc

[PATCH 47/50] pinctrl: tz1090-pdc: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and remove the need of .remove callback. Signed-off-by: Laxman Dewangan --- drivers/pinctrl/pinctrl-tz1090-pdc.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/pinctrl/pinctrl-tz1090-pdc.c b/dri

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

2016-02-24 Thread Laxman Dewangan
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...@lists.infradead.org --- drivers/pinctrl/pinctrl-zynq.c | 12 +--- 1

[PATCH 49/50] pinctrl: u300: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and remove the need of .remove callback. Signed-off-by: Laxman Dewangan --- drivers/pinctrl/pinctrl-u300.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/pinctrl/pinctrl-u300.c b/drivers/pinctrl/pi

[PATCH 45/50] pinctrl: st: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Srinivas Kandagatla Cc: Maxime Coquelin Cc: Patrice Chotard Cc: ker...@stlinux.com --- drivers/pinctrl/pinctrl-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/

[PATCH 43/50] pinctrl: pistachio: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan --- drivers/pinctrl/pinctrl-pistachio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-pistachio.c b/drivers/pinctrl/pinctrl-pistachio.c index 856f736..adf52

[PATCH 41/50] pinctrl: palmas: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and remove the need of .remove callback. Signed-off-by: Laxman Dewangan --- drivers/pinctrl/pinctrl-palmas.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/pinctrl/pinctrl-palmas.c b/drivers/pinct

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

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan --- drivers/pinctrl/pinctrl-pic32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-pic32.c b/drivers/pinctrl/pinctrl-pic32.c index 0b07d4b..2a3fcd6 100644 --- a

[PATCH 40/50] pinctrl: lpc18xx: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Joachim Eastwood --- drivers/pinctrl/pinctrl-lpc18xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-lpc18xx.c b/drivers/pinctrl/pinctrl-lpc18xx.c index

Re: [PATCH 13/50] pinctrl: mtk-common: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Matthias Brugger
On 24/02/16 14:15, Laxman Dewangan wrote: Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: Matthias Brugger Cc: Hongzhou Yang Cc: Yingjoe Chen --- Reviewed-by: Matthias Brugger drivers/pinctrl/mediatek/pinctrl-mtk-

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

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan --- drivers/pinctrl/pinctrl-lantiq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-lantiq.c b/drivers/pinctrl/pinctrl-lantiq.c index fc38a85..a4d6474 100644 ---

[PATCH 37/50] pinctrl: at91: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and remove the need of .remove callback. Signed-off-by: Laxman Dewangan Cc: Jean-Christophe Plagniol-Villard Cc: linux-arm-ker...@lists.infradead.org --- drivers/pinctrl/pinctrl-at91.c | 13 ++--- 1 file changed, 2 insertions(+),

[PATCH 38/50] pinctrl: digicolor: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean error path. Signed-off-by: Laxman Dewangan Cc: Baruch Siach --- drivers/pinctrl/pinctrl-digicolor.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/pinctrl-digicolor.c b/drivers/pinctr

[PATCH 33/50] pinctrl: adi2: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and remove the need of .remove callback. Signed-off-by: Laxman Dewangan --- drivers/pinctrl/pinctrl-adi2.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/pinctrl/pinctrl-adi2.c b/drivers/pinctrl/

[PATCH 34/50] pinctrl: amd: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean error path. Signed-off-by: Laxman Dewangan --- drivers/pinctrl/pinctrl-amd.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c index 5c025f5

[PATCH 36/50] pinctrl: at91-pio4: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean error path. Signed-off-by: Laxman Dewangan Cc: linux-arm-ker...@lists.infradead.org --- drivers/pinctrl/pinctrl-at91-pio4.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/

[PATCH 35/50] pinctrl: as3722: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean error path. Signed-off-by: Laxman Dewangan --- drivers/pinctrl/pinctrl-as3722.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-as3722.c b/drivers/pinctrl/pinctrl-as3722.c inde

[PATCH 32/50] pinctrl: vt8500: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: Lee Jones Cc: Heiko Stuebner Cc: Mika Westerberg Cc: Hongzhou Yang --- drivers/pinctrl/vt8500/pinctrl-wmt.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff

[PATCH 31/50] pinctrl: uniphier: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and remove need of .remove callback. Signed-off-by: Laxman Dewangan Cc: Masahiro Yamada --- drivers/pinctrl/uniphier/pinctrl-ph1-ld4.c | 1 - drivers/pinctrl/uniphier/pinctrl-ph1-ld6b.c | 1 - drivers/pinctrl/uniphier/pinctrl

[PATCH 30/50] pinctrl: tegra-xusb: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: Stephen Warren Cc: Thierry Reding Cc: Alexandre Courbot Cc: Jon Hunter --- drivers/pinctrl/tegra/pinctrl-tegra-xusb.c | 13 + 1 file changed, 5 insertions(+), 8 d

[PATCH 28/50] pinctrl: ssbi-mpp: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: Maxime Ripard Cc: Chen-Yu Tsai --- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/pinctrl/sunxi

[PATCH 24/50] pinctrl: samsung: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Tomasz Figa Cc: Kukjin Kim Cc: Krzysztof Kozlowski --- drivers/pinctrl/samsung/pinctrl-samsung.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/samsung/pinctrl-s

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

2016-02-24 Thread 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(-) diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers

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

2016-02-24 Thread Baruch Siach
Hi Laxman Dewangan, On Wed, Feb 24, 2016 at 06:46:03PM +0530, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration and clean > error path. > > Signed-off-by: Laxman Dewangan > Cc: Baruch Siach > --- > drivers/pinctrl/pinctrl-digicolor.c | 7 ++- > 1 file change

Re: [PATCHv6 2/3] IB/core: added support to use rdma cgroup controller

2016-02-24 Thread Haggai Eran
On 20/02/2016 13:00, Parav Pandit wrote: > +/** > + * ib_device_unregister_rdmacg - unregister with rdma cgroup. > + * @device: device to unregister. > + * > + * Unregister with the rdma cgroup. Should be called after > + * all the resources are deallocated, and after a stage when any > + * other r

[PATCH 25/50] pinctrl: ish-pfc: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Laurent Pinchart Cc: Geert Uytterhoeven Cc: linux-renesas-...@vger.kernel.org --- drivers/pinctrl/sh-pfc/core.c| 1 - drivers/pinctrl/sh-pfc/core.h| 1 - drivers/pinctrl/sh-pfc/pinctrl.c | 12

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

2016-02-24 Thread Johannes Berg
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 practically impossible since the trigger information is lost forever.

[PATCH 26/50] pinctrl: spear: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and remove need of .remove callback. Signed-off-by: Laxman Dewangan Cc: Viresh Kumar Cc: spear-de...@list.st.com Cc: linux-arm-ker...@lists.infradead.org --- drivers/pinctrl/spear/pinctrl-spear.c | 11 +-- drivers/pinctrl/spea

[PATCH 23/50] pinctrl: exynos5440: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Tomasz Figa Cc: Kukjin Kim Cc: Krzysztof Kozlowski --- drivers/pinctrl/samsung/pinctrl-exynos5440.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/samsung/pinctrl-

[PATCH 22/50] pinctrl: pxa: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: Daniel Mack Cc: Haojian Zhuang Cc: Robert Jarzmik Cc: linux-arm-ker...@lists.infradead.org --- drivers/pinctrl/pxa/pinctrl-pxa2xx.c | 10 +- 1 file changed, 1 insertio

[PATCH 17/50] pinctrl: spmi-gpio: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: "Björn Andersson" Cc: "Ivan T. Ivanov" Cc: Lee Jones Cc: Stephen Boyd Cc: Jonas Gorski --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 7 ++- 1 file changed, 2 insertions

[PATCH 20/50] pinctrl: ssbi-mpp: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c

[PATCH 19/50] pinctrl: ssbi-gpi: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.

[PATCH 21/50] pinctrl: msm: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: Bjorn Andersson Cc: Thomas Gleixner Cc: Lee Jones Cc: Stephen Boyd --- drivers/pinctrl/qcom/pinctrl-msm.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff

[PATCH 18/50] pinctrl: spmi: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: Bjorn Andersson Cc: Ivan T. Ivanov Cc: Lee Jones Cc: Stephen Boyd Cc: Jonas Gorski --- drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 7 ++- 1 file changed, 2 insertions(+),

[PATCH 14/50] pinctrl: meson: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Carlo Caione Cc: Beniamino Galvani Cc: Lee Jones --- drivers/pinctrl/meson/pinctrl-meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/

[PATCH 15/50] pinctrl: mvebu: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and remove need of .remove callback. Signed-off-by: Laxman Dewangan Cc: Thomas Petazzoni Cc: Hongzhou Yang Cc: Fabian Frederick Cc: Andrew Andrianov --- drivers/pinctrl/mvebu/pinctrl-armada-370.c | 6 -- drivers/pinctrl/mvebu/pinct

[PATCH 16/50] pinctrl: nomadic: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Alessandro Rubini Cc: linux-arm-ker...@lists.infradead.org --- drivers/pinctrl/nomadik/pinctrl-abx500.c | 3 ++- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 2 +- 2 files changed, 3 insertions(+), 2 de

[PATCH 13/50] pinctrl: mtk-common: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: Matthias Brugger Cc: Hongzhou Yang Cc: Yingjoe Chen --- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-)

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

2016-02-24 Thread Laxman Dewangan
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(+), 2 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pi

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

2016-02-24 Thread Laxman Dewangan
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 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-cherryview.c b/

[PATCH 10/50] pinctrl: imxl: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and remove need of .remove callback. Signed-off-by: Laxman Dewangan Cc: Hongzhou Yang Cc: Antoine Tenart Cc: Heiko Stuebner --- drivers/pinctrl/freescale/pinctrl-imx1-core.c | 11 +-- drivers/pinctrl/freescale/pinctrl-imx1.c

[PATCH 08/50] pinctrl: berlin: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Antoine Ténart --- drivers/pinctrl/berlin/berlin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/berlin/berlin.c b/drivers/pinctrl/berlin/berlin.c index 46f2b48..

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

2016-02-24 Thread 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 --- drivers/pinctrl/freescale/pinctrl-imx.c| 11 +-- drivers/pinctrl/freescale/pinctr

[PATCH 06/50] pinctrl: iproc-gpio: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: Ray Jui Cc: Scott Branden Cc: Jon Mason --- drivers/pinctrl/bcm/pinctrl-iproc-gpio.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/

[PATCH 05/50] pinctrl: cygnus-mux: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Ray Jui Cc: Scott Branden Cc: Jon Mason --- drivers/pinctrl/bcm/pinctrl-cygnus-mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/bcm/pinctrl-cygnus-mux.c b/dri

[PATCH 07/50] pinctrl: nsp-gpio: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Ray Jui Cc: Scott Branden Cc: Jon Mason --- drivers/pinctrl/bcm/pinctrl-nsp-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/bcm/pinctrl-nsp-gpio.c b/drivers

[PATCH 03/50] pinctrl: bcm281xx: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Ray Jui --- drivers/pinctrl/bcm/pinctrl-bcm281xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pinctrl/bcm/pinctrl-bcm281xx.c b/drivers/pinctrl/bcm/pinctrl-bcm281xx.c

[PATCH 04/50] pinctrl: bcm2835: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Laxman Dewangan
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Ray Jui --- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pinctrl/bcm/pinctrl-bcm2835.c b/drivers/pinctrl/bcm/pinctrl-bcm2835.c ind

[PATCH 02/50] pinctrl: Add resource management devm_pinctrl_{register, unregister}

2016-02-24 Thread Laxman Dewangan
Add new member of devm wrappers for the pinctrl_register and pinctrl_unregister in list of managed interfaces. Signed-off-by: Laxman Dewangan --- Documentation/driver-model/devres.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/driver-model/devres.txt b/Documentation/dri

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

2016-02-24 Thread 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 .remove callback for driver unbind. Signed-off-by: Laxman Dewangan --- drivers/pinctrl/core.

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

2016-02-24 Thread Laxman Dewangan
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. Laxman Dewangan (50): pinctrl: Add devm_ apis for pinctrl_{register, unregister} pinctrl: Add resource management devm_

Re: [PATCH 25/50] pinctrl: ish-pfc: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Geert Uytterhoeven
Hi Laxman, On Wed, Feb 24, 2016 at 2:15 PM, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration. > > Signed-off-by: Laxman Dewangan > Cc: Laurent Pinchart > Cc: Geert Uytterhoeven > Cc: linux-renesas-...@vger.kernel.org Thanks for your patch! > index 87b0a59..f1

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

2016-02-24 Thread Thomas Petazzoni
Dear Laxman Dewangan, On Wed, 24 Feb 2016 18:45:40 +0530, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration and remove > need of .remove callback. > > Signed-off-by: Laxman Dewangan > Cc: Thomas Petazzoni > Cc: Hongzhou Yang > Cc: Fabian Frederick > Cc: Andrew

Re: [PATCHv6 3/3] rdmacg: Added documentation for rdmacg

2016-02-24 Thread Haggai Eran
On 20/02/2016 13:00, Parav Pandit wrote: > Added documentation for v1 and v2 version describing high > level design and usage examples on using rdma controller. > > Signed-off-by: Parav Pandit I think you might want to mention that resource limits are reflected in the results returned from ib_uv

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

2016-02-24 Thread Joachim Eastwood
Hi Laxman, On 24 February 2016 at 14:16, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration. > > Signed-off-by: Laxman Dewangan > Cc: Joachim Eastwood > --- > drivers/pinctrl/pinctrl-lpc18xx.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Acked-by: J

Re: [PATCHv6 3/3] rdmacg: Added documentation for rdmacg

2016-02-24 Thread Parav Pandit
On Wed, Feb 24, 2016 at 7:56 PM, Haggai Eran wrote: > On 20/02/2016 13:00, Parav Pandit wrote: >> Added documentation for v1 and v2 version describing high >> level design and usage examples on using rdma controller. >> >> Signed-off-by: Parav Pandit > > I think you might want to mention that res

Re: [PATCHv6 2/3] IB/core: added support to use rdma cgroup controller

2016-02-24 Thread Parav Pandit
On Wed, Feb 24, 2016 at 7:13 PM, Haggai Eran wrote: >> + * all the resources are deallocated, and after a stage when any >> + * other resource allocation of user application cannot be done >> + * for this device to avoid any leak in accounting. >> + * HCA drivers should clear resource pool ops af

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

2016-02-24 Thread Maxime Coquelin
On 02/24/2016 02:16 PM, Laxman Dewangan wrote: Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Srinivas Kandagatla Cc: Maxime Coquelin Cc: Patrice Chotard Cc: ker...@stlinux.com --- drivers/pinctrl/pinctrl-st.c | 2 +- 1 file changed, 1 inser

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

2016-02-24 Thread Parav Pandit
On Wed, Feb 24, 2016 at 6:43 PM, Haggai Eran wrote: > Hi, > > Overall I the patch looks good to me. I have a few comments below. > Thanks for the review. Addressing most comments one. Some comments inline. > Its -> It's Ok. >> +void rdmacg_query_limit(struct rdmacg_device *device, >> +

Re: [PATCH 30/50] pinctrl: tegra-xusb: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Stephen Warren
On 02/24/2016 06:15 AM, Laxman Dewangan wrote: Use devm_pinctrl_register() for pin control registration and clean the error path. Acked-by: Stephen Warren -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majord...@vger.kernel.org More majordo

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

2016-02-24 Thread Stephen Warren
On 02/24/2016 06:15 AM, Laxman Dewangan wrote: Use devm_pinctrl_register() for pin control registration and remove need of .remove callback. Acked-by: Stephen Warren Any chance you could send a patch to soc-to-kernel-pinctrl-driver.py in git://github.com/NVIDIA/tegra-pinmux-scripts.git for t

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

2016-02-24 Thread Haggai Eran
Hi, Overall I the patch looks good to me. I have a few comments below. On 20/02/2016 13:00, Parav Pandit wrote: > Resource pool is created/destroyed dynamically whenever > charging/uncharging occurs respectively and whenever user > configuration is done. Its a tradeoff of memory vs little more co

[PATCH v2 6/8] ACPI: serial: implement earlycon on ACPI DBG2 port

2016-02-24 Thread Aleksey Makarov
Add ACPI_DBG2_EARLYCON_DECLARE() macros that declares an earlycon on the serial port specified in the DBG2 ACPI table. Pass the string "earlycon=acpi_dbg2" to the kernel to activate it. Callbacks for EARLYCON_DECLARE() and OF_EARLYCON_DECLARE() can also be used for this macros. Signed-off-by: Al

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

2016-02-24 Thread Stefan Wahren
Hi Laxman, > Laxman Dewangan hat am 24. Februar 2016 um 14:15 > geschrieben: > > > 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. > just for interest: why didn't yo

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

2016-02-24 Thread Laxman Dewangan
On Wednesday 24 February 2016 10:52 PM, Stefan Wahren wrote: Hi Laxman, Laxman Dewangan hat am 24. Februar 2016 um 14:15 geschrieben: 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 cal

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

2016-02-24 Thread Antoine Ténart
Hello, On Wed, Feb 24, 2016 at 06:45:33PM +0530, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration. > > Signed-off-by: Laxman Dewangan Acked-by: Antoine Tenart Thanks! Antoine > Cc: Antoine Ténart > --- > drivers/pinctrl/berlin/berlin.c | 3 ++- > 1 file ch

Re: [PATCH 28/50] pinctrl: ssbi-mpp: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Maxime Ripard
On Wed, Feb 24, 2016 at 06:45:53PM +0530, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration and clean > the error path. > > Signed-off-by: Laxman Dewangan > Cc: Maxime Ripard > Cc: Chen-Yu Tsai Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Free El

Re: [PATCH 17/50] pinctrl: spmi-gpio: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Bjorn Andersson
On Wed 24 Feb 05:15 PST 2016, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration and clean > the error path. > > Signed-off-by: Laxman Dewangan > Cc: "Ivan T. Ivanov" > Cc: Lee Jones > Cc: Stephen Boyd > Cc: Jonas Gorski > --- Reviewed-by Bjorn Andersson Reg

Re: [PATCH 19/50] pinctrl: ssbi-gpi: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Bjorn Andersson
On Wed 24 Feb 05:15 PST 2016, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration and clean > the error path. > > Signed-off-by: Laxman Dewangan > Cc: Bjorn Andersson > --- Reviewed-by: Bjorn Andersson Regards, Bjorn > drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c

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

2016-02-24 Thread Bjorn Andersson
On Wed 24 Feb 05:15 PST 2016, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration and clean > the error path. > > Signed-off-by: Laxman Dewangan > Cc: Ivan T. Ivanov > Cc: Lee Jones > Cc: Stephen Boyd > Cc: Jonas Gorski Reviewed-by: Bjorn Andersson Regards, B

Re: [PATCH 20/50] pinctrl: ssbi-mpp: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Bjorn Andersson
On Wed 24 Feb 05:15 PST 2016, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration and clean > the error path. > > Signed-off-by: Laxman Dewangan > Cc: Bjorn Andersson > --- Reviewed-by: Bjorn Andersson Regards, Bjorn > drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c |

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

2016-02-24 Thread Bjorn Andersson
On Wed 24 Feb 05:15 PST 2016, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration and clean > the error path. > > Signed-off-by: Laxman Dewangan > Cc: Bjorn Andersson > Cc: Thomas Gleixner > Cc: Lee Jones > Cc: Stephen Boyd > --- Reviewed-by: Bjorn Andersson

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

2016-02-24 Thread Bjorn Andersson
On Wed 24 Feb 05:15 PST 2016, Laxman Dewangan wrote: > 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 .remove callback for driver u

[PATCH] usbip: move usbip_protocol.txt to Documentation

2016-02-24 Thread Christian Lamparter
The usbip_protocol.txt, a document which describes usbip's inner workings is currently located in the projects source directory (drivers/usb/usbip/...). This patch moves it to Documentation/usb. This discussion was brought up by Guy Harris [0] during the review of the USBIP dissector I wrote. For

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

2016-02-24 Thread Ray Jui
On 2/24/2016 5:15 AM, Laxman Dewangan wrote: Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Ray Jui --- drivers/pinctrl/bcm/pinctrl-bcm281xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pinctrl/bcm/pinctrl-bcm

Re: [PATCH] usbip: move usbip_protocol.txt to Documentation

2016-02-24 Thread Greg KH
On Wed, Feb 24, 2016 at 07:23:08PM +0100, Christian Lamparter wrote: > The usbip_protocol.txt, a document which describes usbip's > inner workings is currently located in the projects source > directory (drivers/usb/usbip/...). This patch moves it to > Documentation/usb. > > This discussion was br

Re: [PATCH 05/50] pinctrl: cygnus-mux: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Ray Jui
On 2/24/2016 5:15 AM, Laxman Dewangan wrote: Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Ray Jui Cc: Scott Branden Cc: Jon Mason --- drivers/pinctrl/bcm/pinctrl-cygnus-mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

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

2016-02-24 Thread Ray Jui
On 2/24/2016 5:15 AM, Laxman Dewangan wrote: Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Ray Jui --- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pinctrl/bcm/pinctrl-bcm28

Re: [PATCH 06/50] pinctrl: iproc-gpio: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Ray Jui
On 2/24/2016 5:15 AM, Laxman Dewangan wrote: Use devm_pinctrl_register() for pin control registration and clean the error path. Signed-off-by: Laxman Dewangan Cc: Ray Jui Cc: Scott Branden Cc: Jon Mason --- drivers/pinctrl/bcm/pinctrl-iproc-gpio.c | 12 ++-- 1 file changed, 2 inse

[PATCH v1.1] usbip: move usbip_protocol.txt to Documentation

2016-02-24 Thread Christian Lamparter
The usbip_protocol.txt, a document which describes usbip's inner workings is currently located in the projects source directory (drivers/usb/usbip/...). This patch moves it to Documentation/usb. This discussion was brought up by Guy Harris [0] during the review of the USBIP dissector I wrote. For

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

2016-02-24 Thread kbuild test robot
Hi Laxman, [auto build test ERROR on pinctrl/for-next] [also build test ERROR on v4.5-rc5 next-20160224] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Laxman-Dewangan/pinctrl-Add-and-use

Re: [PATCH 07/50] pinctrl: nsp-gpio: Use devm_pinctrl_register() for pinctrl registration

2016-02-24 Thread Ray Jui
On 2/24/2016 5:15 AM, Laxman Dewangan wrote: Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan Cc: Ray Jui Cc: Scott Branden Cc: Jon Mason --- drivers/pinctrl/bcm/pinctrl-nsp-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

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

2016-02-24 Thread Yury Norov
__SC_COMPAT_CAST for s390 is too specific due to 31-bit pointer length, so it's moved to arch/s390/include/asm/compat.h. Generic declaration assumes that long, unsigned long and pointer types are all 32-bit length. linux/syscalls_structs.h header is introduced, because from now (see next patch) st

  1   2   >