[PATCH v6 18/21] mtd: spinand: Enhance the logic when picking a variant

Frieder Schrempf frieder.schrempf at kontron.de
Mon Aug 18 12:11:35 CEST 2025


Am 18.08.25 um 12:06 schrieb Mikhail Kshevetskiy:
> Currently the best variant picked in the first one in the list provided
> in the manufacturer driver. This worked well while all operations where
> performed at the same speed, but with the introduction of DTR transfers
> this no longer works correctly.
> 
> Let's continue iterating over all the alternatives, even if we find a
> match, keeping a reference over the theoretically fastest
> operation. Only at the end we can tell which variant is the best.
> 
> This logic happening only once at boot.
> 
> The patch is based on linux commit
> 666c299be696 (mtd: spinand: Enhance the logic when picking a variant)
> created by Miquel Raynal <miquel.raynal at bootlin.com>
> 
> The code was a bit restricted in the functionality since not all
> required functionality is supported in the u-boot.
> 
> Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu>

Reviewed-by: Frieder Schrempf <frieder.schrempf at kontron.de>


More information about the U-Boot mailing list