Re: [PATCH v2] tee: remove TZMEM_MODE_GENERIC

"Arnd Bergmann" <[email protected]>
Newsgroups gmane.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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.