Enable or Disable ?

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


Eric,

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->chip->control->enable_dev(dev);
			dev->enabled = enabled;
		}

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

Ollie





More information about the coreboot mailing list