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; This will not work, as default value for CR1(N)V is 0 and that is the value one gets with incorrect addr_width as well. -- Best regards, Alexander Sverdlin. ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/