OSDN Git Service

net: qca_spi: Avoid re-sync for single signature error
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 8 May 2021 12:36:34 +0000 (14:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 May 2021 21:29:18 +0000 (14:29 -0700)
commit6e03f3ff29c1b479cd10cab0d1c4530bafad601c
treebd2bd35ef9b44baa98f7d59f90721866ec712cfd
parentb76078df15935b54c353eb0461c95a6eaf73c7ca
net: qca_spi: Avoid re-sync for single signature error

Setting a new network key would cause a reset of the QCA7000. Usually
the driver only notice the SPI interrupt and a single signature error.
So avoid the whole re-sync process (possible packet loss, transmit queue
stop and no carrier for at least 1 second) in this case.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/qca_spi.c