From: Mark Brown <broonie@kernel.org>
To: Guenter Roeck <linux@roeck-us.net>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Frank Li <Frank.Li@nxp.com>
Subject: Re: regmap I3C support
Date: Thu, 14 Nov 2024 17:26:19 +0000 [thread overview]
Message-ID: <ZzYyu4ptPtYT6vJC@finisterre.sirena.org.uk> (raw)
In-Reply-To: <85584c2e-2c45-4ec4-89a0-111fa5ad1080@roeck-us.net>
[-- Attachment #1: Type: text/plain, Size: 735 bytes --]
On Thu, Nov 14, 2024 at 06:45:52AM -0800, Guenter Roeck wrote:
> We now use
> config SENSORS_TMP108
> tristate "Texas Instruments TMP108"
> depends on I2C
> depends on I3C || !I3C
> select REGMAP_I2C
> select REGMAP_I3C if I3C
> and in the i3c_probe function
> #ifdef CONFIG_REGMAP_I3C
> regmap = devm_regmap_init_i3c(i3cdev, &tmp108_regmap_config);
> #else
> regmap = ERR_PTR(-ENODEV);
> #endif
> if (IS_ERR(regmap))
> Clumsy, and not my preferred solution, but it works.
Right, so the fact that I3C depends on I2C deals with a lot of the
problems that plague the I2C/SPI combination. Ugh. I guess the helper
should be OK and there's not much doing for I2C/SPI.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2024-11-14 17:26 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
2024-11-14 11:31 ` Mark Brown
2024-11-14 14:45 ` Guenter Roeck
2024-11-14 17:26 ` Mark Brown [this message]
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=ZzYyu4ptPtYT6vJC@finisterre.sirena.org.uk \
--to=broonie@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
/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®