Skip to content

Commit 03db448

Browse files
lategoodbyeZhengShunQian
authored andcommitted
net: qca_spi: Make sure the QCA7000 reset is triggered
[ Upstream commit 711c62d ] 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 <[email protected]> Fixes: ed7d42e ("net: qca_spi: fix transmit queue timeout handling") Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d2c81e0 commit 03db448

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/qualcomm/qca_spi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,9 @@ qcaspi_netdev_tx_timeout(struct net_device *dev)
739739
qca->net_dev->stats.tx_errors++;
740740
/* Trigger tx queue flush and QCA7000 reset */
741741
qca->sync = QCASPI_SYNC_UNKNOWN;
742+
743+
if (qca->spi_thread)
744+
wake_up_process(qca->spi_thread);
742745
}
743746

744747
static int

0 commit comments

Comments
 (0)