OSDN Git Service

net: qca_spi: Avoid packet drop during initial sync
authorStefan Wahren <stefan.wahren@i2se.com>
Wed, 18 Jul 2018 06:31:43 +0000 (08:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:27:00 +0000 (13:27 +0200)
commit8621e69878ba41ed24987a487eaf01a6505223c6
tree1e6fa50152a9a30fc48ab14afd7e2dd5cd05adbc
parent8cfe6f3afe83a2768563f718bb57c99ca249cf4c
net: qca_spi: Avoid packet drop during initial sync

[ Upstream commit b2bab426dc715de147f8039a3fccff27d795f4eb ]

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: 291ab06ecf67 ("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>
drivers/net/ethernet/qualcomm/qca_spi.c