linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] gpiolib: get rid of exessive ->of_gpio_ranges_fallback()
@ 2023-01-13 21:53 Andy Shevchenko
  2023-01-13 21:53 ` [PATCH v3 1/4] gpiolib: Check "gpio-ranges" before calling ->add_pin_ranges() Andy Shevchenko
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Andy Shevchenko @ 2023-01-13 21:53 UTC (permalink / raw)
  To: Bartosz Golaszewski, Dmitry Torokhov, Andy Shevchenko, linux-gpio,
	linux-kernel, linux-rpi-kernel, linux-arm-kernel
  Cc: Linus Walleij, Bartosz Golaszewski, Florian Fainelli, Ray Jui,
	Scott Branden, Broadcom internal kernel review list,
	Stefan Wahren

The ->of_gpio_ranges_fallback() repeats the idea that lies behind
->add_pin_ranges(), while the latter covers more cases that the former
hook. Drop the former one for good.

Changelog v3:
- moved check of the property presense to GPIO library
- split out the refcount fix in a separate patch
- added cover letter

Andy Shevchenko (4):
  gpiolib: Check "gpio-ranges" before calling ->add_pin_ranges()
  pinctrl: bcm2835: Remove of_node_put() in
    bcm2835_of_gpio_ranges_fallback()
  pinctrl: bcm2835: Switch to use ->add_pin_ranges()
  Revert "gpiolib: of: Introduce hook for missing gpio-ranges"

 drivers/gpio/gpiolib-of.c             |  5 -----
 drivers/gpio/gpiolib.c                |  8 ++++++++
 drivers/pinctrl/bcm/pinctrl-bcm2835.c | 10 ++++------
 include/linux/gpio/driver.h           | 12 ------------
 4 files changed, 12 insertions(+), 23 deletions(-)

-- 
2.39.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-01-26 12:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-13 21:53 [PATCH v3 0/4] gpiolib: get rid of exessive ->of_gpio_ranges_fallback() Andy Shevchenko
2023-01-13 21:53 ` [PATCH v3 1/4] gpiolib: Check "gpio-ranges" before calling ->add_pin_ranges() Andy Shevchenko
2023-01-13 21:53 ` [PATCH v3 2/4] pinctrl: bcm2835: Remove of_node_put() in bcm2835_of_gpio_ranges_fallback() Andy Shevchenko
2023-01-14 11:03   ` Stefan Wahren
2023-01-14 11:10     ` Andy Shevchenko
2023-01-14 16:36       ` Florian Fainelli
2023-01-13 21:53 ` [PATCH v3 3/4] pinctrl: bcm2835: Switch to use ->add_pin_ranges() Andy Shevchenko
2023-01-13 21:53 ` [PATCH v3 4/4] Revert "gpiolib: of: Introduce hook for missing gpio-ranges" Andy Shevchenko
2023-01-16  9:36 ` [PATCH v3 0/4] gpiolib: get rid of exessive ->of_gpio_ranges_fallback() Bartosz Golaszewski
2023-01-19 17:28 ` Stefan Wahren
2023-01-19 17:41   ` Andy Shevchenko
2023-01-19 19:06 ` Florian Fainelli
2023-01-26 12:39 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).