Re: [PATCH v5 3/4] ARM: dts: da850-lcdk: add the vga-bridge node

2016-12-07 Thread Bartosz Golaszewski
2016-12-07 15:25 GMT+01:00 Laurent Pinchart <laurent.pinch...@ideasonboard.com>: > Hi Bartosz, > > Thank you for the patch. > > On Wednesday 07 Dec 2016 11:42:44 Bartosz Golaszewski wrote: >> Add the vga-bridge node to the board DT together with corresponding

Re: [PATCH v2 1/2] dt-bindings: ata: add DT bindings for ahci-dm816 SATA controller

2017-03-25 Thread Bartosz Golaszewski
2017-03-14 12:04 GMT+01:00 Bartosz Golaszewski <bgolaszew...@baylibre.com>: > Add DT bindings for the onboard SATA controller present on the DM816x > SoCs. > > Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> > --- > .../devicetree/bindings/at

Re: [PATCH v2 2/2] ata: ahci: add support for DaVinci DM816 SATA controller

2017-03-24 Thread Bartosz Golaszewski
2017-03-14 12:04 GMT+01:00 Bartosz Golaszewski <bgolaszew...@baylibre.com>: > This SATA controller is quite similar to the one present on the DA850 > SoC, but the PHY configuration is different and it supports two HBA > ports. > > The IP suffers from the same PMP issue t

[PATCH 02/12] gpio: twl4030: use devm_irq_alloc_descs()

2017-03-04 Thread Bartosz Golaszewski
This driver never frees the irq descriptors it allocates. Fix it by using a resource managed variant of irq_alloc_descs(). Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/gpio/gpio-twl4030.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/d

[PATCH 11/12] gpio: mxs: use devm_irq_alloc_descs()

2017-03-04 Thread Bartosz Golaszewski
This driver never frees the interrupt descriptors it allocates. Fix it by using the resource managed version of irq_alloc_descs(). Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/gpio/gpio-mxs.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

[PATCH 09/12] gpio: sodaville: use resource management for irqs

2017-03-04 Thread Bartosz Golaszewski
Use device resource managed variants of irq_alloc_descs() and request_irq() and remove the code manually freeing irq resources. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/gpio/gpio-sodaville.c | 28 +++- 1 file changed, 11 insertions(

[PATCH 12/12] gpio: sta2x11: use resource management for irqs

2017-03-04 Thread Bartosz Golaszewski
Use device resource managed variants of irq_alloc_descs() and request_irq() and remove the code manually freeing irq resources. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/gpio/gpio-sta2x11.c | 17 ++--- 1 file changed, 6 insertions(+), 11 del

[PATCH 07/12] gpio: pxa: use devm_irq_alloc_descs()

2017-03-04 Thread Bartosz Golaszewski
This driver never frees the interrupt descriptors it allocates. Fix it by using the resource managed version of irq_alloc_descs(). Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/gpio/gpio-pxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 01/12] gpio: mockup: use devm_irq_alloc_descs()

2017-03-04 Thread Bartosz Golaszewski
Use the resource managed variant of irq_alloc_descs(). This allows us to remove gpio_mockup_remove(). Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/gpio/gpio-mockup.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/driver

[PATCH 04/12] gpio: pch: use resource management for irqs

2017-03-04 Thread Bartosz Golaszewski
Use device resource managed variants of irq_alloc_descs() and request_irq() and remove the code manually freeing irq resources. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/gpio/gpio-pch.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-)

[PATCH 05/12] gpio: ml-ioh: use resource management for irqs

2017-03-04 Thread Bartosz Golaszewski
Use device resource managed variants of irq_alloc_descs() and request_irq() and remove the code manually freeing irq resources. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/gpio/gpio-ml-ioh.c | 28 +++- 1 file changed, 7 insertions(

[PATCH 08/12] gpio: davinci: use devm_irq_alloc_descs()

2017-03-04 Thread Bartosz Golaszewski
This driver never frees the interrupt descriptors it allocates. Fix it by using the resource managed version of irq_alloc_descs(). Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/gpio/gpio-davinci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 00/12] gpio: use resource management for irq descriptors

2017-03-04 Thread Bartosz Golaszewski
since they still don't release other resources. The following drivers were tested: gpio-mockup, gpio-omap and gpio-davinci. The rest was compile-tested only. Bartosz Golaszewski (12): gpio: mockup: use devm_irq_alloc_descs() gpio: twl4030: use devm_irq_alloc_descs() gpio: omap: use

[PATCH 06/12] gpio: xlp: use resource management for irqs

2017-03-04 Thread Bartosz Golaszewski
Use the resource managed variant of irq_alloc_descs() and remove the code manually freeing allocated interrupt descriptors. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/gpio/gpio-xlp.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH 03/12] gpio: omap: use devm_irq_alloc_descs()

2017-03-04 Thread Bartosz Golaszewski
This driver never frees the allocated interrupt descriptors. Fix it by using a resource managed variant of irq_alloc_descs(). Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/gpio/gpio-omap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/d

[PATCH 10/12] gpio: mxc: use devm_irq_alloc_descs()

2017-03-04 Thread Bartosz Golaszewski
This driver never frees the interrupt descriptors it allocates. Fix it by using the resource managed version of irq_alloc_descs(). Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/gpio/gpio-mxc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

Re: [PATCH 00/10] ARM: davinci: add vpif display support

2017-03-09 Thread Bartosz Golaszewski
2017-03-09 11:53 GMT+01:00 Hans Verkuil <hverk...@xs4all.nl>: > On 07/02/17 17:41, Bartosz Golaszewski wrote: >> The following series adds support for v4l2 display on da850-evm with >> a UI board in device tree boot mode. > > As far as I could tell from the comments

Re: [PATCH v2] irq: generic-chip: provide irq_free_generic_chip()

2017-03-09 Thread Bartosz Golaszewski
2017-03-09 11:17 GMT+01:00 Thomas Gleixner <t...@linutronix.de>: > On Wed, 8 Mar 2017, Bartosz Golaszewski wrote: > >> Some users of irq_alloc_generic_chip() are modules which can be >> removed (e.g. gpio-ml-ioh) but have no means of freeing the allocated >> ge

Re: [PATCH] irq: generic-chip: provide irq_free_generic_chip()

2017-03-08 Thread Bartosz Golaszewski
2017-03-08 18:00 GMT+01:00 Bartosz Golaszewski <bgolaszew...@baylibre.com>: > Some users of irq_alloc_generic_chip() are modules which can be > removed (e.g. gpio-ml-ioh) but have no means of freeing the allocated > generic chip. Provide a function for that. > > Signed-off-by

[PATCH] irq: generic-chip: provide irq_free_generic_chip()

2017-03-08 Thread Bartosz Golaszewski
Some users of irq_alloc_generic_chip() are modules which can be removed (e.g. gpio-ml-ioh) but have no means of freeing the allocated generic chip. Provide a function for that. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- include/linux/irq.h | 1 + kernel/irq/g

[PATCH v2] irq: generic-chip: provide irq_free_generic_chip()

2017-03-08 Thread Bartosz Golaszewski
Some users of irq_alloc_generic_chip() are modules which can be removed (e.g. gpio-ml-ioh) but have no means of freeing the allocated generic chip. Provide a function for that. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- v1 -> v2: - added the kernel doc incl

[PATCH v2 0/4] ARM: dm8168-evm: add SATA support

2017-03-14 Thread Bartosz Golaszewski
ion Bartosz Golaszewski (3): ARM: dts: dm8168-evm: add the external reference clock for SATA ARM: dts: dm8168-evm: add SATA node ARM: omap2plus_defconfig: enable ahci-dm816 module Kevin Hilman (1): ARM: OMAP2+: dm81xx: Add clkdm and hwmod for SATA arch/arm/boot/dts/dm8168-evm.dts|

[PATCH v2 4/4] ARM: omap2plus_defconfig: enable ahci-dm816 module

2017-03-14 Thread Bartosz Golaszewski
This is now supported on the dm8168-evm board, so enable it in the defconfig for omap2+. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- arch/arm/configs/omap2plus_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/omap2plus_defconfig b/ar

[PATCH v2 1/4] ARM: OMAP2+: dm81xx: Add clkdm and hwmod for SATA

2017-03-14 Thread Bartosz Golaszewski
From: Kevin Hilman <khil...@baylibre.com> Add the SATA clockdomain (part of CM_DEFAULT) and a hwmod for the SATA block on dm81xx. Tested on DM8168 EVM. Signed-off-by: Kevin Hilman <khil...@baylibre.com> [Bartosz: removed an unused define] Signed-off-by: Bartosz Golaszewsk

[PATCH v2 1/2] dt-bindings: ata: add DT bindings for ahci-dm816 SATA controller

2017-03-14 Thread Bartosz Golaszewski
Add DT bindings for the onboard SATA controller present on the DM816x SoCs. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- .../devicetree/bindings/ata/ahci-dm816.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documen

[PATCH v2 0/2] ata: ahci-dm816: new driver

2017-03-14 Thread Bartosz Golaszewski
in this driver as well. Tested on DM8168-EVM. v1 -> v2: PATCH 1/2 - fixed the size of the mapped register region in the example - rephrased the clocks property description Bartosz Golaszewski (2): dt-bindings: ata: add DT bindings for ahci-dm816 SATA controller ata: ahci: add supp

[PATCH v2 2/2] ata: ahci: add support for DaVinci DM816 SATA controller

2017-03-14 Thread Bartosz Golaszewski
in this driver as well. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/ata/Kconfig | 9 +++ drivers/ata/Makefile | 1 + drivers/ata/ahci_dm816.c | 200 +++ 3 files changed, 210 insertions(+) create mode

[PATCH v2 2/4] ARM: dts: dm8168-evm: add the external reference clock for SATA

2017-03-14 Thread Bartosz Golaszewski
This board has an external oscillator supplying the reference clock signal for SATA. Its rate is fixed at 100Mhz. Add a corresponding device tree node. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- arch/arm/boot/dts/dm8168-evm.dts | 6 ++ 1 file changed, 6 inse

[PATCH v2 3/4] ARM: dts: dm8168-evm: add SATA node

2017-03-14 Thread Bartosz Golaszewski
Add the SATA controller node to the dm8168-evm device tree. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- arch/arm/boot/dts/dm8168-evm.dts | 4 arch/arm/boot/dts/dm816x.dtsi| 7 +++ 2 files changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/dm8168-e

Re: [PATCH 1/2] dt-bindings: ata: add DT bindings for ahci-dm816 SATA controller

2017-03-14 Thread Bartosz Golaszewski
2017-03-13 18:27 GMT+01:00 Sergei Shtylyov <sergei.shtyl...@cogentembedded.com>: > On 03/13/2017 08:08 PM, Bartosz Golaszewski wrote: > >>>> Add DT bindings for the onboard SATA controller present on the DM816x >>>> SoCs. >>>> >>>> S

[PATCH 4/4] ARM: omap2plus_defconfig: enable ahci-dm816 module

2017-03-13 Thread Bartosz Golaszewski
This is now supported on the dm8168-evm board, so enable it in the defconfig for omap2+. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- arch/arm/configs/omap2plus_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/omap2plus_defconfig b/ar

[PATCH 2/4] ARM: dts: dm8168-evm: add the external reference clock for SATA

2017-03-13 Thread Bartosz Golaszewski
This board has an external oscillator supplying the reference clock signal for SATA. Its rate is fixed at 100Mhz. Add a corresponding device tree node. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- arch/arm/boot/dts/dm8168-evm.dts | 6 ++ 1 file changed, 6 inse

[PATCH 0/4] ARM: dm8168-evm: add SATA support

2017-03-13 Thread Bartosz Golaszewski
. The fourth enables the SATA driver by default in omap2plus_defconfig. Bartosz Golaszewski (3): ARM: dts: dm8168-evm: add the external reference clock for SATA ARM: dts: dm8168-evm: add SATA node ARM: omap2plus_defconfig: enable ahci-dm816 module Kevin Hilman (1): ARM: OMAP2+: dm81xx: Add clkdm

Re: [PATCH 1/2] dt-bindings: ata: add DT bindings for ahci-dm816 SATA controller

2017-03-13 Thread Bartosz Golaszewski
2017-03-13 17:53 GMT+01:00 Sergei Shtylyov <sergei.shtyl...@cogentembedded.com>: > Hello! > > On 03/13/2017 07:36 PM, Bartosz Golaszewski wrote: > >> Add DT bindings for the onboard SATA controller present on the DM816x >> SoCs. >> >> Signed-off-by: Bart

[PATCH 2/2] ata: ahci: add support for DaVinci DM816 SATA controller

2017-03-13 Thread Bartosz Golaszewski
in this driver as well. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/ata/Kconfig | 9 +++ drivers/ata/Makefile | 1 + drivers/ata/ahci_dm816.c | 200 +++ 3 files changed, 210 insertions(+) create mode

[PATCH 1/2] dt-bindings: ata: add DT bindings for ahci-dm816 SATA controller

2017-03-13 Thread Bartosz Golaszewski
Add DT bindings for the onboard SATA controller present on the DM816x SoCs. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- Documentation/devicetree/bindings/ata/ahci-dm816.txt | 20 1 file changed, 20 insertions(+) create mode 100644 Documen

[PATCH 1/4] ARM: OMAP2+: dm81xx: Add clkdm and hwmod for SATA

2017-03-13 Thread Bartosz Golaszewski
From: Kevin Hilman <khil...@baylibre.com> Add the SATA clockdomain (part of CM_DEFAULT) and a hwmod for the SATA block on dm81xx. Tested on DM8168 EVM. Signed-off-by: Kevin Hilman <khil...@baylibre.com> Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- a

[PATCH 3/4] ARM: dts: dm8168-evm: add SATA node

2017-03-13 Thread Bartosz Golaszewski
Add the SATA controller node to the dm8168-evm device tree. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- arch/arm/boot/dts/dm8168-evm.dts | 4 arch/arm/boot/dts/dm816x.dtsi| 7 +++ 2 files changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/dm8168-e

[PATCH 0/2] ata: ahci-dm816: new driver

2017-03-13 Thread Bartosz Golaszewski
in this driver as well. Bartosz Golaszewski (2): dt-bindings: ata: add DT bindings for ahci-dm816 SATA controller ata: ahci: add support for DaVinci DM816 SATA controller .../devicetree/bindings/ata/ahci-dm816.txt | 20 +++ drivers/ata/Kconfig| 9 + drivers

Re: [PATCH 2/4] ARM: dts: dm8168-evm: add the external reference clock for SATA

2017-03-14 Thread Bartosz Golaszewski
2017-03-13 22:34 GMT+01:00 Tony Lindgren <t...@atomide.com>: > * Bartosz Golaszewski <bgolaszew...@baylibre.com> [170313 09:45]: >> This board has an external oscillator supplying the reference clock >> signal for SATA. Its rate is fixed at 100Mhz. Add a corres

[PATCH] hid: cp2112: select GPIOLIB_IRQCHIP instead of depending on it

2017-03-12 Thread Bartosz Golaszewski
GPIOLIB_IRQCHIP is not visible to user, so we can't depend on it. Depend on GPIOLIB but select GPIOLIB_IRQCHIP. Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/hid/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hid/Kco

Re: [PATCH] media: vpif: use a configurable i2c_adapter_id for vpif display

2017-03-08 Thread Bartosz Golaszewski
2017-03-07 18:12 GMT+01:00 Lad, Prabhakar <prabhakar.cse...@gmail.com>: > Hi Bartosz, > > Thanks for the patch. > > On Thu, Feb 16, 2017 at 6:08 PM, Bartosz Golaszewski > <bgolaszew...@baylibre.com> wrote: >> >> The vpif display driver uses a static i

Re: [PATCH 00/12] gpio: use resource management for irq descriptors

2017-03-14 Thread Bartosz Golaszewski
is works out? > If time permits, I will be improving the resource management for interrupts (generic-chip, domains etc.), so I may end up in pinctrl at some point. Best regards, Bartosz Golaszewski

[PATCH] regulator: core: use snprintf() instead of scnprintf()

2017-03-06 Thread Bartosz Golaszewski
that *would* have been written. Use the right function in this case: snprintf(). Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com> --- drivers/regulator/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/

Re: [PATCH] media: vpif: use a configurable i2c_adapter_id for vpif display

2017-03-07 Thread Bartosz Golaszewski
2017-02-16 19:08 GMT+01:00 Bartosz Golaszewski <bgolaszew...@baylibre.com>: > The vpif display driver uses a static i2c adapter ID of 1 but on the > da850-evm board in DT boot mode the i2c adapter ID is actually 0. > > Make the adapter ID configurable like it already i

[PATCH 3/6] gpio: pch: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-pch.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpi

[PATCH 4/6] gpio: mxc: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-mxc.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpi

[PATCH 2/6] gpio: ml-ioh: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-ml-ioh.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-ml-ioh.c b/driver

[PATCH 1/6] gpio: sta2x11: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-sta2x11.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-sta2x11.c b/driver

[PATCH 0/6] gpio: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
We now provide resource managed versions of irq_alloc_generic_chip() and irq_setup_generic_chip(). Use them in all relevant gpio drivers. Bartosz Golaszewski (6): gpio: sta2x11: use devres for irq generic chip gpio: ml-ioh: use devres for irq generic chip gpio: pch: use devres for irq

[PATCH 6/6] gpio: sodaville: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-sodaville.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-sodavil

[PATCH 5/6] gpio: mxs: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-mxs.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpi

Re: [PATCH 4/6] gpio: mxc: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
2017-08-02 10:09 GMT+02:00 Alexander Stein <alexander.st...@systec-electronic.com>: > Hi, > > On Wednesday 02 August 2017 09:51:24, Bartosz Golaszewski wrote: >> Use resource managed variants of irq_alloc_generic_chip() and >> irq_setup_generic_chip(). > > Is thi

Re: [PATCH 4/6] gpio: mxc: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
gt;>> On Wednesday 02 August 2017 09:51:24, Bartosz Golaszewski wrote: >>>> Use resource managed variants of irq_alloc_generic_chip() and >>>> irq_setup_generic_chip(). >>> >>> Is this really useful for drivers which can only be built-in? >> >

Re: [PATCH] irq_work: improve the flag definitions

2017-08-15 Thread Bartosz Golaszewski
2017-08-14 13:56 GMT+02:00 Bartosz Golaszewski <b...@bgdev.pl>: > IRQ_WORK_FLAGS is defined simply to 3UL. This is confusing as it > says nothing about its purpose. Define IRQ_WORK_FLAGS as a bitwise > OR of IRQ_WORK_PENDING and IRQ_WORK_BUSY. > > While we're at it: use th

[PATCH v2] irq_work: improve the flag definitions

2017-08-15 Thread Bartosz Golaszewski
IRQ_WORK_FLAGS is defined simply to 3UL. This is confusing as it says nothing about its purpose. Define IRQ_WORK_FLAGS as a bitwise OR of IRQ_WORK_PENDING and IRQ_WORK_BUSY. While we're at it: use the BIT() macro for all flags. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- v1

Re: [PATCH v2 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-14 Thread Bartosz Golaszewski
2017-08-12 13:43 GMT+02:00 Jonathan Cameron <ji...@kernel.org>: > On Tue, 1 Aug 2017 16:50:26 +0200 > Bartosz Golaszewski <b...@bgdev.pl> wrote: > >> Implement a simple, irq_work-based framework for simulating >> interrupts. Currently the API

[PATCH v3 0/3] simulated interrupts

2017-08-14 Thread Bartosz Golaszewski
in the gpio-mockup testing driver. NOTE: The next candidate for using this API would be iio-dummy-evgen. v1 -> v2: - added a call to irq_work_sync in irq_sim_fini() v2 -> v3: - added the license header to new files - added Acked-by's and Reviewed-by's Bartosz Golaszewski (3): irq/irq_sim: add a

[PATCH v3 2/3] irq/irq_sim: add a devres variant of irq_sim_init()

2017-08-14 Thread Bartosz Golaszewski
Add a resource managed version of irq_sim_init(). This can be conveniently used in device drivers. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> Acked-by: Jonathan Cameron <jonathan.came...@huawei.com> --- Documentation/driver-model/devres.txt | 1 + include/lin

[PATCH v3 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-14 Thread Bartosz Golaszewski
struct. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> Reviewed-by: Jonathan Cameron <jonathan.came...@huawei.com> --- include/linux/irq_sim.h | 44 ++ init/Kconfig| 4 ++ kernel/Makefile | 1 + kernel/irq_sim.c

[PATCH] irq_work: improve the flag definitions

2017-08-14 Thread Bartosz Golaszewski
IRQ_WORK_FLAGS is defined simply to 3UL. This is confusing as it says nothing about its purpose. Define IRQ_WORK_FLAGS as a bitwise OR of IRQ_WORK_PENDING and IRQ_WORK_BUSY. While we're at it: use the BIT() macro for all flags. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- i

[PATCH v3 3/3] gpio: mockup: use irq_sim

2017-08-14 Thread Bartosz Golaszewski
Shrink the driver by removing the code dealing with dummy interrupts and replacing it with calls to the irq_sim API. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> Acked-by: Jonathan Cameron <jonathan.came...@huawei.com> Reviewed-by: Linus Walleij <linus.wall...@linaro.org>

[PATCH v4 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-14 Thread Bartosz Golaszewski
struct. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> Reviewed-by: Jonathan Cameron <jonathan.came...@huawei.com> --- include/linux/irq_sim.h | 44 ++ kernel/irq/Kconfig | 5 ++ kernel/irq/Makefile | 1 + kernel/irq/irq_si

Re: [PATCH v3 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-14 Thread Bartosz Golaszewski
2017-08-14 15:06 GMT+02:00 Thomas Gleixner <t...@linutronix.de>: > On Mon, 14 Aug 2017, Bartosz Golaszewski wrote: > >> Implement a simple, irq_work-based framework for simulating >> interrupts. Currently the API exposes routines for initializing and >> deini

Re: [PATCH v3 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-14 Thread Bartosz Golaszewski
2017-08-14 16:48 GMT+02:00 Thomas Gleixner <t...@linutronix.de>: > On Mon, 14 Aug 2017, Bartosz Golaszewski wrote: >> 2017-08-14 15:06 GMT+02:00 Thomas Gleixner <t...@linutronix.de>: >> > On Mon, 14 Aug 2017, Bartosz Golaszewski wrote: >> > >> &g

[PATCH v4 2/3] irq/irq_sim: add a devres variant of irq_sim_init()

2017-08-14 Thread Bartosz Golaszewski
Add a resource managed version of irq_sim_init(). This can be conveniently used in device drivers. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> Acked-by: Jonathan Cameron <jonathan.came...@huawei.com> --- Documentation/driver-model/devres.txt | 1 + include/lin

[PATCH v4 3/3] gpio: mockup: use irq_sim

2017-08-14 Thread Bartosz Golaszewski
Shrink the driver by removing the code dealing with dummy interrupts and replacing it with calls to the irq_sim API. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> Acked-by: Jonathan Cameron <jonathan.came...@huawei.com> Reviewed-by: Linus Walleij <linus.wall...@linaro.org>

[PATCH v4 0/3] simulated interrupts

2017-08-14 Thread Bartosz Golaszewski
in the gpio-mockup testing driver. NOTE: The next candidate for using this API would be iio-dummy-evgen. v1 -> v2: - added a call to irq_work_sync in irq_sim_fini() v2 -> v3: - added the license header to new files - added Acked-by's and Reviewed-by's v3 -> v4: - moved the .c file to kernel/irq

Re: [PATCH] irq_work: improve the flag definitions

2017-08-14 Thread Bartosz Golaszewski
2017-08-14 14:19 GMT+02:00 Andy Shevchenko <andy.shevche...@gmail.com>: > On Mon, Aug 14, 2017 at 2:56 PM, Bartosz Golaszewski <b...@bgdev.pl> wrote: >> IRQ_WORK_FLAGS is defined simply to 3UL. This is confusing as it >> says nothing about its purpose. Define

Re: [PATCH 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-07-24 Thread Bartosz Golaszewski
2017-07-22 22:59 GMT+02:00 Jonathan Cameron : >> + >> +/** >> + * irq_sim_fire - Enqueue an interrupt. >> + * >> + * @sim:The interrupt simulator object. >> + * @offset: Offset of the simulated interrupt which should be fired. >> + */ >> +void irq_sim_fire(struct

[PATCH 3/3] gpio: mockup: use irq_sim

2017-07-19 Thread Bartosz Golaszewski
Shrink the driver by removing the code dealing with dummy interrupts and replacing it with calls to the irq_sim API. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/Kconfig | 2 +- drivers/gpio/gpio-mockup.c | 77 +- 2

[PATCH 0/3] simulated interrupts

2017-07-19 Thread Bartosz Golaszewski
in the gpio-mockup testing driver. NOTE: The next candidate for using this API would be iio-dummy-evgen. Bartosz Golaszewski (3): irq/irq_sim: add a simple interrupt simulator framework irq/irq_sim: add a devres variant of irq_sim_init() gpio: mockup: use irq_sim Documentation/driver-model

[PATCH 2/3] irq/irq_sim: add a devres variant of irq_sim_init()

2017-07-19 Thread Bartosz Golaszewski
Add a resource managed version of irq_sim_init(). This can be conveniently used in device drivers. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- Documentation/driver-model/devres.txt | 1 + include/linux/irq_sim.h | 4 kernel/irq_sim.c

[PATCH 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-07-19 Thread Bartosz Golaszewski
struct. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- include/linux/irq_sim.h | 37 +++ init/Kconfig| 4 ++ kernel/Makefile | 1 + kernel/irq_sim.c| 118 4 files changed, 160 inse

Re: [PATCH 0/3] simulated interrupts

2017-07-19 Thread Bartosz Golaszewski
2017-07-19 14:25 GMT+02:00 Thomas Gleixner <t...@linutronix.de>: > On Wed, 19 Jul 2017, Bartosz Golaszewski wrote: > >> Some frameworks (e.g. iio, gpiolib) use irq_work to implement simulated >> interrupts that can be 'fired' from process context when needed and >&

Re: [PATCH] gpiolib: skip unwanted events, don't convert them to opposite edge

2017-07-04 Thread Bartosz Golaszewski
2017-07-03 13:07 GMT+02:00 Andy Shevchenko <andy.shevche...@gmail.com>: > On Mon, Jul 3, 2017 at 12:12 PM, Bartosz Golaszewski <b...@bgdev.pl> wrote: >> The previous fix for filtering out of unwatched events was not entirely >> correct. Instead of skipping the events

[PATCH] gpiolib: skip unwanted events, don't convert them to opposite edge

2017-07-03 Thread Bartosz Golaszewski
with the event type we requested. Fixes: ad537b822577 ("gpiolib: fix filtering out unwanted events") Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- Hi Linus, I tested my previous fix on a real board, where I got a storm of interrupts from simply playing with a GPIO manually. I

Re: [PATCH] gpiolib: fix filtering out unwanted events

2017-06-29 Thread Bartosz Golaszewski
2017-06-29 11:33 GMT+02:00 Linus Walleij <linus.wall...@linaro.org>: > On Fri, Jun 23, 2017 at 1:45 PM, Bartosz Golaszewski <b...@bgdev.pl> wrote: > >> GPIOEVENT_REQUEST_BOTH_EDGES is not a single flag, but a binary OR of >> GPIOEVENT_REQUEST_RISING_EDGE and

[PATCH v2 6/8] gpio: pch: use devres for irq generic chip

2017-08-09 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-pch.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpi

[PATCH v2 2/8] gpio: mxs: disallow unbinding the driver

2017-08-09 Thread Bartosz Golaszewski
This driver is non-modular so explicitly disallow a driver unbind. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-mxs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c index 6ae583f36733..159927876577

[PATCH v2 8/8] gpio: mxs: use devres for irq generic chip

2017-08-09 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-mxs.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpi

[PATCH v2 7/8] gpio: mxc: use devres for irq generic chip

2017-08-09 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-mxc.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpi

[PATCH v2 4/8] gpio: sta2x11: use devres for irq generic chip

2017-08-09 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-sta2x11.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-sta2x11.c b/driver

[PATCH v2 5/8] gpio: ml-ioh: use devres for irq generic chip

2017-08-09 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-ml-ioh.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-ml-ioh.c b/driver

[PATCH v2 0/8] gpio: use devres for irq generic chip

2017-08-09 Thread Bartosz Golaszewski
use devres in their probe() functions - left out the sodaville patch since it explictly says it doesn't free any resources Bartosz Golaszewski (8): gpio: mxc: disallow unbinding the driver gpio: mxs: disallow unbinding the driver gpio: sta2x11: disallow unbinding the driver gpio: sta2x11:

[PATCH v2 1/8] gpio: mxc: disallow unbinding the driver

2017-08-09 Thread Bartosz Golaszewski
This driver is non-modular so explicitly disallow a driver unbind. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-mxc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 92692251ade1..a4d4a3527a24

[PATCH v2 3/8] gpio: sta2x11: disallow unbinding the driver

2017-08-09 Thread Bartosz Golaszewski
This driver is non-modular so explicitly disallow a driver unbind. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpio-sta2x11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c index 9e705162da8d..56beb3

[PATCH v2 0/3] simulated interrupts

2017-08-01 Thread Bartosz Golaszewski
in the gpio-mockup testing driver. NOTE: The next candidate for using this API would be iio-dummy-evgen. v1 -> v2: - added a call to irq_work_sync in irq_sim_fini() Bartosz Golaszewski (3): irq/irq_sim: add a simple interrupt simulator framework irq/irq_sim: add a devres variant of irq_sim_i

[PATCH v2 2/3] irq/irq_sim: add a devres variant of irq_sim_init()

2017-08-01 Thread Bartosz Golaszewski
Add a resource managed version of irq_sim_init(). This can be conveniently used in device drivers. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- Documentation/driver-model/devres.txt | 1 + include/linux/irq_sim.h | 4 kernel/irq_sim.c

[PATCH v2 3/3] gpio: mockup: use irq_sim

2017-08-01 Thread Bartosz Golaszewski
Shrink the driver by removing the code dealing with dummy interrupts and replacing it with calls to the irq_sim API. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/Kconfig | 2 +- drivers/gpio/gpio-mockup.c | 77 +- 2

[PATCH v2 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-01 Thread Bartosz Golaszewski
struct. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- include/linux/irq_sim.h | 37 +++ init/Kconfig| 4 ++ kernel/Makefile | 1 + kernel/irq_sim.c| 119 4 files changed, 161 inse

Re: [RFT PATCH v2] gpiolib: allow gpio irqchip to map irqs dynamically

2017-08-01 Thread Bartosz Golaszewski
iver. I'll send a v2 shortly and I hope to get it merged for v4.14. Best regards, Bartosz Golaszewski [1] https://lkml.org/lkml/2017/7/19/698 [2] https://lkml.org/lkml/2017/7/19/696

[PATCH] mips: gitignore: ignore generated .c files

2017-08-02 Thread Bartosz Golaszewski
Add ashldi3.c and bswapsi.c to the list of ignored files. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- arch/mips/boot/compressed/.gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 arch/mips/boot/compressed/.gitignore diff --git a/arch/mips/boot/comp

[ANNOUNCE] libgpiod v0.2

2017-05-09 Thread Bartosz Golaszewski
try to process docs if doxygen is not installed Get it from github[1]. Should soon be available in buildroot as well. Best regards, Bartosz Golaszewski [1] https://github.com/brgl/libgpiod

Re: [PATCH 0/5] irq: generic-chip: resource management improvements

2017-06-20 Thread Bartosz Golaszewski
2017-05-31 18:06 GMT+02:00 Bartosz Golaszewski <b...@bgdev.pl>: > This series is a follow-up to [1]. > > Some users of irq_alloc_generic_chip() are modules which can be > removed (e.g. gpio-ml-ioh) but have no means of freeing the allocated > generic chip. > > Last time

Re: [PATCH 0/5] irq: generic-chip: resource management improvements

2017-06-20 Thread Bartosz Golaszewski
2017-06-20 12:41 GMT+02:00 Marc Zyngier <marc.zyng...@arm.com>: > On 20/06/17 11:31, Bartosz Golaszewski wrote: >> 2017-05-31 18:06 GMT+02:00 Bartosz Golaszewski <b...@bgdev.pl>: >>> This series is a follow-up to [1]. >>> >>> Some users o

Re: [PATCH 0/5] irq: generic-chip: resource management improvements

2017-06-21 Thread Bartosz Golaszewski
2017-06-20 16:14 GMT+02:00 Thomas Gleixner <t...@linutronix.de>: > On Tue, 20 Jun 2017, Bartosz Golaszewski wrote: >> 2017-06-20 12:41 GMT+02:00 Marc Zyngier <marc.zyng...@arm.com>: >> > There was a kbuild report from June 1st with worrying warnings on x86_64 &

[ANNOUNCE] libgpiod v0.3

2017-06-23 Thread Bartosz Golaszewski
correct UAPI flags when requesting line events Best regards, Bartosz Golaszewski [1] https://github.com/brgl/libgpiod/releases/tag/v0.3

[PATCH] gpiolib: fix filtering out unwanted events

2017-06-23 Thread Bartosz Golaszewski
RISING & FALLING flags explicitly. Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl> --- drivers/gpio/gpiolib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 5db4413..a42a1ee 100644 --- a/drivers/gpio/gpioli

[PATCH] gpiolib: fix filtering out unwanted events

2017-06-23 Thread Bartosz Golaszewski
been there for some time and it's quite late in the release cycle, but I believe it should still go in v4.12 since currently the character device interface doesn't do what it promises to. Bartosz Golaszewski (1): gpiolib: fix filtering out unwanted events drivers/gpio/gpiolib.c | 3 ++- 1 file

<    4   5   6   7   8   9   10   11   12   13   >