Lines 1024-1029
Link Here
|
1024 |
{ |
1024 |
{ |
1025 |
struct wpi_rx_ring *ring = &sc->rxq; |
1025 |
struct wpi_rx_ring *ring = &sc->rxq; |
1026 |
|
1026 |
|
|
|
1027 |
if (ring->update != 0) { |
1028 |
/* Wait for INT_WAKEUP event. */ |
1029 |
return; |
1030 |
} |
1031 |
|
1027 |
if (WPI_READ(sc, WPI_UCODE_GP1) & WPI_UCODE_GP1_MAC_SLEEP) { |
1032 |
if (WPI_READ(sc, WPI_UCODE_GP1) & WPI_UCODE_GP1_MAC_SLEEP) { |
1028 |
DPRINTF(sc, WPI_DEBUG_PWRSAVE, "%s: wakeup request\n", |
1033 |
DPRINTF(sc, WPI_DEBUG_PWRSAVE, "%s: wakeup request\n", |
1029 |
__func__); |
1034 |
__func__); |
Lines 1179-1184
Link Here
|
1179 |
static void |
1184 |
static void |
1180 |
wpi_update_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring) |
1185 |
wpi_update_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring) |
1181 |
{ |
1186 |
{ |
|
|
1187 |
if (ring->update != 0) { |
1188 |
/* Wait for INT_WAKEUP event. */ |
1189 |
return; |
1190 |
} |
1191 |
|
1182 |
if (WPI_READ(sc, WPI_UCODE_GP1) & WPI_UCODE_GP1_MAC_SLEEP) { |
1192 |
if (WPI_READ(sc, WPI_UCODE_GP1) & WPI_UCODE_GP1_MAC_SLEEP) { |
1183 |
DPRINTF(sc, WPI_DEBUG_PWRSAVE, "%s (%d): requesting wakeup\n", |
1193 |
DPRINTF(sc, WPI_DEBUG_PWRSAVE, "%s (%d): requesting wakeup\n", |
1184 |
__func__, ring->qid); |
1194 |
__func__, ring->qid); |