From: Bruce Allan Date: Tue, 7 May 2013 05:52:47 +0000 (-0700) Subject: e1000e: fix scheduling while atomic bug X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2a437cd36e627752e9cac71bfec6293f1e4e4144;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git e1000e: fix scheduling while atomic bug A scheduling while atomic bug was introduced recently (by commit ce43a2168c59: "e1000e: cleanup USLEEP_RANGE checkpatch checks"). Revert the particular instance of usleep_range() which causes the bug. Reported-by: Maarten Lankhorst Signed-off-by: Bruce Allan Signed-off-by: Jeff Kirsher Acked-by: David S. Miller Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/ethernet/intel/e1000e/e1000.h b/drivers/net/ethernet/intel/e1000e/e1000.h index 82f1c84282d..ffbc08f56c4 100644 --- a/drivers/net/ethernet/intel/e1000e/e1000.h +++ b/drivers/net/ethernet/intel/e1000e/e1000.h @@ -600,7 +600,7 @@ static inline s32 __ew32_prepare(struct e1000_hw *hw) s32 i = E1000_ICH_FWSM_PCIM2PCI_COUNT; while ((er32(FWSM) & E1000_ICH_FWSM_PCIM2PCI) && --i) - usleep_range(50, 100); + udelay(50); return i; }