diff options
author | Stefan Wahren <stefan.wahren@in-tech.com> | 2019-11-20 18:29:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-20 12:42:23 -0800 |
commit | bc19c32904e36548335b35fdce6ce734e20afc0a (patch) | |
tree | 5b90a58df173934a501181240b04e32bb2836475 /drivers/net/ethernet/qualcomm/qca_spi.h | |
parent | 3e7e676c8196efbdedf6e12e895356f073f39abd (diff) | |
download | linux-bc19c32904e36548335b35fdce6ce734e20afc0a.tar.gz |
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.h | 1 |
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; |