Enable or Disable ?

Li-Ta Lo ollie at lanl.gov
Fri May 7 15:47:01 CEST 2004


I still don't understand why we have to enable some device
even the config file says the device is disabled. The code
in pci_device.c:pci_scan_bus()

		if (dev->chip && dev->chip->control &&
		    dev->chip->control->enable_dev) {
			int enabled  = dev->enabled;
			dev->enabled = 1;
			dev->enabled = enabled;

tries to ignore the dev->enabled flag and enable the device.
Later the enable_dev() or enable() is called again.


More information about the coreboot mailing list