Thread (4 messages) 4 messages, 2 authors, 2026-05-25

Re: [PATCH] misc: eeprom: at24: Make VCC supply description requirement optional

From: Mark Brown <broonie@kernel.org>
Date: 2026-05-24 22:07:26
Also in: linux-i2c, lkml

On Sun, May 24, 2026 at 10:05:33AM +0200, Paul Menzel wrote:
Some platforms (e.g. IBM Power System S822LC (8335-GCA POWER8)) do not
describe the EEPROM’s VCC supply in firmware-provided device trees.
Using `devm_regulator_get()` on such systems falls back to a dummy
regulator with a kernel warning:
Switch to `devm_regulator_get_optional()` and treat -ENODEV as “no
supply described”. When `vcc_reg` is NULL, skip all
regulator_enable/disable calls; the hardware is assumed to be always
powered. Linux now logs:
This is not appropriate unless the device can actually operate without
power, any driver could be used in a system where the firmware does not
describe the regultors and it'd obviously be pointless and error prone
to scatter bodges like this on every single call to a regulator API
function.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help