Re: [PATCH] firmware: qcom: scm: Fix resource cleanup on probe failure

From: Bartosz Golaszewski

Date: Thu Jun 25 2026 - 09:18:33 EST


On Thu, 25 Jun 2026 13:27:50 +0200, Mukesh Ojha
<mukesh.ojha@xxxxxxxxxxxxxxxx> said:
> On Thu, Jun 25, 2026 at 03:06:07AM -0700, Bartosz Golaszewski wrote:
>>
>> That being said, I think we should just modify qcom_tzmem_enable() to silently
>> ignore subsequent calls. It's meant to be called once and stay enabled so I
>> suggest just removing the check returning -EBUSY.
>
> So, you meant to let it call twice..even if it is doing.
>

Or maybe just use DO_ONCE()?

Bart