mt76: eeprom: add support for big endian eeprom partition
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 27 Nov 2019 14:46:33 +0000 (16:46 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:06:00 +0000 (10:06 +0100)
commitb3c6d6388b512e947dfa6c244af5d8f54b37cf65
treece81ef5a1630b62d79dfb362c1a638ecce17c90b
parent00c29ab2f67105444b50cea59b68cf716e27cedc
mt76: eeprom: add support for big endian eeprom partition

mt76x0e users reported some devices (e.g TP-Link Archer VR200v) have
been flashed with big endian radio partition. Add the possibility to
specify eeprom endianness using big-endian dts property and in case
covert eeprom data in little endian

Tested-by: Kevin Schmidt <kevin.patrick.schmidt@googlemail.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/eeprom.c