[PATCH ath-next 2/6] wifi: ath10k: usb: set soft_unbind
Tomas Paukrt
tomaspaukrt at email.cz
Sat Nov 14 01:07:33 PST 2026
The USB core disables the endpoints of an interface before it calls the
disconnect callback, unless the driver sets soft_unbind. ath10k still
sends WMI commands at that time, because mac80211 removes the interfaces
during the unregistration, and these commands fail when the driver is
unloaded:
usb 1-1.1: failed to delete WMI vdev 0: -22
usb 1-1.1: could not suspend target (-22)
Set soft_unbind to keep the endpoints enabled until the disconnect
callback returns.
Tested-on: QCA9377 hw1.1 USB 0.0.0.111
Signed-off-by: Tomas Paukrt <tomaspaukrt at email.cz>
---
drivers/net/wireless/ath/ath10k/usb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/ath/ath10k/usb.c b/drivers/net/wireless/ath/ath10k/usb.c
index 987d57a01ddf..c1ba30a1437d 100644
--- a/drivers/net/wireless/ath/ath10k/usb.c
+++ b/drivers/net/wireless/ath/ath10k/usb.c
@@ -1116,6 +1116,7 @@ static struct usb_driver ath10k_usb_driver = {
.disconnect = ath10k_usb_disconnect,
.id_table = ath10k_usb_ids,
.supports_autosuspend = true,
+ .soft_unbind = 1,
.disable_hub_initiated_lpm = 1,
};
--
2.43.0
More information about the ath10k
mailing list