[ig4] Stop I2C controller after checking that it's kind of functional.

Obtained from:	DragonfliBSD (0b3eedb)
This commit is contained in:
wulf 2019-11-03 20:49:04 +00:00
parent 77a11f3455
commit 0aa789e4c9

View File

@ -605,6 +605,11 @@ ig4iic_attach(ig4iic_softc_t *sc)
error = ENXIO;
goto done;
}
if (set_controller(sc, 0)) {
device_printf(sc->dev, "controller error during attach-3\n");
error = ENXIO;
goto done;
}
error = bus_setup_intr(sc->dev, sc->intr_res, INTR_TYPE_MISC | INTR_MPSAFE,
NULL, ig4iic_intr, sc, &sc->intr_handle);
if (error) {