Skip to content

Commit 4330b53

Browse files
XidianGeneralKalle Valo
authored andcommitted
b43: Replace mdelay with usleep_range in b43_radio_2057_init_post
b43_radio_2057_init_post is not called in an interrupt handler nor holding a spinlock. The function mdelay in it can be replaced with usleep_range, to reduce busy wait. Signed-off-by: Jia-Ju Bai <[email protected]> Acked-by: Larry Finger <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent b7acada commit 4330b53

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/broadcom/b43

1 file changed

+1
-1
lines changed

drivers/net/wireless/broadcom/b43/phy_n.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ static void b43_radio_2057_init_post(struct b43_wldev *dev)
10311031

10321032
b43_radio_set(dev, R2057_RFPLL_MISC_CAL_RESETN, 0x78);
10331033
b43_radio_set(dev, R2057_XTAL_CONFIG2, 0x80);
1034-
mdelay(2);
1034+
usleep_range(2000, 3000);
10351035
b43_radio_mask(dev, R2057_RFPLL_MISC_CAL_RESETN, ~0x78);
10361036
b43_radio_mask(dev, R2057_XTAL_CONFIG2, ~0x80);
10371037

0 commit comments

Comments
 (0)