net: systemport: fix transmit locking scheme
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 5 Jun 2014 17:22:15 +0000 (10:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jun 2014 22:36:54 +0000 (15:36 -0700)
commitd8498088cf466483093c9a29121e3833e7923287
tree04e2c004671adb5d276b7c6d6f7d706b0f889c75
parent6934e79ed1221a38f20704bf52ed588a16985fc0
net: systemport: fix transmit locking scheme

Our transmit locking scheme did not account for the TX ring full
interrupt. If a TX ring full interrupt fires while we are attempting to
transmit, we will cause a deadlock to occur. Fix this by making sure
that we properly disable interrupts while acquiring the spinlock.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c