summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorShayne Chen <shayne.chen@mediatek.com>2021-04-21 10:39:45 +0200
committerFelix Fietkau <nbd@nbd.name>2021-04-21 20:55:55 +0200
commit422f351193401428d62035c3f5a933ed46967517 (patch)
tree98f1fe5f31b3f179dc108da19b9cfe51cd1794b9 /drivers/net/wireless
parentmt76: move token utilities in mt76 common module (diff)
downloadlinux-422f351193401428d62035c3f5a933ed46967517.tar.xz
linux-422f351193401428d62035c3f5a933ed46967517.zip
mt76: mt7915: do not read rf value from efuse in flash mode
Do not read rf value from efuse when driver is configured to use flash mode. Tested-by: Bruce Chuang <bruce-ss.chuang@mediatek.com> Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c b/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c
index 677c913c51b0..8ededf2e5279 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c
@@ -8,7 +8,7 @@ static u32 mt7915_eeprom_read(struct mt7915_dev *dev, u32 offset)
{
u8 *data = dev->mt76.eeprom.data;
- if (data[offset] == 0xff)
+ if (data[offset] == 0xff && !dev->flash_mode)
mt7915_mcu_get_eeprom(dev, offset);
return data[offset];