summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@collabora.com>2023-12-25 15:36:15 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-03-01 13:26:30 +0100
commit339ddc983bc1622341d95f244c361cda3da3a4ff (patch)
treec7e8783b77a55309f03a524a6237a3098d6dc785 /drivers/usb/cdns3/cdns3-debug.h
parent4dd73641d7ac7273751a893c7445f9d2dbcec2cb (diff)
pmdomain: mediatek: fix race conditions with genpd
[ Upstream commit c41336f4d69057cbf88fed47951379b384540df5 ] If the power domains are registered first with genpd and *after that* the driver attempts to power them on in the probe sequence, then it is possible that a race condition occurs if genpd tries to power them on in the same time. The same is valid for powering them off before unregistering them from genpd. Attempt to fix race conditions by first removing the domains from genpd and *after that* powering down domains. Also first power up the domains and *after that* register them to genpd. Fixes: 59b644b01cf4 ("soc: mediatek: Add MediaTek SCPSYS power domains") Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20231225133615.78993-1-eugen.hristev@collabora.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions