]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ath11k: Fix napi related hang
authorBen Greear <greearb@candelatech.com>
Thu, 3 Sep 2020 19:52:54 +0000 (12:52 -0700)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 10:02:49 +0000 (11:02 +0100)
commitdcd69d454b625bb9759d2c4d1a284ac7340699d7
treebac062236a84c1d0dfe228bc115d9f2fb0daaa71
parent901e7b9f205790fdc1f1a553c8c9db169dfd140f
ath11k: Fix napi related hang

BugLink: https://bugs.launchpad.net/bugs/1959376
[ Upstream commit d943fdad7589653065be0e20aadc6dff37725ed4 ]

Similar to the same bug in ath10k, a napi disable w/out it being enabled
will hang forever.  I believe I saw this while trying rmmod after driver
had some failure on startup.  Fix it by keeping state on whether napi is
enabled or not.

And, remove un-used napi pointer in ath11k driver base struct.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20200903195254.29379-1-greearb@candelatech.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/wireless/ath/ath11k/ahb.c
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/pci.c