aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qualcomm/qca_spi.h
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@in-tech.com>2019-11-20 18:29:13 +0100
committerDavid S. Miller <davem@davemloft.net>2019-11-20 12:42:23 -0800
commitbc19c32904e36548335b35fdce6ce734e20afc0a (patch)
tree5b90a58df173934a501181240b04e32bb2836475 /drivers/net/ethernet/qualcomm/qca_spi.h
parentnet: qca_spi: fix receive buffer size check (diff)
downloadlinux-dev-bc19c32904e36548335b35fdce6ce734e20afc0a.tar.xz
linux-dev-bc19c32904e36548335b35fdce6ce734e20afc0a.zip
net: qca_spi: Move reset_count to struct qcaspi
The reset counter is specific for every QCA700x chip. So move this into the private driver struct. Otherwise we get unpredictable reset behavior in setups with multiple QCA700x chips. Fixes: 291ab06ecf67 (net: qualcomm: new Ethernet over SPI driver for QCA7000) Signed-off-by: Stefan Wahren <stefan.wahren@in-tech.com> Signed-off-by: Stefan Wahren <wahrenst@gmx.net> 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.h1
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 eb9af45fcc5e..d13a67e20d65 100644
--- a/drivers/net/ethernet/qualcomm/qca_spi.h
+++ b/drivers/net/ethernet/qualcomm/qca_spi.h
@@ -94,6 +94,7 @@ struct qcaspi {
unsigned int intr_req;
unsigned int intr_svc;
+ u16 reset_count;
#ifdef CONFIG_DEBUG_FS
struct dentry *device_root;