diff options
author | Stefan Wahren <stefan.wahren@i2se.com> | 2018-07-18 08:31:44 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-18 15:19:08 -0700 |
commit | 711c62dfa6bdb4326ca6c587f295ea5c4f7269de (patch) | |
tree | ad148d12e6286a897cde383930b9c1cfbb21a3de /drivers | |
parent | b2bab426dc715de147f8039a3fccff27d795f4eb (diff) | |
download | linux-stable-711c62dfa6bdb4326ca6c587f295ea5c4f7269de.tar.gz linux-stable-711c62dfa6bdb4326ca6c587f295ea5c4f7269de.tar.bz2 linux-stable-711c62dfa6bdb4326ca6c587f295ea5c4f7269de.zip |
net: qca_spi: Make sure the QCA7000 reset is triggered
In case the SPI thread is not running, a simple reset of sync
state won't fix the transmit timeout. We also need to wake up the kernel
thread.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Fixes: ed7d42e24eff ("net: qca_spi: fix transmit queue timeout handling")
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/qualcomm/qca_spi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qualcomm/qca_spi.c b/drivers/net/ethernet/qualcomm/qca_spi.c index 7db149f90fe3..7fa815d189ab 100644 --- a/drivers/net/ethernet/qualcomm/qca_spi.c +++ b/drivers/net/ethernet/qualcomm/qca_spi.c @@ -760,6 +760,9 @@ qcaspi_netdev_tx_timeout(struct net_device *dev) qca->net_dev->stats.tx_errors++; /* Trigger tx queue flush and QCA7000 reset */ qca->sync = QCASPI_SYNC_UNKNOWN; + + if (qca->spi_thread) + wake_up_process(qca->spi_thread); } static int |