From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9CCA730567C for ; Thu, 30 Jul 2026 15:18:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785424695; cv=none; b=BRP2K2Sj4PMofhxgZzkQkkY0EOiGqTCIYyE0HD3rzSQTSciVu+CGxtZuWpOJKNf01vwGezTKkiXwMDCXJq/FnizHpyLV/C6aG2SGlTLLXNrWVHrvOUqXFfIzG0gijjR7/ODLkdBPg9H5kf2gYl+RQBIIhN+o7RMufo7OC95rOjE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785424695; c=relaxed/simple; bh=72hnN/0rE7uzUdVvzXQ6rS4xBcofWgn8Ndd9UkHCOGk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=L+J4y9gpzmtepKjFoY4mMh3K/xPrEKifUF7IaH4ik+WepENmBwRvoezi2mfeB5nJ7O3iNsfmuPgzXdpocc2hJPU//iPqU/TQgY7uubl4EHvyaOSKDGtb0VXo+SVhjYGCcW5yKZ05MNTpY0u2WjzPSGc7rLKJISAX03lFMlNnC94= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Bdd5qv1G; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Bdd5qv1G" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-49555a0e68bso11829545e9.2 for ; Thu, 30 Jul 2026 08:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785424692; x=1786029492; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=Edhb2n6rlJZQPuQdw5wF8BrPLoATNFthrzHW9vrli1A=; b=Bdd5qv1GJ9myn0Cs+T/Z+RBsxyRlTIuCltXZRxKsA4cbF4iTVxYCyqCD+cModZ+sxe 8M1rvthmX+U8oUGBbMq/P8ver+v7JUYpp3Px9IVf7++EGVUPPZPaKtyBSwTNNAwxl6Zp InuKgmbu3aL8qwMyuYkJhn1sX70wfCaL2O6v/q6vuqU73vsRxQe+2mvxzNpOZAeLIxBY +WFuYwIG4KmRJlnxHqSXduisRYH9Q4iNbm71TBbqIOxOL1IfMhXsOCSKyFP2Yg9/zc3o AzWodz44TctvVFsSMgK1ZEJNBLng4ZM5IeuFi5Sn06ApZVZflIpZmrwa6oQUF33rWlY5 e7cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785424692; x=1786029492; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=Edhb2n6rlJZQPuQdw5wF8BrPLoATNFthrzHW9vrli1A=; b=ngNVANKDZsmbJDCU5tdgTXC7NNkksiM04Zo12SXUwujdEw6g9HCTp+HWAJffTRXtfb ZeR/fCjyfgWln7vB6kbL2ONqZvsJkdF4J7QfbY5rTSLIcwRUCgby9NIcRl6l59vdnqS2 CaQ04M6cbOPqhAhMvYzV1y5uWmwtWrXdJkNDDdvBSF3Df+QuiQGb0g5gFJqTEPDd9SGO vkBuJ7E7c0PWqr30H/MgYF+avQWoEX1/b8jPxrDBHxJfdP1Xt2na4ZPtMPjGm3nN9uws C7iIsxsANF07HuERgxzcqMhyTzqA9RuMAXgXJmtQBxZTHVxabMgwbrzZLBU6CTIkVWsr 0Ntw== X-Forwarded-Encrypted: i=1; AHgh+RrJDWKHgVSTU0TeyypZXDIPUqrRrES4F2lDtyYjRb34+R3adlGx3JMmaAg0cFCHcDD+NdBS08nhujg=@vger.kernel.org X-Gm-Message-State: AOJu0Yx4w9KVc3K9+usu/l/Vmndr9snkAJpXzMUFNzaVRq/XVYfhM87W akoafN+JpyKaAOyT9ywZxjktOab/73Jj6TdsOQvdQHfB2YeSPtsc/ERh X-Gm-Gg: AR+sD12mfGw2cfiawmY4vcZNalCqmAHqEI+UJqEpEUt5ktRQckLdlpmN/Q76pCQoRef Va/vHahEGuXiLh7x2+Daf8Vcxr27VQnhx7aY+UuNgeN4ZFRVN31CaA3rP7ZG/huiidQheBlY1Np jLJ/GqYIXXCIIwXtZataPLE75XEcCM8gjqS87+4dr1SbWeU7R/FnUV/J6uegW0QCzc+7rwuj4WE +ERtpOQZAnv2I8I8OhmT6mLmKcX0y4OVa6olmrLM4DV5SJrLs2YaId+2mOrRrqCRd5gdZ32MRQG OrH5jJkbUbpBhqcQIT3R7v6gckCKyEuFH1Wdg/WEClvJIdOmGxwU+0jp19wQObZBSD+GtJgCA65 IvKin2orcpQagpiv2gTYqsus6RAUTaMo8ZGwIJncCiPH7Zvyr5FeiKMHlLr+oEqyBPOuftXxg7B qZ0aJ4qiK5VPdUk9RGPsutDFP37/AAs84jyZ7JZhzdiTBMjTFtenkBQg7voc8rrtE= X-Received: by 2002:a05:600c:4e46:b0:493:e451:a9e1 with SMTP id 5b1f17b1804b1-49800e6d495mr45990775e9.2.1785424691553; Thu, 30 Jul 2026 08:18:11 -0700 (PDT) Received: from nsa ([148.63.225.166]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49800e1f084sm7641595e9.0.2026.07.30.08.18.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2026 08:18:11 -0700 (PDT) Date: Thu, 30 Jul 2026 16:19:20 +0100 From: Nuno =?utf-8?B?U8Oh?= To: Guenter Roeck Cc: nuno.sa@analog.com, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, Mark Brown , Alan Tull , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Shuah Khan Subject: Re: [PATCH 3/5] hwmon: (pmbus/core) Add mapping function to pmbus_read_block_data() Message-ID: References: <20260728-hwmon-max20826-support-v1-0-224766e0acd1@analog.com> <20260728-hwmon-max20826-support-v1-3-224766e0acd1@analog.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Jul 30, 2026 at 07:47:37AM -0700, Guenter Roeck wrote: > On 7/30/26 07:27, Nuno Sá wrote: > > On Tue, Jul 28, 2026 at 02:05:53PM -0700, Guenter Roeck wrote: > > > On 7/28/26 09:03, Nuno Sá via B4 Relay wrote: > > > > From: Nuno Sá > > > > > > > > This is in preparation for adding support to a device which needs to > > > > use it's own read_block implementation. > > > > > > > > > > The chip-specific implementation calls i2c_smbus_read_i2c_block_data(). > > > I'll need to know if this is a chip limit or a controller limit. > > > If it is a controller limit, a chip specific override would be > > > inappropriate. > > > > I'll reply from top of my head (did not looked at the driver again). > > IIRC, the biggest reason we need the chip-specific implementation is because of > > the RAIL selection logic (mainly when not in page mode). > > > > Yes, I have seen that. Question is why you use i2c_smbus_read_i2c_block_data() > instead of i2c_smbus_read_block_data(). The rail selection logic would not > require that. IIRC the reason was because the i2c controller on the raspberry pie does not support i2c_smbus_read_block_data(). So I guess this: https://elixir.bootlin.com/linux/v7.1.4/source/drivers/i2c/i2c-core-smbus.c#L220 - Nuno Sá > > Thanks, > Guenter >