diff options
author | Radosław Chmielarz <radoslaw.chmielarz@emersi.eu> | 2021-06-06 20:42:10 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2021-06-14 20:25:14 +0000 |
commit | 67b7e2de4fc5dc1165feee8ca281c44444425d0f (patch) | |
tree | 19f5cd422bd417dbe9316ed08f57cda5d3a6c91e /sys/dev/iwn/if_iwn.c | |
parent | 09e47586d72f4940eea1e70df706dbc165ad0415 (diff) |
iwn: adjust EEPROM read timeout for Intel 4965AGN M2
Reading EEPROM from Intel 4965AGN M2 takes 60 us which was causing panic
on system startup.
PR: 255465
Reviewed by: markj
(cherry picked from commit 03d4b58feee396d392668f192ecdde08ecc8036c)
Diffstat (limited to 'sys/dev/iwn/if_iwn.c')
-rw-r--r-- | sys/dev/iwn/if_iwn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/iwn/if_iwn.c b/sys/dev/iwn/if_iwn.c index 2121a15bad6e..334ba644e04b 100644 --- a/sys/dev/iwn/if_iwn.c +++ b/sys/dev/iwn/if_iwn.c @@ -1688,13 +1688,13 @@ iwn_read_prom_data(struct iwn_softc *sc, uint32_t addr, void *data, int count) addr += sc->prom_base; for (; count > 0; count -= 2, addr++) { IWN_WRITE(sc, IWN_EEPROM, addr << 2); - for (ntries = 0; ntries < 10; ntries++) { + for (ntries = 0; ntries < 20; ntries++) { val = IWN_READ(sc, IWN_EEPROM); if (val & IWN_EEPROM_READ_VALID) break; DELAY(5); } - if (ntries == 10) { + if (ntries == 20) { device_printf(sc->sc_dev, "timeout reading ROM at 0x%x\n", addr); return ETIMEDOUT; |