net: qca_spi: Move reset_count to struct qcaspi
authorStefan Wahren <stefan.wahren@in-tech.com>
Wed, 20 Nov 2019 17:29:13 +0000 (18:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Nov 2019 20:42:23 +0000 (12:42 -0800)
commitbc19c32904e36548335b35fdce6ce734e20afc0a
tree5b90a58df173934a501181240b04e32bb2836475
parent3e7e676c8196efbdedf6e12e895356f073f39abd
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>
drivers/net/ethernet/qualcomm/qca_spi.c
drivers/net/ethernet/qualcomm/qca_spi.h