diff mbox series

board: gateworks: venice: delay before reading GSC EEPROM

Message ID 20240619211322.2068243-1-tharvey@gateworks.com
State Accepted
Commit 87a4e5b3a41f5b13dd86c8661ee92f58098c10ac
Delegated to: Fabio Estevam
Headers show
Series board: gateworks: venice: delay before reading GSC EEPROM | expand

Commit Message

Tim Harvey June 19, 2024, 9:13 p.m. UTC
Extensive testing has shown that at higher temperatures operating
without a GSC backup battery, the GSC needs a small delay after
releasing the I2C SDA/SCL pins before it is ready to handle I2C
requests.

Add a delay to avoid errors such as:
wait_for_sr_state: Arbitration lost sr=93 cr=80 state=2020
i2c_init_transfer: failed for chip 0x20 retry=0

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 board/gateworks/venice/spl.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c
index 9a22eeef36ba..ec3c394d24d8 100644
--- a/board/gateworks/venice/spl.c
+++ b/board/gateworks/venice/spl.c
@@ -303,6 +303,7 @@  void board_init_f(ulong dummy)
 				mdelay(10);
 			}
 			pinctrl_select_state(bus, "default");
+			mdelay(10);
 		}
 	}
 	/* Wait indefiniately until the GSC probes */