All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: ast_i2c: Remove SCL direct drive mode
@ 2022-05-11 20:52 Eddie James
  2022-05-12  4:49 ` Heiko Schocher
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Eddie James @ 2022-05-11 20:52 UTC (permalink / raw)
  To: u-boot; +Cc: hs, Eddie James

SCL direct drive mode prevents communication with devices that
do clock stretching, so disable. The Linux driver doesn't use
this mode, and the engine can handle clock stretching.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
 drivers/i2c/ast_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/ast_i2c.c b/drivers/i2c/ast_i2c.c
index 2d3fecaa14..8b24a260c0 100644
--- a/drivers/i2c/ast_i2c.c
+++ b/drivers/i2c/ast_i2c.c
@@ -76,7 +76,7 @@ static void ast_i2c_init_bus(struct udevice *dev)
 	/* Enable Master Mode. Assuming single-master */
 	writel(I2CD_MASTER_EN
 	       | I2CD_M_SDA_LOCK_EN
-	       | I2CD_MULTI_MASTER_DIS | I2CD_M_SCL_DRIVE_EN,
+	       | I2CD_MULTI_MASTER_DIS,
 	       &priv->regs->fcr);
 	/* Enable Interrupts */
 	writel(I2CD_INTR_TX_ACK
-- 
2.27.0


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

end of thread, other threads:[~2022-07-19 11:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-11 20:52 [PATCH] i2c: ast_i2c: Remove SCL direct drive mode Eddie James
2022-05-12  4:49 ` Heiko Schocher
2022-05-19  0:28 ` Joel Stanley
2022-05-19  1:55   ` Ryan Chen
2022-07-19 11:53 ` Heiko Schocher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.