Re: [PATCH] soc: qcom: pbs: Preserve trigger errors during cleanup

From: Bjorn Andersson

Date: Fri Dec 04 2026 - 18:37:44 EST



On Tue, 17 Nov 2026 09:55:08 +0530, Kusuma Harish Etamsetti wrote:
> When a regmap operation or the acknowledgment wait fails in the
> trigger loop, ret contains the appropriate error. The final SCRATCH1
> cleanup overwrites ret, however, so a successful cleanup makes
> qcom_pbs_trigger_event() incorrectly return success.
>
> Keep the cleanup result separate and return the original trigger error
> when one occurred. This lets callers such as the LPG driver detect that
> the PBS sequence was not triggered.
>
> [...]

Applied, thanks!

[1/1] soc: qcom: pbs: Preserve trigger errors during cleanup
commit: d1a7aef78ce599d9f08f619c9c67ba7500417373

Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>