2018-04-26 14:07 GMT+02:00 Linus Walleij <linus.wall...@linaro.org>:
> On Tue, Apr 10, 2018 at 10:30 PM, Bartosz Golaszewski <b...@bgdev.pl> wrote:
>
>> Board files constitute a significant part of the users of the legacy
>> GPIO framework. In many cases they
tree, please drop us a note to
> help improve the system]
>
> url:
> https://github.com/0day-ci/linux/commits/Bartosz-Golaszewski/gpiolib-add-hogs-support-for-machine-code/20180410-232047
> base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git
> for-next
the machine.h API with support for
registering hog tables in board files.
Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl>
---
v1 -> v2:
- kbuild bot complains about enum gpiod_flags having incomplete type
although it builds fine for me locally: change the type of dflags
to int
Documentati
the machine.h API with support for
registering hog tables in board files.
Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl>
---
Documentation/driver-api/gpio/board.rst | 16 ++
drivers/gpio/gpiolib.c | 67 +
include/linux/gpio/machine.h
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
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
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>
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
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
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
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
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
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>
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
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
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
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
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
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
>&
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
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
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
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
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
&
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
-by: Bartosz Golaszewski <b...@bgdev.pl>
---
include/linux/irq.h | 6 ++
1 file changed, 6 insertions(+)
diff --git a/include/linux/irq.h b/include/linux/irq.h
index f887351..cba41a4 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -22,6 +22,7 @@
#include
#include
#include
+#i
of
irq_alloc_generic_chip() & irq_setup_generic_chip(). They will be used
in drivers where applicable. Device resources are released in reverse
order so it's ok to call devm_irq_alloc_generic_chip() and then
devm_irq_setup_generic_chip().
[1] https://lkml.org/lkml/2017/3/8/550
Bartosz Golaszewski (5):
This function will be used in the devres variant of
irq_alloc_generic_chip().
Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl>
---
kernel/irq/generic-chip.c | 7 +++
kernel/irq/internals.h| 11 +++
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/kern
Provide a resource managed variant of irq_alloc_generic_chip().
Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl>
---
Documentation/driver-model/devres.txt | 1 +
include/linux/irq.h | 5 +
kernel/irq/devres.c | 34 +++
Provide a resource managed variant of irq_setup_generic_chip().
Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl>
---
Documentation/driver-model/devres.txt | 1 +
include/linux/irq.h | 3 ++
kernel/irq/devres.c | 52
Most users of irq_alloc_generic_chip() call irq_setup_generic_chip()
too. To simplify the cleanup provide a function that both removes a
generic chip and frees its memory.
Signed-off-by: Bartosz Golaszewski <b...@bgdev.pl>
---
include/linux/irq.h | 8
1 file changed, 8 inse
Add a devres flavor of __devm_irq_alloc_descs() and corresponding
helper macros.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
v1 -> v2:
- added kernel docs for the new function
- made the from and cnt fields of struct irq_desc_devres unsigned
integers as thi
Add a devres flavor of __devm_irq_alloc_descs() and corresponding
helper macros.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
I initially sent this patch as part of the series extending the GPIO
testing driver, but as suggested by Linus - I used the non-managed
v
34 matches
Mail list logo