diff options
author | Simon Glass <sjg@chromium.org> | 2020-04-08 16:57:26 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-04-16 14:36:28 +0800 |
commit | d8c7fb503611f0e16184ffe43b6445740d6fa682 (patch) | |
tree | 28b4812f596fa5eeb6ff9ec28621bdd5d8fc729d /drivers/pci | |
parent | 88307654af35fd550324fc1d8504db0da7225950 (diff) | |
download | u-boot-d8c7fb503611f0e16184ffe43b6445740d6fa682.tar.gz u-boot-d8c7fb503611f0e16184ffe43b6445740d6fa682.tar.xz u-boot-d8c7fb503611f0e16184ffe43b6445740d6fa682.zip |
dm: pci: Allow disabling auto-config for a device
Add a means to avoid configuring a device when needed. Add an explanation
of why this is useful to the binding file.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci-uclass.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index e2882e3b63..ceb6451704 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -536,6 +536,8 @@ int pci_auto_config_devices(struct udevice *bus) int ret; debug("%s: device %s\n", __func__, dev->name); + if (dev_read_bool(dev, "pci,no-autoconfig")) + continue; ret = dm_pciauto_config_device(dev); if (ret < 0) return ret; |