diff options
author | Stefan Wahren <stefan.wahren@i2se.com> | 2018-11-08 16:38:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-09 06:41:01 +0300 |
commit | 026b907d58c48b2ff2a4c04a67bb5f71ebda1f2d (patch) | |
tree | 80acab764c725b1c4141bfadb838a3ac9cc8934a /drivers/net/ethernet/qualcomm/qca_debug.c | |
parent | 50254256f382c56bde87d970f3d0d02fdb76ec70 (diff) | |
download | linux-026b907d58c48b2ff2a4c04a67bb5f71ebda1f2d.tar.xz |
net: qca_spi: Add available buffer space verification
Interferences on the SPI line could distort the response of
available buffer space. So at least we should check that the
response doesn't exceed the maximum available buffer space.
In error case increase a new error counter and retry it later.
This behavior avoids buffer errors in the QCA7000, which
results in an unnecessary chip reset including packet loss.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm/qca_debug.c')
-rw-r--r-- | drivers/net/ethernet/qualcomm/qca_debug.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qualcomm/qca_debug.c b/drivers/net/ethernet/qualcomm/qca_debug.c index a9f1bc013364..1450f386bc65 100644 --- a/drivers/net/ethernet/qualcomm/qca_debug.c +++ b/drivers/net/ethernet/qualcomm/qca_debug.c @@ -61,6 +61,7 @@ static const char qcaspi_gstrings_stats[][ETH_GSTRING_LEN] = { "Transmit ring full", "SPI errors", "Write verify errors", + "Buffer available errors", }; #ifdef CONFIG_DEBUG_FS |