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 1AAD8CA0EF6 for ; Fri, 30 Aug 2024 09:09:15 +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=axg+WoXprUIi60W8u8lts9DfH6O5NAncZwMUJK4oO58=; b=EqysejAx8OrdBMF0pZucg1ISLN 3BLdPBJ1hnoN1QA0+Lyhgua5vwnARWch5iU0q0Y9KCyWTMRKY60PI8qtGEKtM+4bZRcq/ZDZ5GbzR 7X/ebbAM1fCObRqTXnOuJF1iA4U+19SvRTdV0L40qsjT1RTi2jpLDTmQp4qja4IjIEupk0OqeBw+v xYKqelG6e4PBdFwwCMcmS+pZ9kp71wB/H5McJTGqUyaD4mihxQgN+J6zpQ58mBKoVVVQnWnGBUk83 75F/x94A2fQfF1CcfOnGm43S8NhIW//2PcRIV9Tz9AAXsHiPtWYKVBWk+BOKV06epw5EuD2uu/271 Mgo3yCzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjxcr-00000005U66-3xvu; Fri, 30 Aug 2024 09:09:01 +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 1sjxbD-00000005TfY-1vQu for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 09:07:21 +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=1725008839; x=1756544839; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=axg+WoXprUIi60W8u8lts9DfH6O5NAncZwMUJK4oO58=; b=ON5OVN/wsa0nowl1jFl9bGGtS7gX8fPCQGsGA835NWBhLTywQT1BP6Un GR/6IQNFOmvrWkdQm99MeZ84IdjTJ1PDKOsuIrskn0htqtChWJyI2sDjl H6dbgg65+SMxSbQlytkIy5cXP/k+Of7N8V5WpISYM7fZ0OiIn2HLG0p/G dwLttRyjj54S5zgtPFGSwnUAFtG33o2DgaEcxWsc+BhWQbOlrayHGq3SZ ZvBtjPJ9ak2WiosNEhSbcOWCNjwCFSG/NMFTemnOLfDUQskYOx+vBh+qs z+i0PWGddzMK7UgLi1v9bxZk/6nCk9wlZRzEWNtizb/Am6oKnKavlvwQH Q==; X-CSE-ConnectionGUID: NF7mQx7gRoeP0LQbitk/rQ== X-CSE-MsgGUID: FZ2UxEd8Tzq75rd5vMItXQ== X-IronPort-AV: E=Sophos;i="6.10,188,1719871200"; d="scan'208";a="38677653" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 30 Aug 2024 11:07:16 +0200 X-CheckPoint: {66D18BC4-1E-5FF8EC80-F6CEE9F8} X-MAIL-CPID: C4AF2A606FCF8B04840683A0211A1F71_0 X-Control-Analysis: str=0001.0A782F20.66D18BC4.0132,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 67146165E1C; Fri, 30 Aug 2024 11:07:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1725008832; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=axg+WoXprUIi60W8u8lts9DfH6O5NAncZwMUJK4oO58=; b=GhjbWqWL2Anvq1LkFOHCXvD3RaRweQdf5tpTlVxUYwbxRSIlLvbZxZ7ZB5RZe3+snOR+5N FFvg/Rti+3v2wb7zuRCiisgw8aoJX+U5+LxtQDGugj07slX8Kajtcqnwux1bfPsoaormrj vOGbCYrky2fHvAQF2K7iJzlNn+JS8ZdGDrnK1byVAv9uw4jA+MsYaVkIBrS8us5BHi0UNV HBh2Bk0foxHpRy6okVs28Pi21tk6eh5kylPeh3FyFrYdwQ5vKzYLs9wta8OqJyZfcBaFYa tWVgDQZgiH4Aej7E7N8bJcNyWHHGio+A5ZxpOfvYJffZBbeTqy0epjPqNY547w== From: Alexander Stein To: Aisheng Dong , "andi.shyti@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-arm-kernel@lists.infradead.org" , Carlos Song Cc: "linux-i2c@vger.kernel.org" , "imx@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 5/5] i2c: imx-lpi2c: increase PM timeout to avoid operate clk frequently Date: Fri, 30 Aug 2024 11:07:10 +0200 Message-ID: <3775392.MHq7AAxBmi@steina-w> Organization: TQ-Systems GmbH In-Reply-To: References: <20240829093722.2714921-1-carlos.song@nxp.com> <4375906.ejJDZkT8p0@steina-w> 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-20240830_020720_146390_EC3BBB2C X-CRM114-Status: GOOD ( 16.34 ) 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 Freitag, 30. August 2024, 10:53:16 CEST schrieb Carlos Song: > > -----Original Message----- > > From: Alexander Stein > > Sent: Thursday, August 29, 2024 6:55 PM > > To: Aisheng Dong ; 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; Car= los Song > > > > Subject: [EXT] Re: [PATCH 5/5] i2c: imx-lpi2c: increase PM timeout to a= void > > operate clk frequently > > > > Caution: This is an external email. Please take care when clicking link= s or > > opening attachments. When in doubt, report the message using the 'Repor= t this > > email' button > > > > > > Hi, > > > > Am Donnerstag, 29. August 2024, 11:37:22 CEST schrieb carlos.song@nxp.c= om: > > > From: Clark Wang > > > > > > 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? > > >=20 > Hi, Thank your for your quick ack! >=20 > Apologies for the unclear explanation. The efficiency I'm referring to is= n't just for I2C. For platforms with SC firmware > like the 8X series, every i2c transfer to enable or disable the clock not= ifies the SC firmware to perform a clock operation. > So if the autosuspend time is short, i2c may enable and disable clock fre= quently, it will occupy resources of the SC firmware. >=20 > Therefore, we add this patch to minimize the excessive sc firmware resour= ce waste caused by frequent I2C clock enable/disable operations. Thanks for the explanation. So this delay only occurs on systems using an S= C (imx8qm/qxp) or SM (imx95), right? Is there a chance to detect this kind of clock provider and make this timeo= ut configurable? Best regards, Alexander =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/