Driver load order
Ahmad Fatoum
a.fatoum at pengutronix.de
Thu May 19 05:17:58 PDT 2022
Hello Frank,
On 19.05.22 12:59, Frank Wunderlich wrote:
> Hi,
>
> I try to create a basic driver for rk808 pmic/iodomains. I've noticed that first the iodomain driver is probed and then the rk808 on,but i need it reversed as rk808 registers regulators linked in iodomain via devicetree.
>
> How can i defer iodomain probing till rk808 is ready (regulators available defined as phandles in iodomain dt node)? Currently i get always ENODEV (property does not exist or regulator is not ready yet)....
>
> This is my current (dirty) source:
> https://github.com/frank-w/barebox-r2pro/commits/r2pro-iodomain
While I don't know what iodomains are, I had ported the rk808 driver to barebox for
use with the Rock Pi N10. I haven't come around to upstream it, because I haven't
figured out why I can't use the existing regmap helpers like Linux does.
I have sent you the patches as a reply to your mail. Perhaps they'll
save you some effort.
Cheers,
Ahmad
> regards Frank
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
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