Skip to contentSkip to conversation

staging: wilc1000: Fix warning usleep_range() shouldn't use min ==max args.

PATCH In review Rakhi Sharma 2 participants 3 messages Feb 27, 2016 – Mar 2, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: wilc1000: Fix warning usleep_range() shouldn't use min ==max args.

As usleep_range should not use min == max args.This patch fixes checkpatch
warning: usleep_range should not use min == max args; see Documentation/timers/timers-howto.txt.
Choose to increment max by 100, as done in commit here
https://patches.linaro.org/patch/11284/.

---
Changes in v2:
update in commit message.

 drivers/staging/wilc1000/wilc_wlan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wilc1000/wilc_wlan.c +2 -2
index 83af51b..8d6a457 100644
@@ -766,7 +766,7 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)
 				}
 				PRINT_WRN(GENERIC_DBG, "[wilc txq]: warn, vmm table not clear yet, wait...\n");
 				release_bus(wilc, RELEASE_ALLOW_SLEEP);
-				usleep_range(3000, 3000);
+				usleep_range(3000, 3100);
 				acquire_bus(wilc, ACQUIRE_AND_WAKEUP);
 			}
 		} while (!wilc->quit);
@@ -800,7 +800,7 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)
 					break;
 				} else {
 					release_bus(wilc, RELEASE_ALLOW_SLEEP);
-					usleep_range(3000, 3000);
+					usleep_range(3000, 3100);
 					acquire_bus(wilc, ACQUIRE_AND_WAKEUP);
 					PRINT_WRN(GENERIC_DBG, "Can't get VMM entery - reg = %2x\n", reg);
 				}
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 6 lines · Rakhi Sharma

As usleep_range should not use min == max args.This patch fixes checkpatch
warning: usleep_range should not use min == max args; see Documentation/timers/timers-howto.txt.
Choose to increment max by 100, as done in commit here
https://patches.linaro.org/patch/11284/.

Quoted 7 lines

---
Changes in v2:
update in commit message.

 drivers/staging/wilc1000/wilc_wlan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

This patch doesn't apply to my tree :(

maintainer
#2 lore raw
In reply to Rakhi Sharma
Quoted 6 lines · Rakhi Sharma

As usleep_range should not use min == max args.This patch fixes checkpatch
warning: usleep_range should not use min == max args; see Documentation/timers/timers-howto.txt.
Choose to increment max by 100, as done in commit here
https://patches.linaro.org/patch/11284/.

Quoted 7 lines

---
Changes in v2:
update in commit message.

 drivers/staging/wilc1000/wilc_wlan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

This patch doesn't apply to my tree :(