Skip to content

Commit

Permalink
net: qca_spi: Avoid packet drop during initial sync
Browse files Browse the repository at this point in the history
[ Upstream commit b2bab42 ]

As long as the synchronization with the QCA7000 isn't finished, we
cannot accept packets from the upper layers. So let the SPI thread
enable the TX queue after sync and avoid unwanted packet drop.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Fixes: 291ab06 ("net: qualcomm: new Ethernet over SPI driver for QCA7000")
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Stefan Wahren authored and Greg Kroah-Hartman committed Aug 28, 2018
1 parent 01c755b commit 1357eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/qualcomm/qca_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ qcaspi_netdev_open(struct net_device *dev)
return ret;
}

netif_start_queue(qca->net_dev);
/* SPI thread takes care of TX queue */

return 0;
}
Expand Down

0 comments on commit 1357eab

Please sign in to comment.