mt76: mt7603: add additional EEPROM chip ID
authorDavid Bauer <mail@david-bauer.net>
Tue, 13 Oct 2020 14:23:26 +0000 (16:23 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 4 Dec 2020 13:31:11 +0000 (14:31 +0100)
Some newer MT7628 based routers (notably the TP-Link Archer C50 v4) are
shipped with a chip-id of 0x7600 in the on-flash EEPROM. Add this as a
possible valid ID.

Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2781

Suggested-by: Ron Asimi <ron.asimi@gmail.com>
Signed-off-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c

index 01f1e0d..9d5042a 100644 (file)
@@ -141,6 +141,7 @@ static int mt7603_check_eeprom(struct mt76_dev *dev)
        switch (val) {
        case 0x7628:
        case 0x7603:
+       case 0x7600:
                return 0;
        default:
                return -EINVAL;