net: aquantia: Fix hardware reset when SPI may rarely hangup
authorIgor Russkikh <igor.russkikh@aquantia.com>
Tue, 20 Mar 2018 11:40:31 +0000 (14:40 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 16:02:48 +0000 (12:02 -0400)
commit1bf9a7520fadaebfb8891284b046dd3fa6a2dc32
tree13d30099399ea9f345c9a3a5dff5628a50e23a8d
parent1959031e248e7ac9035401db3abad609c72c629d
net: aquantia: Fix hardware reset when SPI may rarely hangup

Under some circumstances (notably using thunderbolt interface) SPI
on chip reset may be in active transaction.
Here we forcibly cleanup SPI to prevent possible hangups.

Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c