diff options
author | Tudor Ambarus <[email protected]> | 2021-12-07 16:02:42 +0200 |
---|---|---|
committer | Tudor Ambarus <[email protected]> | 2021-12-07 17:05:10 +0200 |
commit | eb726c322020b95bfc1fbf0e83d0fd41c2500e96 (patch) | |
tree | e166c359a1382ec77386f0cdce8a00d782681800 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | f656b419d41aabafb6b526abc3988dfbf2e5c1ba (diff) |
mtd: spi-nor: core: Don't use mtd_info in the NOR's probe sequence of calls
Use NOR parameters in the probe's sequence of calls, thus
nor->params->size instead of nor->mtd.size and let the mtd_info
fields be used by the mtd calls (mtd->_erase, mtd->_read, mtd->_write).
mtd_info fields should not be used during probe because we haven't
registered mtd yet. It's safe to drop xilinx's setting of nor->mtd.size,
now that we use nor->params->size in spi_nor_set_addr_width().
Signed-off-by: Tudor Ambarus <[email protected]>
Reviewed-by: Michael Walle <[email protected]>
Reviewed-by: Pratyush Yadav <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions