• M
    mtd: rawnand: check ONFI timings have been acked by the chip · 415ae78f
    Miquel Raynal 提交于
    Choosing ONFI timings when ->set/get_features() calls are supported
    by the NAND chip is a matter of reading the chip's ONFI parameter page
    and telling the chip the chosen mode (between all of the supported ones)
    with ->set_feature().
    
    Add a check on whether the chip "acked" the timing mode or not.
    
    This can be a problem for NAND chips that do not follow entirely the
    ONFI specification. These chips actually support other modes than
    "mode 0", but either:
    1/ do not update the timing mode register once a timing mode has been
       selected.
    or
    2/ do not support the TIMING_MODE featured and thus do not require users
       to change the timing mode at all.
    
    These issues will be addressed in another patch that will add the
    feature to overwrite NAND chips features within the parameter page, from
    the NAND chip driver.
    Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com>
    Tested-by: NHan Xu <han.xu@nxp.com>
    Signed-off-by: NBoris Brezillon <boris.brezillon@bootlin.com>
    415ae78f
nand_base.c 169.5 KB