Skip to content

Commit 2a437cd

Browse files
bwallantorvalds
authored andcommitted
e1000e: fix scheduling while atomic bug
A scheduling while atomic bug was introduced recently (by commit ce43a21: "e1000e: cleanup USLEEP_RANGE checkpatch checks"). Revert the particular instance of usleep_range() which causes the bug. Reported-by: Maarten Lankhorst <m.b.lankhorst@gmail.com> Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 51a26ae commit 2a437cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/ethernet/intel/e1000e

‎drivers/net/ethernet/intel/e1000e/e1000.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ static inline s32 __ew32_prepare(struct e1000_hw *hw)
600600
s32 i = E1000_ICH_FWSM_PCIM2PCI_COUNT;
601601

602602
while ((er32(FWSM) & E1000_ICH_FWSM_PCIM2PCI) && --i)
603-
usleep_range(50, 100);
603+
udelay(50);
604604

605605
return i;
606606
}

0 commit comments

Comments
 (0)