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

From: Rafael J. Wysocki
Date: Tue May 15 2018 - 04:06:56 EST

On Tue, May 15, 2018 at 2:53 AM, Tony Lindgren <tony@xxxxxxxxxxx> wrote:
> * 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>

I've applied the patch with the tag above, thanks!