mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
wilc1000: write value to WILC_INTR2_ENABLE register
[ Upstream commite21b6e5a54] Write the value instead of reading it twice. Fixes:c5c77ba18e("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: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
0d74db1457
commit
cd6e679b8d
|
|
@ -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, ®);
|
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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user