]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5062c51a8ee2b84c76e8fbba946eb860dea9dd7
treece81ef5a1630b62d79dfb362c1a638ecce17c90b
parente717625f2c891ca7eaf7b180d056e73089de9c54
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