Skip to content
Snippets Groups Projects
Commit e21b6e5a authored by Marcus Folkesson's avatar Marcus Folkesson Committed by Kalle Valo
Browse files

wilc1000: write value to WILC_INTR2_ENABLE register


Write the value instead of reading it twice.

Fixes: c5c77ba1 ("staging: wilc1000: Add SDIO/SPI 802.11 driver")
Signed-off-by: default avatarMarcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210224163706.519658-1-marcus.folkesson@gmail.com
parent f135a157
No related branches found
No related tags found
No related merge requests found
...@@ -947,7 +947,7 @@ static int wilc_sdio_sync_ext(struct wilc *wilc, int nint) ...@@ -947,7 +947,7 @@ static int wilc_sdio_sync_ext(struct wilc *wilc, int nint)
for (i = 0; (i < 3) && (nint > 0); i++, nint--) for (i = 0; (i < 3) && (nint > 0); i++, nint--)
reg |= BIT(i); reg |= BIT(i);
ret = wilc_sdio_read_reg(wilc, WILC_INTR2_ENABLE, &reg); ret = wilc_sdio_write_reg(wilc, WILC_INTR2_ENABLE, reg);
if (ret) { if (ret) {
dev_err(&func->dev, dev_err(&func->dev,
"Failed write reg (%08x)...\n", "Failed write reg (%08x)...\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment