diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_boot.c | 9 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 3 |
2 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_boot.c b/drivers/net/wireless/wl12xx/wl1271_boot.c index 4c22f25fd8f0..8228ef474a7e 100644 --- a/drivers/net/wireless/wl12xx/wl1271_boot.c +++ b/drivers/net/wireless/wl12xx/wl1271_boot.c | |||
@@ -100,8 +100,8 @@ static int wl1271_boot_upload_firmware_chunk(struct wl1271 *wl, void *buf, | |||
100 | 100 | ||
101 | wl1271_debug(DEBUG_BOOT, "starting firmware upload"); | 101 | wl1271_debug(DEBUG_BOOT, "starting firmware upload"); |
102 | 102 | ||
103 | wl1271_debug(DEBUG_BOOT, "fw_data_len %d chunk_size %d", fw_data_len, | 103 | wl1271_debug(DEBUG_BOOT, "fw_data_len %zd chunk_size %d", |
104 | CHUNK_SIZE); | 104 | fw_data_len, CHUNK_SIZE); |
105 | 105 | ||
106 | 106 | ||
107 | if ((fw_data_len % 4) != 0) { | 107 | if ((fw_data_len % 4) != 0) { |
@@ -147,7 +147,7 @@ static int wl1271_boot_upload_firmware_chunk(struct wl1271 *wl, void *buf, | |||
147 | /* 10.4 upload the last chunk */ | 147 | /* 10.4 upload the last chunk */ |
148 | addr = dest + chunk_num * CHUNK_SIZE; | 148 | addr = dest + chunk_num * CHUNK_SIZE; |
149 | p = buf + chunk_num * CHUNK_SIZE; | 149 | p = buf + chunk_num * CHUNK_SIZE; |
150 | wl1271_debug(DEBUG_BOOT, "uploading fw last chunk (%d B) 0x%p to 0x%x", | 150 | wl1271_debug(DEBUG_BOOT, "uploading fw last chunk (%zd B) 0x%p to 0x%x", |
151 | fw_data_len % CHUNK_SIZE, p, addr); | 151 | fw_data_len % CHUNK_SIZE, p, addr); |
152 | wl1271_spi_mem_write(wl, addr, p, fw_data_len % CHUNK_SIZE); | 152 | wl1271_spi_mem_write(wl, addr, p, fw_data_len % CHUNK_SIZE); |
153 | 153 | ||
@@ -275,7 +275,8 @@ static int wl1271_boot_upload_nvs(struct wl1271 *wl) | |||
275 | static void wl1271_boot_enable_interrupts(struct wl1271 *wl) | 275 | static void wl1271_boot_enable_interrupts(struct wl1271 *wl) |
276 | { | 276 | { |
277 | enable_irq(wl->irq); | 277 | enable_irq(wl->irq); |
278 | wl1271_reg_write32(wl, ACX_REG_INTERRUPT_MASK, ~(WL1271_INTR_MASK)); | 278 | wl1271_reg_write32(wl, ACX_REG_INTERRUPT_MASK, |
279 | WL1271_ACX_INTR_ALL & ~(WL1271_INTR_MASK)); | ||
279 | wl1271_reg_write32(wl, HI_CFG, HI_CFG_DEF_VAL); | 280 | wl1271_reg_write32(wl, HI_CFG, HI_CFG_DEF_VAL); |
280 | } | 281 | } |
281 | 282 | ||
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index 3bb45ced99ab..4102d590b798 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c | |||
@@ -181,7 +181,8 @@ static void wl1271_irq_work(struct work_struct *work) | |||
181 | } while (intr && --ctr); | 181 | } while (intr && --ctr); |
182 | 182 | ||
183 | out_sleep: | 183 | out_sleep: |
184 | wl1271_reg_write32(wl, ACX_REG_INTERRUPT_MASK, ~(WL1271_INTR_MASK)); | 184 | wl1271_reg_write32(wl, ACX_REG_INTERRUPT_MASK, |
185 | WL1271_ACX_INTR_ALL & ~(WL1271_INTR_MASK)); | ||
185 | wl1271_ps_elp_sleep(wl); | 186 | wl1271_ps_elp_sleep(wl); |
186 | 187 | ||
187 | out: | 188 | out: |