]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Switch order of pinctrl and power domain calls
authorMichal Simek <michal.simek@xilinx.com>
Fri, 7 Jan 2022 15:38:09 +0000 (16:38 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Jan 2022 16:13:41 +0000 (09:13 -0700)
commitd8ef446fec1d5dde5a6238f452d04cda81f8752a
tree19659b3f5bf0674d3532c409ac5f38afd9db3cc9
parent743c562d0c5269740236864bdb0002e73ec3e614
dm: core: Switch order of pinctrl and power domain calls

The commit 3ad307784847 ("dm: core: device: enable power domain in probe")
introduced enabling power domain when device is probed.
By checking this sequence in Linux kernel was found that power domain is
handled first followed by pinctrl setting.

This patch is switching this order to follow Linux kernel that power
domains are handled first follow by pinctrl setting.

The issue was found on Xilinx Kria SOM where firmware is blocking setting
up pin configuration/muxes without enabling power domain for the specific
IP first.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c