Hi! On 03/12/2018 09:23, Boris Brezillon wrote: >> This is the same instruction 65h which is used to read regs and which >> appears in SMPT headers, it is a chicken-egg problem. > Oh, right, I remember now. Not a smart decision from Spansion :-/. > >> Therefore, I don't know if it's possible to provide smarter heuristics >> here. > Maybe: > > ref_cr1 = read_CR1_using_RDCR() > > for_each_possible_dummy_and_addr_width > cr1 = read_CR1_using_RDAR() > if (cr1 == ref_cr1) > break; > > >> But without it Spansion S25FS-S Family is now broken by SFDP. > Do you have [1] in your tree? IIRC, this fixed Yogesh issue. > > [1]https://patchwork.ozlabs.org/patch/994765/ This is definitely unrelated, in my case SMPT is happily processed leading to completely wrong mapping because command 65h with addr_width == 0 always returns 0. -- Best regards, Alexander Sverdlin. ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/