mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
[ig4] Stop I2C controller after checking that it's kind of functional.
Obtained from: DragonfliBSD (0b3eedb)
This commit is contained in:
parent
811ff4dd37
commit
edcf6a9f7a
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue