aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qualcomm/qca_7k.h
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@i2se.com>2018-09-24 13:20:10 +0200
committerDavid S. Miller <davem@davemloft.net>2018-09-24 12:26:06 -0700
commit48c1699ec298dd9fbcdcac4fd63ec6db2bd5cc84 (patch)
tree3c70b5d658daf2b02bfae32ba2190df0e9943653 /drivers/net/ethernet/qualcomm/qca_7k.h
parenttls: Fixed uninitialised vars warning (diff)
downloadlinux-dev-48c1699ec298dd9fbcdcac4fd63ec6db2bd5cc84.tar.xz
linux-dev-48c1699ec298dd9fbcdcac4fd63ec6db2bd5cc84.zip
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_7k.h')
-rw-r--r--drivers/net/ethernet/qualcomm/qca_7k.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qualcomm/qca_7k.h b/drivers/net/ethernet/qualcomm/qca_7k.h
index 27124c2bb77a..356de8ec5d48 100644
--- a/drivers/net/ethernet/qualcomm/qca_7k.h
+++ b/drivers/net/ethernet/qualcomm/qca_7k.h
@@ -66,6 +66,6 @@
void qcaspi_spi_error(struct qcaspi *qca);
int qcaspi_read_register(struct qcaspi *qca, u16 reg, u16 *result);
-int qcaspi_write_register(struct qcaspi *qca, u16 reg, u16 value);
+int qcaspi_write_register(struct qcaspi *qca, u16 reg, u16 value, int retry);
#endif /* _QCA_7K_H */