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
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
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
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
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
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(
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
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
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
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(-)
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(
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
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
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
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
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
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
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
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
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
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
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|
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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?
>>
>
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
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
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
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
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
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
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
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>
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
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
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
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
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>
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
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
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
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
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
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
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
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
>&
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
&
correct UAPI flags when requesting line events
Best regards,
Bartosz Golaszewski
[1] https://github.com/brgl/libgpiod/releases/tag/v0.3
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
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
801 - 900 of 5653 matches
Mail list logo