mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
[iwm] Fix iwm_poll_bit() usage in iwm_stop_device(), fixup r303418.
* iwm_poll_bit() returns 1 on success and 0 on failure, whereas iwl_poll_bit() in Linux's iwlwifi returns >= 0 on success and < 0 on failure. * Because of the wrong iwm_poll_bit return code check, no warning was printed if tx DMA stopping failed. Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D7371
This commit is contained in:
parent
aafbb33897
commit
a3c0e7f2fb
1 changed files with 2 additions and 2 deletions
|
|
@ -1310,8 +1310,8 @@ iwm_stop_device(struct iwm_softc *sc)
|
|||
}
|
||||
|
||||
/* Wait for DMA channels to be idle */
|
||||
if (iwm_poll_bit(sc, IWM_FH_TSSR_TX_STATUS_REG, mask, mask,
|
||||
5000) < 0) {
|
||||
if (!iwm_poll_bit(sc, IWM_FH_TSSR_TX_STATUS_REG, mask, mask,
|
||||
5000)) {
|
||||
device_printf(sc->sc_dev,
|
||||
"Failing on timeout while stopping DMA channel: [0x%08x]\n",
|
||||
IWM_READ(sc, IWM_FH_TSSR_TX_STATUS_REG));
|
||||
|
|
|
|||
Loading…
Reference in a new issue