pinctrl: core: Handling pinmux and pinconf separately
authorMichal Simek <michal.simek@xilinx.com>
Wed, 10 Mar 2021 08:16:54 +0000 (09:16 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Mar 2021 15:36:44 +0000 (16:36 +0100)
commitb991f8c3622c8c9d01a1ada382682a731932e651
treee2993077f59d7427d25ecfa778bced38134913a9
parent57c0a4f0a071be916e534d6f6e52dcf0cd8df8ba
pinctrl: core: Handling pinmux and pinconf separately

Right now the handling order depends on how entries are coming which is
corresponding with order in DT. We have reached the case with DT overlays
where conf and mux descriptions are exchanged which ends up in sequence
that firmware has been asked to perform configuration before requesting the
pin.

The patch is enforcing the order that pin is requested all the time first
followed by pin configuration. This change will ensure that firmware gets
requests in the right order.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/cfbe01f791c2dd42a596cbda57e15599969b57aa.1615364211.git.michal.simek@xilinx.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c