[PATCH] nvmem: core: Allow sub-register width nvmem_regmap_write()
Sascha Hauer
s.hauer at pengutronix.de
Mon May 25 23:26:20 PDT 2026
On Mon, 25 May 2026 13:45:58 +0200, Jonas Rebmann wrote:
> The previous implementation of nvmem_regmap_write() required the
> supplied value to be a multiple of the register size defined by the
> driver ("expect users to observe alignment").
>
> This is however not respected by nvmem cell functions
> nvmem_cell_prepare_write_buffer()/__nvmem_cell_entry_write() which
> prepare the value buffer based on the "bits" supplied in the devicetree,
> resulting in EINVAL errors if an nvmem cell with "bits" spanning less
> bytes than val_bytes = DIV_ROUND_UP(config->val_bits, 8) of the nvmem
> driver.
>
> [...]
Applied, thanks!
[1/1] nvmem: core: Allow sub-register width nvmem_regmap_write()
https://git.pengutronix.de/cgit/barebox/commit/?id=1d6e3066cf7f (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list