wil6210: fix PCIe bus mastering in case of interface down
authorLazar Alexei <qca_ailizaro@qca.qualcomm.com>
Tue, 21 Apr 2020 12:40:11 +0000 (13:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Apr 2020 06:01:06 +0000 (08:01 +0200)
commit5ccc2c89e67c3311eb43c52c40388bfc48253ac5
treefadeb7ccfbf88ce2ebdb64821c52defca9c3fdf3
parentdeb1682b6f049bf5e6c496b1b2d45395ee971f32
wil6210: fix PCIe bus mastering in case of interface down

[ Upstream commit 680c242dc25e036265793edc7d755cfc15afd231 ]

In case of interface down, radio is turned off but PCIe mastering is
not cleared.
This can cause unexpected PCIe access to the shutdown device.
Fix this by clearing PCIe mastering also in case interface is down

Signed-off-by: Lazar Alexei <qca_ailizaro@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/wil6210/pcie_bus.c
drivers/net/wireless/ath/wil6210/pm.c
drivers/net/wireless/ath/wil6210/wil6210.h