Re: [PATCH] tee: optee: rework TA bus scanning code

2022-08-26 Thread Ilias Apalodimas
Hey Etienne, Jens [...] > > > - if (IS_ENABLED(CONFIG_RNG_OPTEE)) { > > > - ret = device_bind_driver(dev, "optee-rng", "optee-rng", > > > &child); > > > + > > > + for (i = 0; i < MAX_TEE_BUS_DEV_COUNT; i++) { > > I would use ARRAY_SIZE(optee_bus_probe) straight here.

Re: [PATCH] tee: optee: rework TA bus scanning code

2022-08-26 Thread Etienne Carriere
Hello Ilias, Jens, On Fri, 26 Aug 2022 at 10:46, Jens Wiklander wrote: > > On Tue, Aug 23, 2022 at 10:11 AM Ilias Apalodimas > wrote: > > > > Late versions of OP-TEE support a pseudo bus. TAs that behave as > > hardware blocks (e.g TPM, RNG etc) present themselves on a bus which we can > > scan

Re: [PATCH] tee: optee: rework TA bus scanning code

2022-08-26 Thread Jens Wiklander
On Tue, Aug 23, 2022 at 10:11 AM Ilias Apalodimas wrote: > > Late versions of OP-TEE support a pseudo bus. TAs that behave as > hardware blocks (e.g TPM, RNG etc) present themselves on a bus which we can > scan. Unfortunately U-Boot doesn't support that yet. It's worth noting > that we already h

[PATCH] tee: optee: rework TA bus scanning code

2022-08-23 Thread Ilias Apalodimas
Late versions of OP-TEE support a pseudo bus. TAs that behave as hardware blocks (e.g TPM, RNG etc) present themselves on a bus which we can scan. Unfortunately U-Boot doesn't support that yet. It's worth noting that we already have a workaround for RNG. The details are in commit 70812bb83da6 ("