lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZzYyu4ptPtYT6vJC@finisterre.sirena.org.uk>
Date: Thu, 14 Nov 2024 17:26:19 +0000
From: Mark Brown <broonie@...nel.org>
To: Guenter Roeck <linux@...ck-us.net>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Frank Li <Frank.Li@....com>
Subject: Re: regmap I3C support

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.

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ