Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp345864rdg; Tue, 10 Oct 2023 11:58:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHh1nJXiSZZoCeISAsCWR6Zsm1Iz9UqCxrTuUg/1u/ZntRZ+RzhvCUOU7Gi0QQn3E7jB/R0 X-Received: by 2002:a05:6358:5910:b0:143:8020:b09a with SMTP id g16-20020a056358591000b001438020b09amr21245296rwf.3.1696964315887; Tue, 10 Oct 2023 11:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696964315; cv=none; d=google.com; s=arc-20160816; b=0FK6F4W6hj1TCXnHaQ0OkijO5m7bSCPiVVlU4kz2mBwAy27M/TPqSmaU5NsP5kRt4p t2kpwJAptbfKK44BWGjtOFQ7uTvL41w7MfXT0OY3Xvj7VfZ+yV/rhgltPk5Ucx1gKIW/ 9+HoJ9LlCO5Fawzzw1o2GplCxEJN7smhnyBm1bQ7Ayo0MCUT0zBt4pCCfYTDiNFrpQip jSHSh1m0r8yT5DkpdwQDrw2y5eP6IjzODqORg5LcstkXlOGxXQKHcNSd6OHRPUO5jHUz Ub6y0xagsjs8610CwJOgXn5fEVBes1e8fWnbAPKHkBTSl2zQ8HKceCVojitUgZT3XT2m N3Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=kLGh3i1lQ8yoUOCz0K3L/SNM66UV2zzXf/rDMdDT+Og=; fh=Iohtu9PcCU71/yn5rRsUo5f+v2zXjgVdrrClqZhgXY4=; b=Ud4n71ByP30ItkQ6W9qnb65A74XB/AOoq2wfGqQInPkVjZtlFEIDbqbqnvIq9lMaaI ws2Q+A5v1D7jqBAiNeH+G+YirrP1EHX9/1BkthUuToH8c0glWl0NS1Jtc4LKodQTYYIS LpF2ReY7dUWocziqpBTSNZZm37V3scp612sO7kWKKrdCjDmhMHNQiMdcaQylcFyuv6s7 HraRJT+vweZtRzCc+CiPAVp6np/VorYklKAbXqSwBa0koQiWbav1taLDS7ndSykNpKeZ WEUGuL36fAeFXHsgbGhbtEhUmZxFKpQlMqb6jgTaMlQD+h3pDE9dSE+FoCfSG6O7YsLc QqrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RL4dxfBV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id z41-20020a056a001da900b0068fcf6fe22csi10148904pfw.304.2023.10.10.11.58.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 11:58:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RL4dxfBV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 906C28106F4B; Tue, 10 Oct 2023 11:58:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343525AbjJJS6S (ORCPT + 99 others); Tue, 10 Oct 2023 14:58:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233674AbjJJS6R (ORCPT ); Tue, 10 Oct 2023 14:58:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D925893; Tue, 10 Oct 2023 11:58:12 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB77BC433C7; Tue, 10 Oct 2023 18:58:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696964292; bh=ys7zX7Uip/yjApTsNB1scMMUo0/posh8yamGRtSA3Rk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RL4dxfBVLsK8NR+QUwqeE0N3UhwgMYm3mO7m3Dp8BQWAw8W4AZQZ1poygrgqOOx9O h+UnoxTFJxS5d7DmytOI2Q/1bOZ4Dd5JxKkHQ48C+HAMIuXrQunpDezF45lYwaaD3s rTjziqWRLQvaTI1HMp4rPIyp8jkVUyD/7P4SUErRgqCujcgYJ9VyxF+E3XJua0C2+W JFsgB/icYYc50GwjKPfNghwS7rCzxdtdf7f01hmFeWgLTmtPdUDQZuD2AXIfQY0HLR FtjPdK31QgJUjRJbFx5n6DzT6JKGSQjnb6UXStsmfNf0m+g86ds2DJrZjWFYyM4Yr1 hzK4RluUVpXWg== Date: Tue, 10 Oct 2023 20:58:06 +0200 From: Wolfram Sang To: Guenter Roeck Cc: Lakshmi Yadlapati , sumit.semwal@linaro.org, christian.koenig@amd.com, jdelvare@suse.com, joel@jms.id.au, andrew@aj.id.au, eajames@linux.ibm.com, ninad@linux.ibm.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-hwmon@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v1 0/2] [PATCH] hwmon: (pmbus/max31785) Add minimum delay between bus accesses Message-ID: Mail-Followup-To: Wolfram Sang , Guenter Roeck , Lakshmi Yadlapati , sumit.semwal@linaro.org, christian.koenig@amd.com, jdelvare@suse.com, joel@jms.id.au, andrew@aj.id.au, eajames@linux.ibm.com, ninad@linux.ibm.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-hwmon@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20231009211420.3454026-1-lakshmiy@us.ibm.com> <1284830f-025e-4e25-8ed0-50a6cc00d223@roeck-us.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1djJUpxMrj0Eh3vK" Content-Disposition: inline In-Reply-To: <1284830f-025e-4e25-8ed0-50a6cc00d223@roeck-us.net> X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 10 Oct 2023 11:58:32 -0700 (PDT) X-Spam-Level: ** --1djJUpxMrj0Eh3vK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Guenter, > > > Reference to Andrew's previous proposal: > > > https://lore.kernel.org/all/20200914122811.3295678-1-andrew@aj.id.au/ > >=20 > > I do totally agree with Guenter's comment[1], though. This just affects > > a few drivers and this patch is way too intrusive for the I2C core. The > > later suggested prepare_device() callback[2] sounds better to me. I > > still haven't fully understood why this all cannot be handled in the > > driver's probe. Could someone give me a small summary about that? > >=20 >=20 > Lots of PMBus devices have the same problem, we have always handled > it in PMBus drivers by implementing local wait code, and your references > point that out. I am confused now. Reading your reply: "I am not sure if an implementation in the i2c core is desirable. It looks quite invasive to me, and it won't solve the problem for all devices since it isn't always a simple "wait microseconds between accesses". For example, some devices may require a wait after a write but not after a read, or a wait only after certain commands (such as commands writing to an EEPROM)." I get the impression you don't prefer to have a generic mechanism in the I2C core. This I share. Your response now sounds like you do support that idea now? > What other summary are you looking for ? What the actual problem is with these devices. The cover letter only mentions "issues with small command turn-around times". More details would be nice. Is it between transfers? Or even between messages within one transfer? Has it been tried to lower the bus frequency? Stuff like this. > On a side note, if anyone plans to implement the prepare_device() callbac= k, > please make sure that it covers all requirements. It would be unfortunate > if such a callback was implemented if that would still require per-driver > code (besides the callback). Is there a list of that somewhere? Or does it mean going through all the drivers and see what they currently do? Regards, Wolfram --1djJUpxMrj0Eh3vK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmUlnroACgkQFA3kzBSg Kbbh1hAAobbv+zDV1isP1VmO8awucHkYyvQ8LVnS+Uk1vKJZJjDR7UZHJhnm0VDK iTZBj9bnFfwoGzSEA5qmsb6EClU/NE9e0I/zrAvLK8Qhl5qB7vE6iwCe7VwZCacK ckl9b7lW/4rB/d/Rp4c8dhpaMIiOV/iimgEAbQJlud+ojwZWTOIWJ0mE+1OlO+as m9tyYspGMUIa3APMfaL7hmuNTQC8alEenf/rrPcbHhUKEfu9MmS1fWbXgMgJHgse IeTBCDf0lurUO/NdnCGxgfG5aQHZ37EwdaDETzxtob0uWgc2IsUAx//CIxG3VN0J 13j3QnOwNW3GRmiwiHJgP5Ij896pNaffOKdWz79gSmqKbjaJZ7Tj4FC1IPq9cWLZ zf/P0yvysvHC1w8mFFQ3oCJum+VPsK7y9AK/yzxDxSXEq10jUdLCPPoZ4+smhtls DcfND9JE2WSpH8Gz0iaeEn629LZlT852KPLFLA6M5sBtHc0w4beT99EL1f3bxn+9 GSBWEjh5/IHX3YKfWwnjeuDme3OVxc4+eUOmV59i4xjvYo4t9N5qcGy7CucuOFEo bz5AcKVQNEIwC3liRRZLzy4dQLHEVlRMuNsk1Rk+BbtTdLygSYmqTVH96j2r5v41 JuspoeQn8WmdTyD/LnkoZYtqxR6F+HynPJXs4/IgHMRzBW/D0ks= =9HLu -----END PGP SIGNATURE----- --1djJUpxMrj0Eh3vK--