mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
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>
This commit is contained in:
parent
d089692bc7
commit
422f351193
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user