If we've encountered unrecognized chipset don't access hardware

anymore. Previously it tried to access interrupt register to disable
interrupts which could result in hang if the hardware was not
properly initialized by system BIOS/ACPI.

Tested by:	Benjamin Hansmann (benjamin.hansmann AT rub dot de)
MFC after:	3 days
This commit is contained in:
Pyun YongHyeon 2007-04-06 02:02:07 +00:00
parent f13a826083
commit ad6d01d151
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168408

View file

@ -1579,8 +1579,8 @@ mskc_attach(device_t dev)
sc->msk_hw_id > CHIP_ID_YUKON_FE) {
device_printf(dev, "unknown device: id=0x%02x, rev=0x%02x\n",
sc->msk_hw_id, sc->msk_hw_rev);
error = ENXIO;
goto fail;
mtx_destroy(&sc->msk_mtx);
return (ENXIO);
}
SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev),