mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lee Jones <lee@kernel.org>
To: Thomas Richard <thomas.richard@bootlin.com>
Cc: Andi Shyti <andi.shyti@kernel.org>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Werner Gartner <Werner.Gartner@congatec.com>,
	mfd@lists.linux.dev, linux-kernel@vger.kernel.org,
	linux-i2c@vger.kernel.org
Subject: Re: [PATCH v4 4/9] mfd: cgbc: Use PLATFORM_DEVID_AUTO for child device registration
Date: Fri, 16 Oct 2026 07:47:10 +0100	[thread overview]
Message-ID: <20261016064710.GA2093461@google.com> (raw)
In-Reply-To: <a873afcf-ba8b-479d-bb0d-d022895d18d4@bootlin.com>

On Thu, 15 Oct 2026, Thomas Richard wrote:

> On 10/15/26 5:27 PM, Lee Jones wrote:
> > On Fri, 02 Oct 2026, Thomas Richard (congatec GmbH) wrote:
> > 
> >> Since parameters are now passed to the i2c-cgbc driver via platform
> >> data, the I2C driver no longer depends on the platform device ID to probe
> >> the correct I2C buses. Drop the hardcoded cell ID in favor of
> >> PLATFORM_DEVID_AUTO.
> >>
> >> Signed-off-by: Thomas Richard (congatec GmbH) <thomas.richard@bootlin.com>
> >> ---
> >>  drivers/mfd/cgbc-core.c | 6 ++----
> >>  1 file changed, 2 insertions(+), 4 deletions(-)
> >>
> >> diff --git a/drivers/mfd/cgbc-core.c b/drivers/mfd/cgbc-core.c
> >> index 0cd9e6f888cb..8522df882509 100644
> >> --- a/drivers/mfd/cgbc-core.c
> >> +++ b/drivers/mfd/cgbc-core.c
> >> @@ -71,13 +71,11 @@ static const struct mfd_cell cgbc_devs[] = {
> >>  	MFD_CELL_NAME("cgbc-hwmon"),
> >>  	{
> >>  		.name = "cgbc-i2c",
> >> -		.id = 1,
> > 
> > If you shuffled the patches around a bit, you shouldn't have to hack
> > your own new additions in and out, no?
> For I2C bus names I got it, but not for id.
> I need i2c_platform_data to be able to drop cell id and use
> PLATFORM_DEVID_AUTO, so I don't see how I could reorder the patches.
> And cell ids are there from the beginning, not really a new addition.
> Maybe I misunderstood your comment, or I miss something.

Okay, just the names then.

-- 
Lee Jones

  reply	other threads:[~2026-10-16  6:47 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-02 11:12 [PATCH v4 0/9] Congatec Board Controller: Add storage devices support Thomas Richard (congatec GmbH)
2026-10-02 11:12 ` [PATCH v4 1/9] mfd: cgbc: Fix use of negative error code as valid session handle Thomas Richard (congatec GmbH)
2026-10-15 15:19   ` Lee Jones
2026-10-15 17:53     ` Thomas Richard
2026-10-02 11:12 ` [PATCH v4 2/9] mfd: cgbc: Add I2C platform data Thomas Richard (congatec GmbH)
2026-10-02 11:12 ` [PATCH v4 3/9] i2c: cgbc: Use plateform data to get bus ID and adapter name Thomas Richard (congatec GmbH)
2026-10-02 11:12 ` [PATCH v4 4/9] mfd: cgbc: Use PLATFORM_DEVID_AUTO for child device registration Thomas Richard (congatec GmbH)
2026-10-15 15:27   ` Lee Jones
2026-10-15 17:48     ` Thomas Richard
2026-10-16  6:47       ` Lee Jones [this message]
2026-10-02 11:12 ` [PATCH v4 5/9] mfd: cgbc: Use real I2C bus names Thomas Richard (congatec GmbH)
2026-10-15 15:27   ` Lee Jones
2026-10-15 17:23     ` Thomas Richard
2026-10-02 11:12 ` [PATCH v4 6/9] i2c: cgbc: Add support for fixed frequency buses Thomas Richard (congatec GmbH)
2026-10-02 11:12 ` [PATCH v4 7/9] mfd: cgbc: Add virtual I2C bus support Thomas Richard (congatec GmbH)
2026-10-02 11:12 ` [PATCH v4 8/9] mfd: cgbc: Add virtual storage devices on the virtual I2C bus Thomas Richard (congatec GmbH)
2026-10-02 11:12 ` [PATCH v4 9/9] i2c: cgbc: Register known I2C devices on the bus Thomas Richard (congatec GmbH)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261016064710.GA2093461@google.com \
    --to=lee@kernel.org \
    --cc=Werner.Gartner@congatec.com \
    --cc=andi.shyti@kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mfd@lists.linux.dev \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=thomas.richard@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®