When we can't parse the CIS, note with a warning that the bogus CIS
was ignored, rather than freaking out. In the past, it wasn't possible to not parse the CIS, so this changes no behavior.
This commit is contained in:
parent
732fefa3ee
commit
a63eba960f
@ -192,11 +192,8 @@ cardbus_attach_card(device_t cbdev)
|
||||
dinfo->pci.cfg.dev = child;
|
||||
resource_list_init(&dinfo->pci.resources);
|
||||
device_set_ivars(child, dinfo);
|
||||
if (cardbus_do_cis(cbdev, child) != 0) {
|
||||
DEVPRINTF((cbdev, "Can't parse cis\n"));
|
||||
pci_freecfg((struct pci_devinfo *)dinfo);
|
||||
continue;
|
||||
}
|
||||
if (cardbus_do_cis(cbdev, child) != 0)
|
||||
DEVPRINTF((cbdev, "Warning: Bogus CIS ignored\n"));
|
||||
pci_cfg_save(dinfo->pci.cfg.dev, &dinfo->pci, 0);
|
||||
pci_cfg_restore(dinfo->pci.cfg.dev, &dinfo->pci);
|
||||
pci_add_resources(cbdev, child, 1, dinfo->mprefetchable);
|
||||
|
Loading…
Reference in New Issue
Block a user