
9 Oct
2024
9 Oct
'24
10:11 a.m.
Hi Simon, Mikhail,
sjg@chromium.org wrote on Tue, 8 Oct 2024 19:50:59 -0600:
Hi Mikhail,
On Tue, 1 Oct 2024 at 14:45, Mikhail Kshevetskiy mikhail.kshevetskiy@iopsys.eu wrote:
This patch series:
- sync spinand driver code with linux-6.10
- sync spinand flash support with linux-6.10
- add initial support of ecc engines
Up to now only software ecc is supported, but other engines can be add quite easily
Is there a uclass for ECC?
Not that I am aware of. Indeed maybe a uclass for these engines might make sense (maybe UCLASS_ECC_ENGINE). The uclass for them might be simple enough just to match devices with drivers and drivers and perhaps expose the few callbacks needed (like init/prepare/finish/cleanup). Then in the NAND layer when looking for a suitable device you could do a research by class ID.
Thanks, Miquèl