All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Raag Jadav <raag.jadav@intel.com>
Cc: Lee Jones <lee@kernel.org>,
	david.m.ertman@intel.com, ira.weiny@intel.com,
	andriy.shevchenko@linux.intel.com,
	mika.westerberg@linux.intel.com, heikki.krogerus@linux.intel.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4] mfd: core: Support auxiliary device
Date: Mon, 12 May 2025 12:36:24 +0200	[thread overview]
Message-ID: <2025051221-gulf-schematic-26e1@gregkh> (raw)
In-Reply-To: <aCHL8WWV-Wt7OrII@black.fi.intel.com>

On Mon, May 12, 2025 at 01:22:41PM +0300, Raag Jadav wrote:
> On Sat, May 03, 2025 at 01:01:23AM +0300, Raag Jadav wrote:
> > On Thu, May 01, 2025 at 01:50:28PM +0100, Lee Jones wrote:
> > > On Mon, 28 Apr 2025, Raag Jadav wrote:
> > > 
> > > > Extend MFD subsystem to support auxiliary child device. This is useful
> > > > for MFD usecases where parent device is on a discoverable bus and doesn't
> > > > fit into the platform device criteria. Purpose of this implementation is
> > > > to provide discoverable MFDs just enough infrastructure to register
> > > > independent child devices without abusing the platform device.
> > > > 
> > > > Current support is limited to just PCI type MFDs, but this can be further
> > > > extended to support other types like USB in the future.
> > > > 
> > > > Signed-off-by: Raag Jadav <raag.jadav@intel.com>
> > > > ---
> > > > 
> > > > v2: Introduce a shared struct mfd_aux_device
> > > >     Introduce auxiliary device opt-in flag
> > > > 
> > > > v3: Fix device_type ABI breakage (Andy)
> > > >     Aesthetic adjustments (Andy)
> > > > 
> > > > v4: s/mfd_aux/maux
> > > >     Allow num_resources for child device (Andy)
> > > >     Fix build warning (Andy)
> > > > 
> > > >  drivers/mfd/Kconfig      |   2 +-
> > > >  drivers/mfd/Makefile     |   2 +-
> > > >  drivers/mfd/mfd-aux.c    | 156 +++++++++++++++++++++++++++++++
> > > 
> > > This looks like mostly duplicated platform device code.
> > > 
> > > If you are _certain_ that it needs to exist, you need to push it out to
> > > the auxiliary subsystem and remove any traces of it being MFD related.
> > > 
> > > If it's needed by MFD, it'll be needed by other auxiliary users.  Even
> > > if not now, sometime in the future.
> > 
> > Greg, if you are okay with this, please let me know. Or perhaps suggest
> > a better alternative.
> 
> Greg, any guidance on this?

I don't know what to say, I don't see the code here that is being
quoted, sorry.  If this should be in the aux code, add it and submit a
patch that uses it so we can see what you are referring to.

confused,

greg k-h

  reply	other threads:[~2025-05-12 10:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-28  6:02 [PATCH v4] mfd: core: Support auxiliary device Raag Jadav
2025-05-01 12:50 ` Lee Jones
2025-05-02 22:01   ` Raag Jadav
2025-05-12 10:22     ` Raag Jadav
2025-05-12 10:36       ` Greg KH [this message]
2025-05-12 11:10         ` Raag Jadav
2025-05-12 11:21           ` Greg KH

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=2025051221-gulf-schematic-26e1@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=david.m.ertman@intel.com \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=ira.weiny@intel.com \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.com \
    --cc=raag.jadav@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.