From: Sathya Perla Date: Thu, 12 May 2011 19:32:16 +0000 (+0000) Subject: be2net: fix mbox polling for signal reception X-Git-Tag: MMI-PSA29.97-13-9~19691^2~99 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1dbf53a28262aa89ecbe653e8a9127c0baef9bc4;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git be2net: fix mbox polling for signal reception Sending mbox cmds require multiple steps of writing to the DB register and polling for an ack. Gettting interrupted in the middle by a signal breaks the mbox protocol. Use msleep() to not get interrupted. Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index d558b9088d7e..f2c90997fabd 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c @@ -298,8 +298,7 @@ static int be_mbox_db_ready_wait(struct be_adapter *adapter, void __iomem *db) return -1; } - set_current_state(TASK_INTERRUPTIBLE); - schedule_timeout(msecs_to_jiffies(1)); + msleep(1); msecs++; } while (true);