Re: [PATCH v2] tee: remove TZMEM_MODE_GENERIC
"Arnd Bergmann" <[email protected]> Tue, 04 Aug 2026 09:40:28 +0200
| Newsgroups | org.trustedfirmware.lists.op-tee,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Aug 4, 2026, at 06:29, Amirreza Zarrabi wrote:
> Hi Julian,
>
> With this change, is QCOM_TZMEM_MODE_SHMBRIDGE still needed?
>
> I think QCOM_TZMEM_MODE_SHMBRIDGE can therefore be removed entirely,
> along with the conditional declarations and stubs in qcom_tzmem.h and
> the corresponding select in the qcomtee Kconfig.
Looking at it again, I see that the patch does not actually do
what I had expected. As you say the option no longer has any
effect at all, when I thought the tzmem driver would just default
back to generic mode without shmbridge being enabled.
What we probably want here is to change it to
#ifndef CONFIG_QCOM_TZMEM_MODE_SHMBRIDGE
...
#else
...
#endif
to keep the behavior unchanged and just fix the Kconfig logic.
Arnd