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

MFC after:	4 days
This commit is contained in:
Andriy Voskoboinyk 2019-01-02 05:37:30 +00:00
parent 4e4bcfcfb7
commit 44c68782f1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342679

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