[PATCH] mt7996: trust eeprom data from nvmem for now

Bjørn Mork posted 1 patch 1 month, 1 week ago
mt7996/eeprom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] mt7996: trust eeprom data from nvmem for now
Posted by Bjørn Mork 1 month, 1 week ago
The iFEM/eFEM classification does not currently support some of the ADIE
combinations in use by vendors. Trust nvmem provided data instead of
falling back to wrong defaults.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
---
 mt7996/eeprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mt7996/eeprom.c b/mt7996/eeprom.c
index 8f60772913b4..3e7670a60fea 100644
--- a/mt7996/eeprom.c
+++ b/mt7996/eeprom.c
@@ -172,7 +172,7 @@ static int mt7996_eeprom_load(struct mt7996_dev *dev)
 
 	if (ret && !mt7996_check_eeprom(dev)) {
 		dev->flash_mode = true;
-		goto out;
+		return 0;
 	}
 
 	if (!dev->flash_mode) {
-- 
2.47.3