[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4375906.ejJDZkT8p0@steina-w>
Date: Thu, 29 Aug 2024 12:55:16 +0200
From: Alexander Stein <alexander.stein@...tq-group.com>
To: aisheng.dong@....com, andi.shyti@...nel.org, shawnguo@...nel.org, s.hauer@...gutronix.de, kernel@...gutronix.de, festevam@...il.com, linux-arm-kernel@...ts.infradead.org
Cc: linux-i2c@...r.kernel.org, imx@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org, carlos.song@....com
Subject: Re: [PATCH 5/5] i2c: imx-lpi2c: increase PM timeout to avoid operate clk frequently
Hi,
Am Donnerstag, 29. August 2024, 11:37:22 CEST schrieb carlos.song@....com:
> From: Clark Wang <xiaoning.wang@....com>
>
> Switching the clock frequently will affect the data transmission
> efficiency, and prolong the timeout to reduce autosuspend times for
> lpi2c.
Efficiency as in throughput or total time per transfer? Do you have any
numbers?
Best regards,
Alexander
> Signed-off-by: Clark Wang <xiaoning.wang@....com>
> Signed-off-by: Carlos Song <carlos.song@....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 {
>
--
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/
Powered by blists - more mailing lists