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 <>
Cc: Brian Masney <>
Cc: Lina Iyer <>
Cc: Stephen Boyd <>
Cc: Benjamin Gaignard <>
Signed-off-by: Linus Walleij <>
You can test this patch by pulling in this branch:
1 file changed