gpio: add GPIO hogging mechanism
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest2 patches 3 repliesIn review
- v52 patches 7 repliesSuperseded
- v42 patches 4 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 2 patches | 7 replies | Superseded | |
| v2 | 2 patches | 31 replies | Superseded | |
| v1 RFC | 1 patch | 19 replies | Superseded |
Changes in v6 from the cover letter
* Addressed review comment from Linus Walleij
* Replace "state" property back with separate boolean properties
* Renamed helper function
* Refactored pr_* calls to remove "__func__"
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | gpio: add GPIO hogging mechanismdrivers/ drivers/ drivers/ | +219 | 1 reply | |
| 2/2 | gpio: Document GPIO hogging mechanismDocumentation/ | +30 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Alexandre Courbot |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Patch v6 0/2] gpio: add GPIO hogging mechanism
This patch set re-introduces the gpio hogging concept first presented by Boris Brezillion.
This patch set provides a way to initially configure specific GPIO when the GPIO controller is probed.
The actual DT scanning to collect the GPIO specific data is performed as part of of_gpiochip_add().
The purpose of this is to allow specific GPIOs to be configured without any driver specific code.
This is particularly useful because board design are getting increasingly complex and given SoC pins can now have more than 10 mux values a lot of connections are now dependent on external IO muxes to switch various modes.
Specific drivers should not necessarily need to be aware of what accounts to a specific board implementation. This board level "description" should be best kept as part of the dts file.
Changes since v5:
* Addressed review comment from Linus Walleij
* Replace "state" property back with separate boolean properties
* Renamed helper function
* Refactored pr_* calls to remove "__func__"
Changes since v4:
* Addressed review comments from Alexandre Courbot
Changes since v3:
* Relocated the non-DT "hog" function to gpiolib.c.
* Rename some of the function to be clearer and remove _ prefixes.
* Replace the gpiod_request/gpiod_put usage with gpiochip_request_own_desc/free_own_desc version instead.
* Refactor some of the logic to better handle error condition/reporting
* Renamed the "direction" DT properties to "state".
Changes since v2:
* Refactor the gpio-hog mechanism to split the DT related action from the actual "hogging" operation.
* This allows non-DT providers to implement hogs as well.
* Added FLAG_IS_HOGGED to mark hogged gpio and make gpiochip removal able to release hogged gpio.
* Similarly to the hogging, the cleanup is performed as part of of_gpiochip_remove
Changes since v1:
* Split the devicetree bindings documentation in its own patch.
* Refactor the gpio-hog mechanism as private functions meant to be to invoked from of_gpiochip_add().
Benoit Parrot (2):
gpio: add GPIO hogging mechanism
gpio: Document GPIO hogging mechanism
Documentation/devicetree/bindings/gpio/gpio.txt | 30 ++++++ drivers/gpio/gpiolib-of.c | 111 +++++++++++++++++++++ drivers/gpio/gpiolib.c | 124 ++++++++++++++++++++---- drivers/gpio/gpiolib.h | 3 + 4 files changed, 249 insertions(+), 19 deletions(-)
Signature · 1 line
1.8.5.1