dm: pinctrl: Avoid race condition on probe for UCLASS_PINCTRL
authorPatrice Chotard <patrice.chotard@st.com>
Mon, 25 Feb 2019 12:39:55 +0000 (13:39 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 12 Apr 2019 02:10:05 +0000 (20:10 -0600)
commitdce406e0a2d776424efd03aa6a83b817557d2373
tree4d7554e015ef3f329134c23f15db3bb7c76276bd
parentf00d89fd506755d68a224c19fd77c70e9199fcb4
dm: pinctrl: Avoid race condition on probe for UCLASS_PINCTRL

In case of system with several pin-controller device, probe the first
UCLASS_PINCTRL by seq number (defined by alias) to avoid race condition
with I2C PINCONTROL driver for GPIO expander (GPIO expander need I2C bus,
I2C driver need PINCONFIG).

Signed-off-by: Patrick DELAUNAY <patrick.delaunay@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/pinctrl-uclass.c