]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mt76: mt7615: support loading EEPROM for MT7613BE
authorSander Vanheule <sander@svanheule.net>
Tue, 2 Feb 2021 08:59:53 +0000 (09:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:56:15 +0000 (10:56 +0200)
[ Upstream commit 858ebf446bee7d5077bd99488aae617908c3f4fe ]

EEPROM blobs for MT7613BE radios start with (little endian) 0x7663,
which is also the PCI device ID for this device. The EEPROM is required
for the radio to work at useful power levels, otherwise only the lowest
power level is available.

Suggested-by: Georgi Vlaev <georgi.vlaev@konsulko.com>
Tested-by: Stijn Segers <foss@volatilesystems.org>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c

index 2eab23898c77850795bedb72d6a6bcac52193175..6dbaaf95ee3859682e59c119c46d46fbabc001ab 100644 (file)
@@ -86,6 +86,7 @@ static int mt7615_check_eeprom(struct mt76_dev *dev)
        switch (val) {
        case 0x7615:
        case 0x7622:
+       case 0x7663:
                return 0;
        default:
                return -EINVAL;