]> git.baikalelectronics.ru Git - kernel.git/commit
net: aquantia: when cleaning hw cache it should be toggled
authorIgor Russkikh <Igor.Russkikh@aquantia.com>
Fri, 11 Oct 2019 13:45:20 +0000 (13:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Oct 2019 00:01:53 +0000 (17:01 -0700)
commit240d371f96eab3ae9638ce1a10d0caa2e304090a
tree3aab54e60b54d9dcf3daab229c2c3c041e7eb119
parent166440abc8a34a58367c78fda40772277501f657
net: aquantia: when cleaning hw cache it should be toggled

>From HW specification to correctly reset HW caches (this is a required
workaround when stopping the device), register bit should actually
be toggled.

It was previosly always just set. Due to the way driver stops HW this
never actually caused any issues, but it still may, so cleaning this up.

Fixes: 66b922304e73 ("net: aquantia: fix potential IOMMU fault after driver unbind")
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_b0.c
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.c
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.h
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_llh_internal.h