]> 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)
commitcc829a451c510fbd1a443bc54b4e09bb9cbb52f5
tree3c70b5d658daf2b02bfae32ba2190df0e9943653
parent8c4aaaf34309203630e7d7ce3ecaf54b9943a77e
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