Re: [PATCH 3/7] firmware: arm_scmi: bus: iterate the id_table

From: Cristian Marussi
Date: Fri Dec 22 2023 - 10:40:50 EST


On Fri, Dec 15, 2023 at 07:56:31PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@xxxxxxx>
>
> There maybe more entries in driver->id_table, just like platform
> driver of_match_table. So iterate the id_table, not only use the 1st
> entry.
>

I understand the need, but you dont consider the unbind/unload part.

Moreover since I needed a similar mechanism for testing (multiple
protocols in a single driver), I posted yesterday a patch that does this
same thing that since I was using since ages but never posted (and it
takes care of unload/unbind too.).

https://lore.kernel.org/all/20231221151129.325749-1-cristian.marussi@xxxxxxx/

Please drop this patch and use the above (that soon should be in -next)

Thanks,
Cristian