]> git.ipfire.org Git - thirdparty/linux.git/commit
pmdomain: mediatek: Add error messages for missing regmaps
authorChen-Yu Tsai <wenst@chromium.org>
Mon, 21 Apr 2025 09:09:50 +0000 (17:09 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 25 Apr 2025 10:17:55 +0000 (12:17 +0200)
commit0c1ddc7bb3e5ca77053b22f0fb5d9119550926b5
treeb57274bff302ee4378501c7bf888bd1e8efd5004
parent359a8ff433e110bda63e6a877fb77b1d962f8f85
pmdomain: mediatek: Add error messages for missing regmaps

A recent change to the syscon regmap API caused the MediaTek power
controller drivers to fail, as the required regmap could no longer be
retrieved. The error did not have an accompanying message, making the
failure less obvious. The aforementioned change has since been reverted.

Add error messages to all the regmap retrievals, thereby making all
error paths in scpsys_add_one_domain() have visible error messages.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20250421090951.395467-1-wenst@chromium.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/mediatek/mtk-pm-domains.c