Re: [PATCH net-next v2 12/14] gpio: tc956x: add TC956x/QPS615 support
From: Andrew Lunn
Date: Thu Jul 16 2026 - 09:44:44 EST
> So we need to make sure that the GPIO controller driver is available before
> enumerating the switch device. One way to achieve is by creating the GPIO Aux
> device in the pci/pwrctrl/pci-pwrctrl-tc9563.c driver and let the GPIO
> controller driver use I2C communication for setting up the GPIOs. Thankfully,
> the switch allows both I2C and BAR MMIO configurations for internal GPIOs.
There was a comment from Rob that the GPIO controller should be
associated with the upstream port of the switch. And there was a way
to do that.
What we need to ensure is that the GPIO controller has an independent
lifetime to the downstream ports. That would allow the downstream
ports to return EPROBE_AGAIN, if the GPIO controller associated to the
upstream port is still initialising.
Andrew