mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user