[PATCH v2 1/2] of: implement new of_device_ensure_probed_by_alias_stem

Andrej Picej andrej.picej at norik.com
Tue Mar 29 03:43:09 PDT 2022

Hi Sascha,

On 29. 03. 22 10:56, Sascha Hauer wrote:
> Hi Andrej,
> On Tue, Mar 29, 2022 at 09:33:32AM +0200, Andrej Picej wrote:
>> Function first goes through all the aliases which have the given stem.
>> It then ensures that all the devices hiding under these aliases are
>> probed.
>> User can specify one device_node which won't get probed. This is mainly
>> for avoiding recursion if the function will be called from device probe
>> function, or to specify the device which should get probed last. In the
>> later case the user should probe the last device manually.
>> Signed-off-by: Andrej Picej <andrej.picej at norik.com>
>> ---
>> Changes in v2:
>>   - add check for deep probe support,
>>   - users can now specify one device node, which won't get probed. This
>>     ensures that one device can be probed last and we avoid recursion, if
>> this device happens to have alias,
>>   - fix function name (ensured -> ensure).
> Your v2 came before I had a chance to react to your comments on v1, I
> was on vacation last week. I looked at the issue from another
> perspective and rather than ensuring a certain probe order I think we
> should decouple the GPIO numbers (at least the ones from the SoC
> internal controllers) from the probe order, see the patch I just sent.

Sorry didn't mean to push you. Just figured out that it would be easier 
to talk about this topic when we have v2 version :).

OK, the patch looks good. As you said, solution from different 
perspective. Will test it out and get back to you with results.

Thanks for your help/work.


More information about the barebox mailing list