]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pmdomain: rockchip: Check if SMC could be handled by TA
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 19 Feb 2025 00:58:09 +0000 (08:58 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 19 Feb 2025 11:44:33 +0000 (12:44 +0100)
commit61eeb9678789644f118eff608d9031b5de4f719d
tree5c78936a2a4dad796ce4998b8f0e86a5719e2071
parent58ebba35ddab4868c921f970b60a77032362ef4c
pmdomain: rockchip: Check if SMC could be handled by TA

Non-existent trusted-firmware could lead to SMC calls into some unset
location, that breaks the system. Let's check that it's supported before
executing the SMC.

Reported-by: Steven Price <steven.price@arm.com>
Suggested-by: Heiko Stuebner <heiko@sntech.de>
Fixes: 58ebba35ddab ("pmdomain: rockchip: Add smc call to inform firmware")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/1739926689-151827-1-git-send-email-shawn.lin@rock-chips.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/rockchip/pm-domains.c