diff options
author | Bean Huo <[email protected]> | 2020-09-18 14:38:00 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2020-09-28 17:51:21 +0100 |
commit | ecc3e424d190eb2408751d2100e97a48f69a222d (patch) | |
tree | acef01bc87fd76abc9df62247919e78b0d4cc77a /lib/test_overflow.c | |
parent | 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff) |
PCI: kirin: Return -EPROBE_DEFER in case the gpio isn't ready
PCI host bridge driver can be probed before the gpiochip it requires,
so, of_get_named_gpio() can return -EPROBE_DEFER. Current code lets the
kirin_pcie_probe() directly return -ENODEV, which results in the PCI
host controller driver probe failure; with this error code the PCI host
controller driver will not be probed again when the gpiochip driver is
loaded.
Fix the above issue by letting kirin_pcie_probe() return -EPROBE_DEFER in
such a case.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bean Huo <[email protected]>
[[email protected]: commit log]
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions