Re: [PATCH] PM / Domains: Don't return -EEXIST at attach when PM domain exists

From: Tony Lindgren
Date: Mon May 14 2018 - 20:53:53 EST


* Ulf Hansson <ulf.hansson@xxxxxxxxxx> [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@xxxxxxxxxxx>
> Cc: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
> Reported-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> Signed-off-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
> Tested-by: Tested-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>

Fixes the issue for me too:

Tested-by: Tony Lindgren <tony@xxxxxxxxxxx>