OSDN Git Service

net: qca_spi: Avoid high load if QCA7000 is not available
authorStefan Wahren <stefan.wahren@i2se.com>
Wed, 14 Jun 2023 21:06:56 +0000 (23:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jun 2023 08:37:25 +0000 (09:37 +0100)
commit92717c2356cb62c89e8a3dc37cbbab2502562524
tree7f023df6f4f93aa6344d8eb09427a89c77494974
parentc938ab4da0eb1620ae3243b0b24c572ddfc318fc
net: qca_spi: Avoid high load if QCA7000 is not available

In case the QCA7000 is not available via SPI (e.g. in reset),
the driver will cause a high load. The reason for this is
that the synchronization is never finished and schedule()
is never called. Since the synchronization is not timing
critical, it's safe to drop this from the scheduling condition.

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