]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2474978bcd6b026a8d0bf230dfbad82d5c78aff5
tree3c70b5d658daf2b02bfae32ba2190df0e9943653
parent1a9c14b8039a01eabcd2ca3d0351e6aa67f685f9
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