igbvf: convert msleep to mdelay in atomic context
Subsystems (2)
PATCH 1/1 igbvf: convert msleep to mdelay in atomic context
This fixes a "scheduling while atomic" splat seen with CONFIG_DEBUG_ATOMIC_SLEEP enabled.
Signed-off-by Greg Edwards <[email protected]>
--- drivers/net/ethernet/intel/igbvf/vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/igbvf/vf.c +1 -1
@@ -149,7 +149,7 @@ static s32 e1000_reset_hw_vf(struct e1000_hw *hw) msgbuf[0 ] =E1000_VF_RESET ; mbx->ops.write_posted (hw, msgbuf,1 ); -msleep (10 ); +mdelay (10 );/* set our "perm_addr" based on info provided by PF */ ret_val = mbx->ops.read_posted (hw, msgbuf,3 );
Signature · 1 line
2.13.3
Brown
PATCH 1/1 igbvf: convert msleep to mdelay in atomic context
Quoted 8 lines
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On Behalf Of Greg Edwards
Sent: Thursday, July 20, 2017 9:15 AM
To: intel-wired-lan at lists.osuosl.org
Cc: Greg Edwards <[email protected]>
Subject: [Intel-wired-lan] [PATCH] igbvf: convert msleep to mdelay in atomic context
Quoted 8 lines
This fixes a "scheduling while atomic" splat seen with
CONFIG_DEBUG_ATOMIC_SLEEPenabled.Signed-off-by Greg Edwards <[email protected]>--- drivers/net/ethernet/intel/igbvf/vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This could be considered a 3 of 3 for the 2 mbox related igbvf patches I just replied to as those introduce a call trace on driver load which this resolves.
Tested-by Aaron Brown <[email protected]>