From mboxrd@z Thu Jan 1 00:00:00 1970 From: tony@atomide.com (Tony Lindgren) Date: Mon, 14 May 2018 17:53:42 -0700 Subject: [PATCH] PM / Domains: Don't return -EEXIST at attach when PM domain exists In-Reply-To: <1526309557-7995-1-git-send-email-ulf.hansson@linaro.org> References: <1526309557-7995-1-git-send-email-ulf.hansson@linaro.org> Message-ID: <20180515005342.GM98604@atomide.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org * Ulf Hansson [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 > Cc: Marek Szyprowski > Reported-by: Krzysztof Kozlowski > Signed-off-by: Ulf Hansson > Tested-by: Tested-by: Krzysztof Kozlowski Fixes the issue for me too: Tested-by: Tony Lindgren