Skip to contentSkip to conversation

wifi: mt76: mt7921u: add MT7902 USB support

PATCH New Sean Wang 1 participant 1 message Apr 25

Subsystems (2)
lore
Share & tools
lore

Sean Wang

author
#0 lore raw

PATCH 1/1 wifi: mt76: mt7921u: add MT7902 USB support

From: Sean Wang <[email protected]>

Add the 0e8d:7902 USB ID and select the MT7902 WM firmware. Use the same USB queue mapping as mt7921/mt7925 so MT7902U can bind and probe through mt7921u driver.

---
 drivers/net/wireless/mediatek/mt76/mt7921/usb.c | 2 ++
 drivers/net/wireless/mediatek/mt76/usb.c        | 1 +
 2 files changed, 3 insertions(+)
drivers/net/wireless/mediatek/mt76/mt7921/usb.c +2 -0
index 17057e68bf21..d86969a096ac 100644
@@ -13,6 +13,8 @@
 #include "../mt76_connac2_mac.h"
 
 static const struct usb_device_id mt7921u_device_table[] = {
+	{ USB_DEVICE_AND_INTERFACE_INFO(0x0e8d, 0x7902, 0xff, 0xff, 0xff),
+		.driver_info = (kernel_ulong_t)MT7902_FIRMWARE_WM },
 	{ USB_DEVICE_AND_INTERFACE_INFO(0x0e8d, 0x7961, 0xff, 0xff, 0xff),
 		.driver_info = (kernel_ulong_t)MT7921_FIRMWARE_WM },
 	/* Comfast CF-952AX */
drivers/net/wireless/mediatek/mt76/usb.c +1 -0
index 632ae755c7a6..d16439416891 100644
@@ -925,6 +925,7 @@ mt76u_ac_to_hwq(struct mt76_dev *dev, struct mt76_queue *q, u8 qid)
 		q->ep = q->hw_idx + 1;
 		break;
 	}
+	case 0x7902:
 	case 0x7961:
 	case 0x7925:
 		q->hw_idx = mt76_ac_to_hwq(ac);

base-commit: e8c819df02436f2c2379766946735e1f06a7c923

Signature · 1 line
2.43.0