[PATCH v2 2/2] regulator: rpi-panel-v2: Add required vcc-supply support

Mark Brown broonie at kernel.org
Mon Sep 7 10:09:57 PDT 2026


On Mon, Sep 07, 2026 at 06:06:24PM +0100, Conor Dooley wrote:
> On Mon, Sep 07, 2026 at 11:16:08AM +0530, Shashank Maurya wrote:

> > +	vcc = devm_regulator_get(&i2c->dev, "vcc");
> > +	if (IS_ERR(vcc))
> > +		return dev_err_probe(&i2c->dev, PTR_ERR(vcc),
> > +				     "Failed to get vcc supply\n");

> This needs to be optional, because without it you'll break existing
> devicetrees. Unless you can explain how all existing users are
> nonfunctional (e.g. nothing ever enabled the supply, which seems
> doubtful given this surely worked when it was added) this must remain
> optional.

The core will stub in a dummy regulator for mandatory supplies that
don't have anything mapped by firmware, otherwise essentially all
regualtors would be optional and our error handling would be a disaster
zone.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260907/d5676d5d/attachment.sig>


More information about the linux-arm-kernel mailing list