]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domains: Use the base device for driver_deferred_probe_check_state()
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 25 Apr 2019 09:04:10 +0000 (11:04 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Apr 2019 21:18:03 +0000 (23:18 +0200)
commitce9d1a8c61034d79dcbc795c7a68d7fad86b0c1c
treec8b5a497272233836c58ba1953cab67b958feda4
parent45119eba32d8ee9de9f1c1fb518cf8cf9aefaffe
PM / Domains: Use the base device for driver_deferred_probe_check_state()

When genpd fails to attach a device to one of its multiple PM domains,
we end up calling driver_deferred_probe_check_state() for the recently
allocated virtual device. This is incorrect, as it's the base device
that is being probed.

Fix this by passing along the base device to __genpd_dev_pm_attach()
and use that instead.

Fixes: a52fd090e402 ("PM / Domains: Stop deferring probe at the end of initcall")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c