]> git.baikalelectronics.ru Git - kernel.git/commit
net: qca_spi: fix transmit queue timeout handling
authorStefan Wahren <stefan.wahren@i2se.com>
Fri, 4 Dec 2015 15:29:10 +0000 (16:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Dec 2015 17:02:24 +0000 (12:02 -0500)
commit0f01e4c9ff28e8687ce81ab2e606b1d6305976f0
tree2b02654d73258d6284f3e0c67ce1a9849610681c
parent13b88add29224acbc8367b782f13d1bb2d77e78f
net: qca_spi: fix transmit queue timeout handling

In case of a tx queue timeout every transmit is blocked until the
QCA7000 resets himself and triggers a sync which makes the driver
flushs the tx ring. So avoid this blocking situation by triggering
the sync immediately after the timeout. Waking the queue doesn't
make sense in this situation.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Fixes: a7a0fb77657e ("net: qualcomm: new Ethernet over SPI driver for QCA7000")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/qca_spi.c