From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D23BC8303C for ; Thu, 29 Aug 2024 10:58:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=oWzcDmjgkJcSg2wpZdI3SiGft3f6OnhQjayTMf0HJ38=; b=cGtG8kVDO44yfO77niU25ncV0I EJny3O5ss/uCobrGP22w0be2y5TP0WH6cIF/k831Yl5CjWqyVAzSE31Y9P4TBJKIl8UulrIqjrwSr ezILg53dSM2jXcIzY+R+yEmHR0KHiRfWfC1s5nGd5WzudS9URqBpr5wg1+gwgAHLlIQBOZM9Upqo/ hH2kebacPBT+Ha4jUy6/dlpheOVgK+hY3mflnUdPGfZIBtGqaN41u4TfgVJ94scVq5gKAelxghpET VQCPqHeG1yh/f14CHr9xdnza/ivDIIjSmg6VZT76BLOlr/mLlOsttv/lsVmTSUg+xmrH4ELikXGl9 Q21/pVzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjcrK-00000001fVh-3bYq; Thu, 29 Aug 2024 10:58:34 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjcoJ-00000001esd-25XA for linux-arm-kernel@lists.infradead.org; Thu, 29 Aug 2024 10:55:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1724928928; x=1756464928; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oWzcDmjgkJcSg2wpZdI3SiGft3f6OnhQjayTMf0HJ38=; b=b+e0MA5R1u6fsxz8RKXSf/1gPrRMLa8khV2a7NOHbPVow3BP7eHiVmTR fTMlbnp5ZPRXPXIlpjCmRJfsvOaqcG73MjeDmX0+GSQQVj/pvFJjcj3HU 6HFKVogJ8HD77ts/Oj4sNt4kaVSjJgOzLIy88GxED8i9YXQmwWtkG8kyO QLv+VRK/jJMmqRZyiAh7pr4STGQmXIf4lhyz4JLMnGOLnSAHtJhreHeG5 EMxCZwkZ+oPB7n20y18yM4g/66IRHQ2/UhxPIL+pfpeILcMVDoTjQycyr 6ls4DKXQMX8KgeBl3qlb6eTEDLDTKYpzzHhzNgSVU8/sD6rQ3vontXVVx A==; X-CSE-ConnectionGUID: IxpUcI0TR6CUshZtug8O9w== X-CSE-MsgGUID: 1JdaoTtdS2Geeh9lZqbFog== X-IronPort-AV: E=Sophos;i="6.10,185,1719871200"; d="scan'208";a="38657106" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 29 Aug 2024 12:55:23 +0200 X-CheckPoint: {66D0539A-E-22BB8E18-F5F6D0B4} X-MAIL-CPID: 0FF3B4A887F5D6DA561B29681486B5BB_5 X-Control-Analysis: str=0001.0A782F1D.66D0539A.00DA,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 02E45165A3E; Thu, 29 Aug 2024 12:55:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1724928918; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=oWzcDmjgkJcSg2wpZdI3SiGft3f6OnhQjayTMf0HJ38=; b=o5cjZqEFPmxCCUoClAnK46MIX62MOzhLPNdveJPyKyS6+3pAUL4sTVLt09QJKZZcTw5qjb Qc0Ol2HPwKTFgnwvAF6D2sSEgmba7IF9QS4QmHV7dDIuDJuUZ0BWHsva35bTD4tTnQoZuq MFWtDUNhEVWXBkZYqHAHSVMxTtw7yLlgm0m9Ew5+1rQ89nZ5pnWpxngesbtN5Ezm9oUNEM hCQmVTYiliiI+Z5z77dn1Jdkcv8K+Yh2aTvBOG1TKZQoBYaBC6PzplDaDnvr81XfbMiv62 ZdpNRDGYTNwo9PTnA1WnHMv/H5PXpoeXys5jmWsUyzkJRvCawXrZICRruKIYrw== From: Alexander Stein To: aisheng.dong@nxp.com, andi.shyti@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Cc: linux-i2c@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, carlos.song@nxp.com Subject: Re: [PATCH 5/5] i2c: imx-lpi2c: increase PM timeout to avoid operate clk frequently Date: Thu, 29 Aug 2024 12:55:16 +0200 Message-ID: <4375906.ejJDZkT8p0@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <20240829093722.2714921-5-carlos.song@nxp.com> References: <20240829093722.2714921-1-carlos.song@nxp.com> <20240829093722.2714921-5-carlos.song@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240829_035528_302722_8DDCB59F X-CRM114-Status: GOOD ( 12.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, Am Donnerstag, 29. August 2024, 11:37:22 CEST schrieb carlos.song@nxp.com: > From: Clark Wang >=20 > 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 > Signed-off-by: Carlos Song > --- > drivers/i2c/busses/i2c-imx-lpi2c.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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 > =20 > -#define I2C_PM_TIMEOUT 10 /* ms */ > +#define I2C_PM_TIMEOUT 1000 /* ms */ > #define I2C_DMA_THRESHOLD 8 /* bytes */ > =20 > enum lpi2c_imx_mode { >=20 =2D-=20 TQ-Systems GmbH | M=FChlstra=DFe 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht M=FCnchen, HRB 105018 Gesch=E4ftsf=FChrer: Detlef Schneider, R=FCdiger Stahl, Stefan Schneider http://www.tq-group.com/