]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: mt76: mt7921e: Support MT7992 IP in Xiaomi Redmibook 15 Pro (2023)
authorIngo Rohloff <lundril@gmx.de>
Sat, 26 Aug 2023 20:02:41 +0000 (22:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:19:37 +0000 (17:19 +0000)
[ Upstream commit fce9c967820a72f600abbf061d7077861685a14d ]

In the Xiaomi Redmibook 15 Pro (2023) laptop I have got, a wifi chip is
used, which according to its PCI Vendor ID is from "ITTIM Technology".

This chip works flawlessly with the mt7921e module.  The driver doesn't
bind to this PCI device, because the Vendor ID from "ITTIM Technology" is
not recognized.

This patch adds the PCI Vendor ID from "ITTIM Technology" to the list of
PCI Vendor IDs and lets the mt7921e driver bind to the mentioned wifi
chip.

Signed-off-by: Ingo Rohloff <lundril@gmx.de>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7921/pci.c
include/linux/pci_ids.h

index 3dda84a937175d7037cf25d183c4869854257c09..f04e7095e18109a92608f0284868889a8857744a 100644 (file)
@@ -17,6 +17,8 @@ static const struct pci_device_id mt7921_pci_device_table[] = {
                .driver_data = (kernel_ulong_t)MT7921_FIRMWARE_WM },
        { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7922),
                .driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM },
+       { PCI_DEVICE(PCI_VENDOR_ID_ITTIM, 0x7922),
+               .driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM },
        { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x0608),
                .driver_data = (kernel_ulong_t)MT7921_FIRMWARE_WM },
        { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x0616),
index 3a8e24e9a93f90194ef5f94a7236ade8a2621e6f..fe4a3589bb3fdae60fafb782a427fcb5c49e9346 100644 (file)
 #define PCI_DEVICE_ID_BERKOM_A4T               0xffa4
 #define PCI_DEVICE_ID_BERKOM_SCITEL_QUADRO     0xffa8
 
+#define PCI_VENDOR_ID_ITTIM            0x0b48
+
 #define PCI_VENDOR_ID_COMPAQ           0x0e11
 #define PCI_DEVICE_ID_COMPAQ_TOKENRING 0x0508
 #define PCI_DEVICE_ID_COMPAQ_TACHYON   0xa0fc