rtwn(4): do not try to start RTL8188E* MCU during device shutdown.

MFC after:	4 days
This commit is contained in:
avos 2019-01-02 05:37:30 +00:00
parent 6dd389770b
commit 9766171a7e

View File

@ -109,7 +109,11 @@ r88e_fw_reset(struct rtwn_softc *sc, int reason)
reg = rtwn_read_2(sc, R92C_SYS_FUNC_EN);
rtwn_write_2(sc, R92C_SYS_FUNC_EN, reg & ~R92C_SYS_FUNC_EN_CPUEN);
rtwn_write_2(sc, R92C_SYS_FUNC_EN, reg | R92C_SYS_FUNC_EN_CPUEN);
if (reason != RTWN_FW_RESET_SHUTDOWN) {
rtwn_write_2(sc, R92C_SYS_FUNC_EN,
reg | R92C_SYS_FUNC_EN_CPUEN);
}
}
void