From: Alejandro Lucero PM initialization could not be necessary for some devices. Avoid checking for supplier PM initialization if so. Signed-off-by: Alejandro Lucero --- drivers/base/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 4c0c373998a1..bf0513beafad 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -840,7 +840,7 @@ struct device_link *device_link_add(struct device *consumer, * SYNC_STATE_ONLY link, we don't check for reverse dependencies * because it only affects sync_state() callbacks. */ - if (!device_pm_initialized(supplier) + if ((!device_pm_not_required(supplier) && !device_pm_initialized(supplier)) || (!(flags & DL_FLAG_SYNC_STATE_ONLY) && device_is_dependent(consumer, supplier))) { link = NULL; -- 2.34.1