Skip to content
GPIO fixes for the V4.6 series:

Core fixes:
- Defer GPIO device setup until after gpiolib is initialized.
  It turns out that a few very tightly integrated GPIO platform
  drivers initialize so early (befor core_initcall()) so that
  the gpiolib isn't even initialized itself. That limits what
  the library can do, and we cannot reference uninitialized
  fields until later. Defer some of the initialization until
  right after the gpiolib is initialized in these (rare) cases.
- As a consequence: do not use devm_* resources when allocating
  the states in the initial set-up of the gpiochip.

Driver fixes:
- In ACPI retrieveal: ignore GpioInt when looking for output
  GPIOs.
- Fix legacy builds on the PXA without a backing pin controller.
- Use correct datatype on pca953x register writes.