net: bcmgenet: Avoid sleeping in bcmgenet_timeout
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 21 Aug 2015 01:04:22 +0000 (18:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Aug 2015 05:59:33 +0000 (22:59 -0700)
commiteed635699abaacebc9b19a2f9de9ddc688c390c2
tree87b7041c7624188787eceed3aa401caef71eb36c
parentc953e23936f902c7719166327e3113639105c981
net: bcmgenet: Avoid sleeping in bcmgenet_timeout

bcmgenet_timeout() executes in atomic context, yet we will invoke
napi_disable() which does sleep. Looking back at the changes, disabling
TX napi and re-enabling it is completely useless, since we reclaim all
TX buffers and re-enable interrupts, and wake up the TX queues.

Fixes: 13ea657806cf ("net: bcmgenet: improve TX timeout")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c