Message ID | 1526309557-7995-1-git-send-email-ulf.hansson@linaro.org (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
* Ulf Hansson <ulf.hansson@linaro.org> [180514 14:55]: > As dev_pm_domain_attach() isn't the only way to assign PM domain pointers > to devices, clearly we must allow a device to have the pointer already > being assigned. For this reason, return 0 instead of -EEXIST. > > Cc: Sylwester Nawrocki <s.nawrocki@samsung.com> > Cc: Marek Szyprowski <m.szyprowski@samsung.com> > Reported-by: Krzysztof Kozlowski <krzk@kernel.org> > Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> > Tested-by: Tested-by: Krzysztof Kozlowski <krzk@kernel.org> Fixes the issue for me too: Tested-by: Tony Lindgren <tony@atomide.com> -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, May 15, 2018 at 2:53 AM, Tony Lindgren <tony@atomide.com> wrote: > * Ulf Hansson <ulf.hansson@linaro.org> [180514 14:55]: >> As dev_pm_domain_attach() isn't the only way to assign PM domain pointers >> to devices, clearly we must allow a device to have the pointer already >> being assigned. For this reason, return 0 instead of -EEXIST. >> >> Cc: Sylwester Nawrocki <s.nawrocki@samsung.com> >> Cc: Marek Szyprowski <m.szyprowski@samsung.com> >> Reported-by: Krzysztof Kozlowski <krzk@kernel.org> >> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> >> Tested-by: Tested-by: Krzysztof Kozlowski <krzk@kernel.org> > > Fixes the issue for me too: > > Tested-by: Tony Lindgren <tony@atomide.com> I've applied the patch with the tag above, thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/base/power/common.c b/drivers/base/power/common.c index 5e4b481..390868c 100644 --- a/drivers/base/power/common.c +++ b/drivers/base/power/common.c @@ -106,7 +106,7 @@ int dev_pm_domain_attach(struct device *dev, bool power_on) int ret; if (dev->pm_domain) - return -EEXIST; + return 0; ret = acpi_dev_pm_attach(dev, power_on); if (!ret)