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)
commited7d42e24effbd3681e909711a7a2119a85e9217
tree2b02654d73258d6284f3e0c67ce1a9849610681c
parentf8c0cfa5eca902d388c0b57c7ca29a1ff2e6d8c6
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: 291ab06ecf67 ("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