public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] i2c: mvtwsi: fix hang on SPL bind
@ 2019-04-07  9:30 Baruch Siach
  2019-04-09 15:18 ` Stefan Roese
  2019-04-10  5:38 ` Heiko Schocher
  0 siblings, 2 replies; 8+ messages in thread
From: Baruch Siach @ 2019-04-07  9:30 UTC (permalink / raw)
  To: u-boot

The mvebu specific debug register is not accessible when the bind code
runs in SPL. Skip it.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 drivers/i2c/mvtwsi.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c
index 74ac0a4aa789..05560e112729 100644
--- a/drivers/i2c/mvtwsi.c
+++ b/drivers/i2c/mvtwsi.c
@@ -801,6 +801,10 @@ static int mvtwsi_i2c_ofdata_to_platdata(struct udevice *bus)
 
 static void twsi_disable_i2c_slave(struct mvtwsi_registers *twsi)
 {
+	/* The debug register is not accessible in early boot */
+	if (IS_ENABLED(CONFIG_SPL_BUILD))
+		return;
+
 	clrbits_le32(&twsi->debug, BIT(18));
 }
 
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-04-11 13:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-07  9:30 [U-Boot] [PATCH] i2c: mvtwsi: fix hang on SPL bind Baruch Siach
2019-04-09 15:18 ` Stefan Roese
2019-04-09 17:40   ` Baruch Siach
2019-04-10  5:38 ` Heiko Schocher
2019-04-11  9:31   ` Stefan Roese
2019-04-11  9:49     ` Heiko Schocher
2019-04-11 12:01       ` Tom Rini
2019-04-11 13:27       ` Heiko Schocher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox