]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 22:19:08 +0000 (15:19 -0700)
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>
drivers/net/ethernet/qualcomm/qca_spi.c

index 5803cd6db406c7f9c5426ceb87bf062d4f0434fb..7db149f90fe3ad9f50e9cd1351777d8596cff62d 100644 (file)
@@ -658,7 +658,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;
 }