[iwm] Only for family 7000 power-down busmaster DMA clocks when stopping.
Taken-From: Linux iwlwifi Obtained from: DragonflyBSD commit 4c45994fcc77373ae2fb0901db15368c9731f641
This commit is contained in:
parent
99baf303e7
commit
d5722aae84
@ -1401,11 +1401,12 @@ iwm_stop_device(struct iwm_softc *sc)
|
||||
for (qid = 0; qid < nitems(sc->txq); qid++)
|
||||
iwm_reset_tx_ring(sc, &sc->txq[qid]);
|
||||
|
||||
/*
|
||||
* Power-down device's busmaster DMA clocks
|
||||
*/
|
||||
iwm_write_prph(sc, IWM_APMG_CLK_DIS_REG, IWM_APMG_CLK_VAL_DMA_CLK_RQT);
|
||||
DELAY(5);
|
||||
if (sc->cfg->device_family == IWM_DEVICE_FAMILY_7000) {
|
||||
/* Power-down device's busmaster DMA clocks */
|
||||
iwm_write_prph(sc, IWM_APMG_CLK_DIS_REG,
|
||||
IWM_APMG_CLK_VAL_DMA_CLK_RQT);
|
||||
DELAY(5);
|
||||
}
|
||||
|
||||
/* Make sure (redundant) we've released our request to stay awake */
|
||||
IWM_CLRBITS(sc, IWM_CSR_GP_CNTRL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user