]> 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)
commitc59bbd73a321296b98bac60e3ab00e69acc97cc4
tree3aab54e60b54d9dcf3daab229c2c3c041e7eb119
parent19db9b47166c9a1998f7f245c1b0a295fc58761c
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: 5a376419b55d ("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