linux/arch/arm/mach-omap1
Linus Torvalds b05ddad009 gpio updates for v6.7-rc1
GPIOLIB core:
 - provide interfaces allowing users to retrieve, manage and query the
   reference counted GPIO device instead of accessing the private gpio_chip
   structure
 - replace gpiochip_find() with gpio_device_find()
 - remove unused acpi_get_and_request_gpiod()
 - improve the ignore_interrupt functionality in GPIO ACPI
 - correct notifier return codes in gpiolib-of
 - unexport gpiod_set_transitory() as it's unused outside of core GPIO code
 - while there are still external users accessing struct gpio_chip, let's
   make gpiochip_get_desc() public so that they at least use the preferred
   helper
 - improve locking for lookup tables
 - annotate struct linereq with __counted_by
 - improve GPIOLIB docs
 - add an OF quirk for LED trigger sources
 
 Driver improvements:
 - convert all GPIO drivers with .remove() callbacks to using the new
   variant returning void instead of int
 - stop accessing the GPIOLIB private structures in gpio-mockup,
   i2c-mux-gpio, hte-tegra194, gpio-sim
 - use the recommended pattern for autofree variables in gpio-sim
 - add support for more models to gpio-loongson
 - use a notifier chain to notify other blocks about interrupts in
   gpio-eic-sprd instead of looking up GPIO devices on every interrupt
 - convert gpio-pca953x and gpio-fx6408 to using the maple tree regmap
   cache
 - don't include GPIOLIB internal headers in drivers which don't need them
 - move the ingenic NAND quirk into gpiolib-of
 - add an ignore interrupt quirk for Peaq C1010
 - drop static GPIO base from gpio-omap, gpio-f7188x
 - use the preferred device_get_match_data() function in drivers that still
   don't
 - refactor gpio-pca953x: switch to using DEFINE_SIMPLE_DEV_PM_OPS(), use
   cleanup helpers, use dev_err_probe() where it makes sense, fully convert
   to using devres and some other minor tweaks
 
 DT bindings:
 - add support for a new model to gpio-vf610 and update existing properties
 - add support for more loongson models
 - add missing support for imx models that are used but undocumented
 - convert bindings for Intel IXP4xx to schema
 
 Minor stuff:
 - deprecate gpio-mockup in favor of gpio-sim
 - include missing headers here and there
 - stop using gpiochip_find() in OMAP1 board files
 - minor tweaks in gpio-vf610, gpio-hisi
 - remove unneeded 'extern' specifiers from headers
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEFp3rbAvDxGAT0sefEacuoBRx13IFAmU7ixgACgkQEacuoBRx
 13JwfxAA4CeZdXdUpx6EMUw+6ST4EWb5JanrPjNcQbyBxNFrHx+6yJJL4AOQJStQ
 WkG+Zi8Li9uV3wZQixBDs0WN8xVwJU+4QLSwwtNhEjl2x9MkVjghh4la6TqBrMj8
 e/iJufTyKUgcm2P4MRTDXFarAin4doBQUPKWfCgL18VvlKxLXG0KMndUl3jAd/Rm
 YZLm4Z/iqWaxjfrm+E9LfWFmWS5T7t/g+7TYzMp2AHQ9dHFiwoodpiHTkdWH4dfL
 zxF8Ek2132Up0BYC1lQlwz1aoLIlHcr9xVOqOrIxZI/B5xRcUfoXnQQmCCfH2UYr
 wtfwKMI7IO2d5E+F7anFC67d9wm7tWacKEifw9lWUAD6xr6yv/13ZOU6aoWXj1Vq
 xOMe6gEeZSboF/XiqlmrpZYH+ljDp/mYWkGcOJrUg7WYUgvUCFWu6l6DmuUFMr7m
 ACtOUqwbTuWTXN28QtMOpjiQRqlAWyrY6PqhBCllhmcjsoVaZNgWEfriPlSOyoBg
 EBRBcURXLs7/h86nEsK/8BIsC0myHbpNiNpG5qaMjrrYJxMh4qS4MIG83MWAy1dZ
 8ZtYrxx4XClyaYwYomsIkseLaSCrBTIoYws7wmyTjYfKC7P/t6/XXPS1suyMnf9I
 /n5tN8Rv1pDrnS3iQflHQVl9H5m4yezHOOBJUiWW+gs5MUr4vK0=
 =1QF8
 -----END PGP SIGNATURE-----

Merge tag 'gpio-updates-for-v6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux

Pull gpio updates from Bartosz Golaszewski:
 "We don't have any new drivers. The loongson driver is getting extended
  with support for new models. There's a big refactor of gpio-pca953x
  and many small improvements to others.

  The GPIO code in the kernel has acquired a lot of cruft over the years
  as well as many abusers of the API across the kernel tree. This
  release cycle we have started a major cleanup and improvement effort
  that will most likely span several releases. We have started by
  converting external users of struct gpio_chip to accessing the wrapper
  around it - struct gpio_device. This is because the latter is
  reference counted while the former is removed when the provider is
  unbound. We also removed several instances of drivers accessing
  private GPIOLIB structures and including the private header from
  drivers/gpio/.

  To that end you'll see several commits aimed at different subsystems
  (acked by relevant maintainers) as well as two merges from the
  x86/platform tree.

  We'll then rework the locking in GPIOLIB which currently uses a big
  spinlock for many different things and could use becoming more
  fine-grained, especially as it doesn't even get the locking right.
  We'll also use SRCU for protecting the gpio_chip pointer against
  in-kernel hot-unplug crashes similar to what we saw triggered from
  user-space and fixed with semaphores in gpiolib-cdev. The core GPIOLIB
  is still vulnerable to these use-cases. I'm just mentioning the plans
  here, this is not part of this PR.

  You'll see some new instances of using __free(). We've added a
  gpio_device_put cleanup helper similar to the put_device one
  introduced by Peter Zijlstra and used it according to the preferred
  pattern except where it didn't make sense.

  GPIOLIB core:
   - provide interfaces allowing users to retrieve, manage and query the
     reference counted GPIO device instead of accessing the private
     gpio_chip structure
   - replace gpiochip_find() with gpio_device_find()
   - remove unused acpi_get_and_request_gpiod()
   - improve the ignore_interrupt functionality in GPIO ACPI
   - correct notifier return codes in gpiolib-of
   - unexport gpiod_set_transitory() as it's unused outside of core GPIO
     code
   - while there are still external users accessing struct gpio_chip,
     let's make gpiochip_get_desc() public so that they at least use the
     preferred helper
   - improve locking for lookup tables
   - annotate struct linereq with __counted_by
   - improve GPIOLIB docs
   - add an OF quirk for LED trigger sources

  Driver improvements:
   - convert all GPIO drivers with .remove() callbacks to using the new
     variant returning void instead of int
   - stop accessing the GPIOLIB private structures in gpio-mockup,
     i2c-mux-gpio, hte-tegra194, gpio-sim
   - use the recommended pattern for autofree variables in gpio-sim
   - add support for more models to gpio-loongson
   - use a notifier chain to notify other blocks about interrupts in
     gpio-eic-sprd instead of looking up GPIO devices on every interrupt
   - convert gpio-pca953x and gpio-fx6408 to using the maple tree regmap
     cache
   - don't include GPIOLIB internal headers in drivers which don't need
     them
   - move the ingenic NAND quirk into gpiolib-of
   - add an ignore interrupt quirk for Peaq C1010
   - drop static GPIO base from gpio-omap, gpio-f7188x
   - use the preferred device_get_match_data() function in drivers that
     still don't
   - refactor gpio-pca953x: switch to using DEFINE_SIMPLE_DEV_PM_OPS(),
     use cleanup helpers, use dev_err_probe() where it makes sense,
     fully convert to using devres and some other minor tweaks

  DT bindings:
   - add support for a new model to gpio-vf610 and update existing
     properties
   - add support for more loongson models
   - add missing support for imx models that are used but undocumented
   - convert bindings for Intel IXP4xx to schema

  Minor stuff:
   - deprecate gpio-mockup in favor of gpio-sim
   - include missing headers here and there
   - stop using gpiochip_find() in OMAP1 board files
   - minor tweaks in gpio-vf610, gpio-hisi
   - remove unneeded 'extern' specifiers from headers"

* tag 'gpio-updates-for-v6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: (108 commits)
  hte: tegra194: add GPIOLIB dependency
  hte: tegra194: don't access struct gpio_chip
  gpiolib: provide gpio_device_get_base()
  i2c: mux: gpio: don't fiddle with GPIOLIB internals
  gpiolib: provide gpiod_to_gpio_device()
  gpiolib: provide gpio_device_to_device()
  gpio: hisi: Fix format specifier
  gpiolib: provide gpio_device_find_by_fwnode()
  gpio: acpi: remove acpi_get_and_request_gpiod()
  gpio: Use device_get_match_data()
  gpio: vf610: update comment for i.MX8ULP and i.MX93 legacy compatibles
  platform/x86: int3472: Switch to devm_get_gpiod()
  platform/x86: int3472: Stop using gpiod_toggle_active_low()
  platform/x86: int3472: Add new skl_int3472_gpiod_get_from_temp_lookup() helper
  platform/x86: int3472: Add new skl_int3472_fill_gpiod_lookup() helper
  gpio: vf610: simplify code by dropping data check
  gpio: vf610: add i.MX8ULP of_device_id entry
  dt-bindings: gpio: vf610: add i.MX95 compatible
  dt-bindings: gpio: vf610: correct i.MX8ULP and i.MX93
  dt-bindings: gpio: vf610: update gpio-ranges
  ...
2023-10-31 17:21:54 -10:00
..
ams-delta-fiq-handler.S ARM: omap1: move mach/*.h into mach directory 2022-04-22 11:08:55 +02:00
ams-delta-fiq.c ARM: omap1: move mach/*.h into mach directory 2022-04-22 11:08:55 +02:00
ams-delta-fiq.h ARM: omap1: move mach/*.h into mach directory 2022-04-22 11:08:55 +02:00
board-ams-delta.c gpio updates for v6.7-rc1 2023-10-31 17:21:54 -10:00
board-ams-delta.h ARM: OMAP1: ams-delta: Move AMS_DELTA_LATCH2_NGPIO to the board file 2018-11-29 12:05:34 -08:00
board-nokia770.c gpio updates for v6.5 2023-06-29 10:11:10 -07:00
board-osk.c gpio updates for v6.5 2023-06-29 10:11:10 -07:00
board-palmte.c OMAP/gpio: drop MPUIO static base 2023-10-04 11:37:25 +02:00
board-sx1-mmc.c ARM/mmc: Convert old mmci-omap to GPIO descriptors 2023-05-24 15:01:36 +02:00
board-sx1.c gpio updates for v6.5 2023-06-29 10:11:10 -07:00
board-sx1.h treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_298.RULE 2022-06-10 14:51:36 +02:00
clock_data.c ARM: omap1: remove dead code 2023-01-12 10:53:11 +01:00
clock.c ARM: OMAP1: clock: Convert to CCF 2022-06-03 20:48:53 +02:00
clock.h ARM: OMAP1: clock: Convert to CCF 2022-06-03 20:48:53 +02:00
common.h ARM: omap1: merge omap1_map_io functions 2023-01-12 10:53:11 +01:00
devices.c ARM: omap1: Exorcise the legacy GPIO header 2023-05-24 15:01:53 +02:00
dma.c ARM: omap1: remove dead code 2023-01-12 10:53:11 +01:00
fb.c ARM: omap: fix missing declaration warnings 2022-04-29 09:53:28 +02:00
flash.c ARM: omap1: move mach/*.h into mach directory 2022-04-22 11:08:55 +02:00
flash.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
gpio15xx.c ARM: omap1: Exorcise the legacy GPIO header 2023-05-24 15:01:53 +02:00
gpio16xx.c ARM: omap1: Exorcise the legacy GPIO header 2023-05-24 15:01:53 +02:00
hardware.h ARM: omap1: remove unused omapxxxx.h headers 2023-01-12 10:53:11 +01:00
i2c.c ARM: omap1: remove dead code 2023-01-12 10:53:11 +01:00
i2c.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
id.c ARM: omap1: move mach/*.h into mach directory 2022-04-22 11:08:55 +02:00
io.c ARM: omap1: merge omap1_map_io functions 2023-01-12 10:53:11 +01:00
iomap.h ARM: OMAP1: Remove relative includes 2012-10-31 15:37:14 -07:00
irq.c gpio updates for v6.5 2023-06-29 10:11:10 -07:00
irqs.h ARM: omap1: remove dead code 2023-01-12 10:53:11 +01:00
Kconfig ARM: omap1: Kconfig: Fix indentation 2023-03-27 09:54:33 +03:00
Makefile ARM: omap1: remove unused board files 2023-01-12 10:53:11 +01:00
mcbsp.c ARM: omap1: remove dead code 2023-01-12 10:53:11 +01:00
mmc.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mtd-xip.h ARM: omap1: remove dead code 2023-01-12 10:53:11 +01:00
mux.c ARM: omap1: remove dead code 2023-01-12 10:53:11 +01:00
mux.h ARM: omap1: move mach/*.h into mach directory 2022-04-22 11:08:55 +02:00
ocpi.c ARM: OMAP1: Prepare for conversion of OMAP1 clocks to CCF 2022-04-22 11:08:55 +02:00
omap-dma.c ARM: Convert to platform remove callback returning void 2023-03-17 16:03:57 +01:00
opp_data.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
opp.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
pm_bus.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1) 2022-06-10 14:51:35 +02:00
pm.c arm: omap1: replace printk() with pr_err macro 2023-05-31 08:31:43 +03:00
pm.h ARM: omap1: remove dead code 2023-01-12 10:53:11 +01:00
reset.c ARM: omap1: move mach/*.h into mach directory 2022-04-22 11:08:55 +02:00
serial.c This removes all usage of global GPIO numbers from 2023-05-26 15:53:46 +02:00
serial.h ARM: omap1: enable multiplatform 2022-06-03 20:48:53 +02:00
sleep.S ARM: omap1: remove dead code 2023-01-12 10:53:11 +01:00
soc.h ARM: omap1: move mach/*.h into mach directory 2022-04-22 11:08:55 +02:00
sram-init.c ARM: omap: Fix checkpatch issues 2023-05-31 08:30:43 +03:00
sram.h ARM: omap: un-merge plat/sram.c 2022-04-22 11:08:55 +02:00
sram.S ARM: omap1: move mach/*.h into mach directory 2022-04-22 11:08:55 +02:00
tc.h ARM: omap1: move mach/*.h into mach directory 2022-04-22 11:08:55 +02:00
time.c ARM: OMAP1: clock: Convert to CCF 2022-06-03 20:48:53 +02:00
timer32k.c ARM: OMAP: timer32K: fix all kernel-doc warnings 2023-10-07 10:43:13 +03:00
timer.c ARM: OMAP1: call platform_device_put() in error case in omap1_dm_timer_init() 2023-01-19 11:57:57 +02:00
usb.c ARM: omap1: remove dead code 2023-01-12 10:53:11 +01:00
usb.h ARM: omap1: move mach/usb.h to include/linux/soc 2022-04-21 15:00:59 +02:00