mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt792x: add common USB transport reset helpers
Add per-device USB reset work and a control-path access check helper for mt7921u and mt7925u. This prepares common infrastructure for transport-level recovery while keeping the reset state per-device for correct lifetime handling. No functional change intended. Signed-off-by: Sean Wang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -195,6 +195,7 @@ static int mt7925u_probe(struct usb_interface *usb_intf,
|
||||
dev = container_of(mdev, struct mt792x_dev, mt76);
|
||||
dev->fw_features = features;
|
||||
dev->hif_ops = &hif_ops;
|
||||
mt792xu_reset_work_init(dev);
|
||||
|
||||
usb_reset_device(udev);
|
||||
|
||||
@@ -249,6 +250,7 @@ static int mt7925u_probe(struct usb_interface *usb_intf,
|
||||
|
||||
error:
|
||||
mt76u_queues_deinit(&dev->mt76);
|
||||
mt792xu_reset_work_cleanup(dev);
|
||||
|
||||
usb_set_intfdata(usb_intf, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user