]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pmdomain: imx: Make imx pgc power domain also set the fwnode
authorPengfei Li <pengfei.li_1@nxp.com>
Fri, 20 Oct 2023 18:59:49 +0000 (02:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:07:16 +0000 (17:07 +0000)
commitc2d14682b36d3e77f278fbccde8f2b8007dcf24e
tree1dda231f20bd39e1fcf87ff4e3ee3980966db839
parent8bd370cc3cd6b2b4e0d9b6bed7e9d6cf68517189
pmdomain: imx: Make imx pgc power domain also set the fwnode

[ Upstream commit 374de39d38f97b0e58cfee88da590b2d056ccf7f ]

Currently, The imx pgc power domain doesn't set the fwnode
pointer, which results in supply regulator device can't get
consumer imx pgc power domain device from fwnode when creating
a link.

This causes the driver core to instead try to create a link
between the parent gpc device of imx pgc power domain device and
supply regulator device. However, at this point, the gpc device
has already been bound, and the link creation will fail. So adding
the fwnode pointer to the imx pgc power domain device will fix
this issue.

Signed-off-by: Pengfei Li <pengfei.li_1@nxp.com>
Tested-by: Emil Kronborg <emil.kronborg@protonmail.com>
Fixes: 3fb16866b51d ("driver core: fw_devlink: Make cycle detection more robust")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20231020185949.537083-1-pengfei.li_1@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/imx/gpc.c