Re: [PATCH] power: supply: core: Honor supplied-from with CONFIG_OF=y
From: Maurizio Casciano
Date: Tue Sep 01 2026 - 13:23:15 EST
Hi Hans,
Thank you for the review.
I agree that firmware-node references should retain priority over the
legacy name-based mechanism. The "supplied-from" property should only be
used as a fallback when no "power-supplies" references are present,
including the case where the consumer has no firmware node.
For v2 I will preserve the existing order as follows:
1. honor an explicitly pre-populated supplied_from list;
2. resolve "power-supplies" firmware-node references when present;
3. fall back to the name-based "supplied-from" property only when no
references were specified.
Errors while resolving specified references, including -EPROBE_DEFER,
will still be propagated rather than triggering the fallback.
I will wait for Sebastian's opinion before posting v2.
Regards,
Maurizio