Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 90774044 authored by Murali Nalajala's avatar Murali Nalajala Committed by Karthik Parsha
Browse files

qcom: rpm-smd: Use arch_init and implement deferred probe mechanism



Driver init calls are serialized using a BoardFile on current targets.
This will not be the case with newer targets. Use arch_init to initialize
rpm-smd driver early in the boot process.
Not having a BoardFile to serialize the driver init calls, leaves open the
possibility of another driver being initialized and calling into rpm-smd
driver before the rpm-smd driver is initialized. Provide a mechanism to
defer calls into rpm-smd until it is probed. Return -EPROBE_DEFER if any
of the rpm-smd APIs get called before it is probed.

Change-Id: Ieaff88549ecac25bd940ae934a6eb608c0a29c72
Signed-off-by: default avatarMurali Nalajala <mnalajal@codeaurora.org>
Signed-off-by: default avatarKarthik Parsha <kparsha@codeaurora.org>
parent 5f318d6e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment