Hi Rickard, Rickard X Andersson <Rickard.Andersson@xxxxxxxx> wrote on Wed, 20 May 2020 13:32:14 +0000: > Hi Miquel, > > > I just a branch with a new helper to fill this field, it is called > > onfi_find_equivalent_sdr_mode(). > > > > It is only compile tested so please verify it works. > > I have created a new patchset that I will send shortly. This patchset does however not use onfi_find_equivalent_sdr_mode(..), that could be a future improvment. My patchset falls back to mode 0 if the specialized timings does not work for the controller. Thanks for updating! Actually I wrote it because of a previous discussion with Boris who told me that this mode field would be badly understood and he actually got it right as in your previous submission this field was set to 0 while, IIRC, you told me it was close to mode 3. This is important to controllers that cannot tweak the parameters but just pick an ONFI mode. So the timings they choose must fit the slowest mins and fastest maxs of your new set of timings. Hence the use of the helper which seems needed. It is actually pretty straightforward so I don't understand your choice of not making use of it? As this is the primary contribution of this type, I would like to get it right so that other contributors can refer to it :) Thanks, Miquèl ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/