mbox series

[V4,0/2] pinctrl: bcm2835: Implement pin_conf_get

Message ID 20240307070113.4888-1-wahrenst@gmx.net
Headers show
Series pinctrl: bcm2835: Implement pin_conf_get | expand

Message

Stefan Wahren March 7, 2024, 7:01 a.m. UTC
For years, the Raspberry Pi users relied on userspace programs to read
the pin configuration. In the meantime, it has become apparent that this
approach has reached its limits for various reasons.

This patch series now attempts to improve the debugging possibilities on
the kernel side in order to reduce the dependency on these userspace
programs.

Changes in V4:
- drop PIN_CONFIG_INPUT_ENABLE & PIN_CONFIG_OUTPUT_ENABLE from
  bcm2835_pinconf_get as suggested by Chen-Yu Tsai
- add Florian's Reviewed-by and Tested-by

Changes in V3:
- convert changes to single return point of success as suggested by
  Andy Shevchenko
- justify ENOTSUPP checkpatch false positive

Changes in V2:
- adjust the BCM2711/7211 pull resistor value according to the Broadcom
  datasheet

Stefan Wahren (2):
  pinctrl: bcm2835: Implement bcm2835_pinconf_get
  pinctrl: bcm2835: Implement bcm2711_pinconf_get

 drivers/pinctrl/bcm/pinctrl-bcm2835.c | 64 +++++++++++++++++++++++++--
 1 file changed, 61 insertions(+), 3 deletions(-)

--
2.34.1

Comments

Linus Walleij March 28, 2024, 8:52 a.m. UTC | #1
On Thu, Mar 7, 2024 at 8:01 AM Stefan Wahren <wahrenst@gmx.net> wrote:

> For years, the Raspberry Pi users relied on userspace programs to read
> the pin configuration. In the meantime, it has become apparent that this
> approach has reached its limits for various reasons.
>
> This patch series now attempts to improve the debugging possibilities on
> the kernel side in order to reduce the dependency on these userspace
> programs.

This v4 version applied for kernel v6.10!

Yours,
Linus Walleij