From e21b6e5a54628cd3935f200049d4430c25c54e03 Mon Sep 17 00:00:00 2001
From: Marcus Folkesson <marcus.folkesson@gmail.com>
Date: Wed, 24 Feb 2021 17:37:06 +0100
Subject: [PATCH] wilc1000: write value to WILC_INTR2_ENABLE register
Git-commit: e21b6e5a54628cd3935f200049d4430c25c54e03
References: git-fixes
Patch-mainline: v5.13-rc1
Write the value instead of reading it twice.
Fixes: c5c77ba18ea6 ("staging: wilc1000: Add SDIO/SPI 802.11 driver")
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210224163706.519658-1-marcus.folkesson@gmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
drivers/staging/wilc1000/wilc_sdio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/staging/wilc1000/wilc_sdio.c
+++ b/drivers/staging/wilc1000/wilc_sdio.c
@@ -1064,7 +1064,7 @@ static int wilc_sdio_sync_ext(struct wil
for (i = 0; (i < 3) && (nint > 0); i++, nint--)
reg |= BIT(i);
- ret = wilc_sdio_read_reg(wilc, WILC_INTR2_ENABLE, ®);
+ ret = wilc_sdio_write_reg(wilc, WILC_INTR2_ENABLE, reg);
if (!ret) {
dev_err(&func->dev,
"Failed write reg (%08x)...\n",