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

Sascha Hauer sha at pengutronix.de
Tue Mar 29 01:56:06 PDT 2022


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.

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list