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

Mikhail Kshevetskiy mikhail.kshevetskiy at iopsys.eu
Mon Aug 18 22:00:46 CEST 2025


Hello Frieder, is there any comments on patches 3, 4, 11, 12, 13, 14,
15, 16, 17, 19, 20 ?

Mikhail

On 18.08.2025 13:11, Frieder Schrempf wrote:
> 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