Commit e20813dc authored by Saravana Kannan's avatar Saravana Kannan Committed by Greg Kroah-Hartman

Revert "PM: domains: Delete usage of driver_deferred_probe_check_state()"

This reverts commit 5a46079a.

Quite a few issues have been reported [1][2][3][4][5][6] on the original
commit. While about half of them have been fixed, I'll need to fix the rest
before driver_deferred_probe_check_state() can be deleted. So, revert the
deletion for now.

[1] - https://lore.kernel.org/all/DU0PR04MB941735271F45C716342D0410886B9@DU0PR04MB9417.eurprd04.prod.outlook.com/
[2] - https://lore.kernel.org/all/CM6REZS9Z8AC.2KCR9N3EFLNQR@otso/
[3] - https://lore.kernel.org/all/CAD=FV=XYVwaXZxqUKAuM5c7NiVjFz5C6m6gAHSJ7rBXBF94_Tg@mail.gmail.com/
[4] - https://lore.kernel.org/all/Yvpd2pwUJGp7R+YE@euler/
[5] - https://lore.kernel.org/lkml/20220601070707.3946847-2-saravanak@google.com/
[6] - https://lore.kernel.org/all/CA+G9fYt_cc5SiNv1Vbse=HYY_+uc+9OYPZuJ-x59bROSaLN6fw@mail.gmail.com/

Fixes: 5a46079a ("PM: domains: Delete usage of driver_deferred_probe_check_state()")
Reported-by: default avatarPeng Fan <peng.fan@nxp.com>
Reported-by: default avatarLuca Weiss <luca.weiss@fairphone.com>
Reported-by: default avatarDoug Anderson <dianders@chromium.org>
Reported-by: default avatarColin Foster <colin.foster@in-advantage.com>
Reported-by: default avatarTony Lindgren <tony@atomide.com>
Reported-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Reported-by: default avatarNaresh Kamboju <naresh.kamboju@linaro.org>
Tested-by: default avatarTony Lindgren <tony@atomide.com>
Tested-by: default avatarPeng Fan <peng.fan@nxp.com>
Tested-by: default avatarDouglas Anderson <dianders@chromium.org>
Tested-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: default avatarTony Lindgren <tony@atomide.com>
Acked-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20220819221616.2107893-4-saravanak@google.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cffaf972
......@@ -2733,7 +2733,7 @@ static int __genpd_dev_pm_attach(struct device *dev, struct device *base_dev,
mutex_unlock(&gpd_list_lock);
dev_dbg(dev, "%s() failed to find PM domain: %ld\n",
__func__, PTR_ERR(pd));
return -ENODEV;
return driver_deferred_probe_check_state(base_dev);
}
dev_dbg(dev, "adding to PM domain %s\n", pd->name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment