diff options
author | Stefan Wahren <stefan.wahren@i2se.com> | 2018-09-24 13:20:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-24 12:26:06 -0700 |
commit | 48c1699ec298dd9fbcdcac4fd63ec6db2bd5cc84 (patch) | |
tree | 3c70b5d658daf2b02bfae32ba2190df0e9943653 /drivers/net/ethernet/qualcomm/qca_spi.h | |
parent | 4128c0cfb1d74cb1fa2a2fb6824348b349d30f04 (diff) |
net: qca_spi: Introduce write register verification
The SPI protocol for the QCA7000 doesn't have any fault detection.
In order to increase the drivers reliability in noisy environments,
we could implement a write verification inspired by the enc28j60.
This should avoid situations were the driver wrongly assumes the
receive interrupt is enabled and miss all incoming packets.
This function is disabled per default and can be controlled via module
parameter wr_verify.
Signed-off-by: Michael Heimpold <michael.heimpold@i2se.com>
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_spi.h')
-rw-r--r-- | drivers/net/ethernet/qualcomm/qca_spi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qualcomm/qca_spi.h b/drivers/net/ethernet/qualcomm/qca_spi.h index fc0e98726b36..2d2c49726492 100644 --- a/drivers/net/ethernet/qualcomm/qca_spi.h +++ b/drivers/net/ethernet/qualcomm/qca_spi.h @@ -73,6 +73,7 @@ struct qcaspi_stats { u64 write_buf_miss; u64 ring_full; u64 spi_err; + u64 write_verify_failed; }; struct qcaspi { |