[PATCH 5/5] i2c: imx-lpi2c: increase PM timeout to avoid operate clk frequently
carlos.song at nxp.com
carlos.song at nxp.com
Thu Aug 29 02:37:22 PDT 2024
From: Clark Wang <xiaoning.wang at nxp.com>
Switching the clock frequently will affect the data transmission
efficiency, and prolong the timeout to reduce autosuspend times for
lpi2c.
Signed-off-by: Clark Wang <xiaoning.wang at nxp.com>
Signed-off-by: Carlos Song <carlos.song at nxp.com>
---
drivers/i2c/busses/i2c-imx-lpi2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-imx-lpi2c.c b/drivers/i2c/busses/i2c-imx-lpi2c.c
index 210d505db76d..cc5e5d96aacd 100644
--- a/drivers/i2c/busses/i2c-imx-lpi2c.c
+++ b/drivers/i2c/busses/i2c-imx-lpi2c.c
@@ -129,7 +129,7 @@
#define I2C_CLK_RATIO 2
#define CHUNK_DATA 256
-#define I2C_PM_TIMEOUT 10 /* ms */
+#define I2C_PM_TIMEOUT 1000 /* ms */
#define I2C_DMA_THRESHOLD 8 /* bytes */
enum lpi2c_imx_mode {
--
2.34.1
More information about the linux-arm-kernel
mailing list