[PATCH 1/3] dm: core: Add DM_FLAG_PROBE_AFTER_BIND flag
Sean Anderson
seanga2 at gmail.com
Sat Apr 23 00:45:48 CEST 2022
On 4/22/22 9:52 AM, Marek Vasut wrote:
> On 4/22/22 15:49, Sean Anderson wrote:
>> On 4/22/22 9:15 AM, Marek Vasut wrote:
>>> Introduce DM_FLAG_PROBE_AFTER_BIND flag, which can be set by driver or
>>> uclass in .bind(), to indicate such driver instance should be probe()d
>>> once binding of all devices is complete.
>>>
>>> This is useful in case the driver determines that hardware initialization
>>> is mandatory on boot, and such initialization happens only in probe().
>>> This also solves the inability to call device_probe() from .bind().
>>
>> So why not add an init_leds function to init_sequence_r?
>
> Because this flag is generic solution and not hack specific to LEDs.
Isn't init_sequence_r the generic solution? Every device gets probed that
way (or directly as a result of a command).
--Sean
More information about the U-Boot
mailing list