Skip to contentSkip to conversation

wilc1000: write value to WILC_INTR2_ENABLE register

PATCH In review Marcus Folkesson 3 participants 7 messages Feb 24, 2021 – Mar 15, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wilc1000: write value to WILC_INTR2_ENABLE register

Write the value instead of reading it twice.

Fixes 5e63a598441a ("staging: wilc1000: added 'wilc_' prefix for function in wilc_sdio.c file")
---
 drivers/net/wireless/microchip/wilc1000/sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/microchip/wilc1000/sdio.c +1 -1
index 351ff909ab1c..e14b9fc2c67a 100644
@@ -947,7 +947,7 @@ static int wilc_sdio_sync_ext(struct wilc *wilc, int nint)
 			for (i = 0; (i < 3) && (nint > 0); i++, nint--)
 				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) {
 				dev_err(&func->dev,
 					"Failed write reg (%08x)...\n",
Signature · 1 line
2.30.0
#1 lore raw
Quoted 14 lines · Marcus Folkesson

Write the value instead of reading it twice.

Fixes 5e63a598441a ("staging: wilc1000: added 'wilc_' prefix for function in wilc_sdio.c file")
---
 drivers/net/wireless/microchip/wilc1000/sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/microchip/wilc1000/sdio.c +0 -0
index 351ff909ab1c..e14b9fc2c67a 100644

drivers/net/wireless/microchip/wilc1000/sdio.c static int wilc_sdio_sync_ext(struct wilc *wilc, int nint) · line 950

Quoted 5 lines
drivers/net/wireless/microchip/wilc1000/sdio.c +1 -1
@@ -947,7 +947,7 @@ static int wilc_sdio_sync_ext(struct wilc *wilc, int nint)
 			for (i = 0; (i < 3) && (nint > 0); i++, nint--)
 				reg |= BIT(i);
 
-			ret = wilc_sdio_read_reg(wilc, WILC_INTR2_ENABLE, &reg);
+			ret = wilc_sdio_write_reg(wilc, WILC_INTR2_ENABLE, reg);

To me it looks like the bug existed before commit 5e63a598441a:

- ret = sdio_read_reg(wilc, WILC_INTR2_ENABLE, &reg);
+ ret = wilc_sdio_read_reg(wilc, WILC_INTR2_ENABLE, &reg);

https://git.kernel.org/linus/5e63a598441a

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#2 lore raw
Quoted 21 lines · Kalle Valo

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 17 lines · Marcus Folkesson

Write the value instead of reading it twice.

Fixes 5e63a598441a ("staging: wilc1000: added 'wilc_' prefix for function in wilc_sdio.c file")
---
 drivers/net/wireless/microchip/wilc1000/sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/microchip/wilc1000/sdio.c +0 -0
index 351ff909ab1c..e14b9fc2c67a 100644
@@ -947,7 +947,7 @@ static int wilc_sdio_sync_ext(struct wilc *wilc, int nint)
                      for (i = 0; (i < 3) && (nint > 0); i++, nint--)
                              reg |= BIT(i);
 
Quoted 4 lines

drivers/net/wireless/microchip/wilc1000/sdio.c static int wilc_sdio_sync_ext(struct wilc *wilc, int nint) · line 950

Quoted 2 lines
drivers/net/wireless/microchip/wilc1000/sdio.c +1 -1
-                     ret = wilc_sdio_read_reg(wilc, WILC_INTR2_ENABLE, &reg);
+                     ret = wilc_sdio_write_reg(wilc, WILC_INTR2_ENABLE, reg);

To me it looks like the bug existed before commit 5e63a598441a:

Yes, you are correct. The bug existed from commit c5c77ba18ea6:

https://git.kernel.org/linus/c5c77ba18ea6

Regards,
Ajay

Quoted 11 lines
(quoted diff) +1 -1
-                       ret = sdio_read_reg(wilc, WILC_INTR2_ENABLE, &reg);
+                       ret = wilc_sdio_read_reg(wilc, WILC_INTR2_ENABLE, &reg);

https://git.kernel.org/linus/5e63a598441a

--
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

#3 lore raw
Quoted 29 lines · <[email protected]> writes:
Quoted 22 lines · Kalle Valo

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 17 lines · Marcus Folkesson

Write the value instead of reading it twice.

Fixes 5e63a598441a ("staging: wilc1000: added 'wilc_' prefix for function in wilc_sdio.c file")
---
 drivers/net/wireless/microchip/wilc1000/sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/microchip/wilc1000/sdio.c +0 -0
index 351ff909ab1c..e14b9fc2c67a 100644
@@ -947,7 +947,7 @@ static int wilc_sdio_sync_ext(struct wilc *wilc, int nint)
                      for (i = 0; (i < 3) && (nint > 0); i++, nint--)
                              reg |= BIT(i);
 
Quoted 4 lines

drivers/net/wireless/microchip/wilc1000/sdio.c static int wilc_sdio_sync_ext(struct wilc *wilc, int nint) · line 950

Quoted 2 lines
drivers/net/wireless/microchip/wilc1000/sdio.c +1 -1
-                     ret = wilc_sdio_read_reg(wilc, WILC_INTR2_ENABLE, &reg);
+                     ret = wilc_sdio_write_reg(wilc, WILC_INTR2_ENABLE, reg);

To me it looks like the bug existed before commit 5e63a598441a:

Quoted 3 lines

Yes, you are correct. The bug existed from commit c5c77ba18ea6:

https://git.kernel.org/linus/c5c77ba18ea6

So the fixes tag should be:

Fixes c5c77ba18ea6 ("staging: wilc1000: Add SDIO/SPI 802.11 driver")

I can change that during commit, ok?

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#4 lore raw
Quoted 35 lines · Kalle Valo

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 31 lines · <[email protected]> writes:
Quoted 22 lines · Kalle Valo

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 17 lines · Marcus Folkesson

Write the value instead of reading it twice.

Fixes 5e63a598441a ("staging: wilc1000: added 'wilc_' prefix for function in wilc_sdio.c file")
---
 drivers/net/wireless/microchip/wilc1000/sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/microchip/wilc1000/sdio.c +0 -0
index 351ff909ab1c..e14b9fc2c67a 100644
@@ -947,7 +947,7 @@ static int wilc_sdio_sync_ext(struct wilc *wilc, int nint)
                      for (i = 0; (i < 3) && (nint > 0); i++, nint--)
                              reg |= BIT(i);
 
Quoted 4 lines

drivers/net/wireless/microchip/wilc1000/sdio.c static int wilc_sdio_sync_ext(struct wilc *wilc, int nint) · line 950

Quoted 2 lines
drivers/net/wireless/microchip/wilc1000/sdio.c +1 -1
-                     ret = wilc_sdio_read_reg(wilc, WILC_INTR2_ENABLE, &reg);
+                     ret = wilc_sdio_write_reg(wilc, WILC_INTR2_ENABLE, reg);

To me it looks like the bug existed before commit 5e63a598441a:

Yes, you are correct. The bug existed from commit c5c77ba18ea6:

Quoted 7 lines
Quoted 1 line

https://git.kernel.org/linus/c5c77ba18ea6

So the fixes tag should be:

Fixes c5c77ba18ea6 ("staging: wilc1000: Add SDIO/SPI 802.11 driver")

I can change that during commit, ok?

Yes. Thanks.

Regards,
Ajay

#5 lore raw
In reply to Kalle Valo

Hi,

Quoted 31 lines · Kalle Valo
Quoted 29 lines · <[email protected]> writes:
Quoted 26 lines · Kalle Valo

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 14 lines · Marcus Folkesson

Write the value instead of reading it twice.

Fixes 5e63a598441a ("staging: wilc1000: added 'wilc_' prefix for function in wilc_sdio.c file")
---
 drivers/net/wireless/microchip/wilc1000/sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/microchip/wilc1000/sdio.c +0 -0
index 351ff909ab1c..e14b9fc2c67a 100644

drivers/net/wireless/microchip/wilc1000/sdio.c static int wilc_sdio_sync_ext(struct wilc *wilc, int nint) · line 950

Quoted 5 lines
drivers/net/wireless/microchip/wilc1000/sdio.c +1 -1
@@ -947,7 +947,7 @@ static int wilc_sdio_sync_ext(struct wilc *wilc, int nint)
                      for (i = 0; (i < 3) && (nint > 0); i++, nint--)
                              reg |= BIT(i);
 
-                     ret = wilc_sdio_read_reg(wilc, WILC_INTR2_ENABLE, &reg);
+                     ret = wilc_sdio_write_reg(wilc, WILC_INTR2_ENABLE, reg);

To me it looks like the bug existed before commit 5e63a598441a:

Quoted 7 lines
Quoted 3 lines

Yes, you are correct. The bug existed from commit c5c77ba18ea6:

https://git.kernel.org/linus/c5c77ba18ea6

So the fixes tag should be:

Fixes c5c77ba18ea6 ("staging: wilc1000: Add SDIO/SPI 802.11 driver")

You are right.

Quoted 2 lines

I can change that during commit, ok?

Please do, thanks!

Quoted 5 lines
Signature · 4 lines
-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

Best regards
Marcus Folkesson

#6 lore raw
In reply to Marcus Folkesson
Quoted 4 lines · Marcus Folkesson

Write the value instead of reading it twice.

Fixes c5c77ba18ea6 ("staging: wilc1000: Add SDIO/SPI 802.11 driver")

Patch applied to wireless-drivers-next.git, thanks.

e21b6e5a5462 wilc1000: write value to WILC_INTR2_ENABLE register

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches