Skip to content

Commit

Permalink
rtwn(4): do not try to start RTL8188E* MCU during device shutdown.
Browse files Browse the repository at this point in the history
MFC after:	4 days
  • Loading branch information
Andriy Voskoboinyk authored and Andriy Voskoboinyk committed Jan 2, 2019
1 parent 4e4bcfc commit 44c6878
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sys/dev/rtwn/rtl8188e/r88e_fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44c6878

Please sign in to comment.