[PATCH 2/3] nvmem: core: allow .read_post_process() callbacks to adjust data length

Michael Walle michael at walle.cc
Thu Jan 5 22:22:35 CET 2023


Hi,

Am 2023-01-05 18:10, schrieb Rafał Miłecki:
> From: Rafał Miłecki <rafal at milecki.pl>
> 
> Sometimes reading NVMEM cell value involves some data reformatting. It
> requires passing updated size value to the caller. Support that.

Wouldn't it make more sense to convert that driver to
proper nvmem layouts, where
  (1) you get that for free,
  (2) support others storages than just mtd
  (3) don't duplicate the mtd read code

-michael


More information about the U-Boot mailing list