mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Mark Brown <broonie@kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Frank Li <Frank.Li@nxp.com>
Subject: Re: regmap I3C support
Date: Wed, 13 Nov 2024 12:16:37 -0800	[thread overview]
Message-ID: <88f34137-b215-4bee-b117-3ff00402ba6c@roeck-us.net> (raw)
In-Reply-To: <ZzS6ph8KulEITt5C@finisterre.sirena.org.uk>

On 11/13/24 06:41, Mark Brown wrote:
> On Wed, Nov 13, 2024 at 06:15:38AM -0800, Guenter Roeck wrote:
>> On 11/13/24 06:01, Mark Brown wrote:
> 
>>> Don't these drivers end up with the same miserable problems with
>>> dependencies on variations of things being configured built in and
>>> modules anyway that mean we build separate SPI and I2C bus wrappers for
>>> the same case with devices that do both I2C and SPI?
> 
>> Not really. There is no equivalent to module_i3c_i2c_driver() to handle both
>> I2C and SPI variants of a chip. Also, SPI and I2C/I3C are not interdependent,
> 
> Sure, but lots of drivers were open coding an equivalent of that
> (possibly some still do).
> 
>> while I3C automatically selects I2C. That means it does make sense to handle
>> I2C and I3C in the same driver, but not I2C and SPI.
> 
> In terms of the devices they're very much the same and interdependent -
> it's generally one IP block and one set of pins that's doing both I2C
> and SPI, with nothing software visible different.  If I3C selects I2C
> then that does eliminate some of the problem space, I can't remember the
> speciifcs of how people (I think mainly randconfig people?) were
> breaking things.  You at least have I2C=y I3C=m which means that
> dependencies have to force the users modular.
> 
>> Sure, separate wrappers can be used, but that makes module_i3c_i2c_driver()
>> pointless.
> 
> That's kind of my question.  If we are going to have this sort of stuff
> we should also have it for I2C and SPI since it's such a common pattern.

I'll take that as "we are not going to provide a dummy regmap i3c registration
function". Thanks, that is all I needed to know.

Guenter


  reply	other threads:[~2024-11-13 20:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-11 19:07 Guenter Roeck
2024-11-13 14:01 ` Mark Brown
2024-11-13 14:15   ` Guenter Roeck
2024-11-13 14:41     ` Mark Brown
2024-11-13 20:16       ` Guenter Roeck [this message]
2024-11-14 11:31         ` Mark Brown
2024-11-14 14:45           ` Guenter Roeck
2024-11-14 17:26             ` Mark Brown
2024-11-15  6:58               ` Guenter Roeck
2024-11-15 15:06                 ` Mark Brown
2024-11-15 15:46                   ` Guenter Roeck
2024-11-16  4:35               ` Guenter Roeck
2024-11-19 17:46                 ` Mark Brown
2024-11-19 18:41                   ` Guenter Roeck
2024-11-19 19:30                     ` Frank Li
2024-11-19 21:57                       ` Guenter Roeck
2024-11-19 22:22                         ` Frank Li

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=88f34137-b215-4bee-b117-3ff00402ba6c@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=Frank.Li@nxp.com \
    --cc=broonie@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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®