]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 6 Mar 2020 07:25:26 +0000 (02:25 -0500)
commit4093a6e6c417fcde7c7491f81c8463e970ecdf43
treeda1ea0692ab76a52dd8ccd453b22627b3b832634
parent5e5b3c48379df244ca5c299fec5c3446841e5760
net: qca_spi: Move reset_count to struct qcaspi

BugLink: https://bugs.launchpad.net/bugs/1864060
[ Upstream commit bc19c32904e36548335b35fdce6ce734e20afc0a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/qualcomm/qca_spi.c
drivers/net/ethernet/qualcomm/qca_spi.h