pinctrl: qcom: Enable device links to consumers
A recent core change makes it possible to create device links
between a pin controller and its consumers. This is necessary
to ascertain the right suspend/resume order for the devices:
if a device is using a certain pin control state and want
to switch that before/after going to suspend, then the pin
controller may not be suspended already, and conversely
on the resume path.
Make sure any qcom pin control consumers are suspended before
the qcom pin control is suspended.
Since Qualcomm is one of the few pin controllers implementing
suspend/resume I suppose you will see this problem sooner
or later so let's see if we can just fix it right now before
you run into it.
Cc: Bjorn Andersson <email@example.com>
Cc: Brian Masney <firstname.lastname@example.org>
Cc: Lina Iyer <email@example.com>
Cc: Stephen Boyd <firstname.lastname@example.org>
Cc: Benjamin Gaignard <email@example.com>
Signed-off-by: Linus Walleij <firstname.lastname@example.org>
You can test this patch by pulling in this branch:
1 file changed