]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commited4d81c4b3f28ccf624f11fd66f67aec5b58859c
tree3aab54e60b54d9dcf3daab229c2c3c041e7eb119
parent06b0d7fe7e5ff3ba4c7e265ef41135e8bcc232bb
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: 7a1bb49461b1 ("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