net: qca_spi: Introduce write register verification
authorStefan Wahren <stefan.wahren@i2se.com>
Mon, 24 Sep 2018 11:20:10 +0000 (13:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Sep 2018 19:26:06 +0000 (12:26 -0700)
commit48c1699ec298dd9fbcdcac4fd63ec6db2bd5cc84
tree3c70b5d658daf2b02bfae32ba2190df0e9943653
parent4128c0cfb1d74cb1fa2a2fb6824348b349d30f04
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>
drivers/net/ethernet/qualcomm/qca_7k.c
drivers/net/ethernet/qualcomm/qca_7k.h
drivers/net/ethernet/qualcomm/qca_debug.c
drivers/net/ethernet/qualcomm/qca_spi.c
drivers/net/ethernet/qualcomm/qca_spi.h