Re: [PATCH] nvmem: core: Allow sub-register width nvmem_regmap_write()

Sascha Hauer <[email protected]>
Newsgroups org.infradead.lists.barebox
Message-ID <[email protected]>
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 <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.