Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regmap: spmi: Fix regmap_spmi_ext_read in multi-byte case
[ Upstream commit dec8e8f ] Specifically for the case of reads that use the Extended Register Read Long command, a multi-byte read operation is broken up into 8-byte chunks. However the call to spmi_ext_register_readl() is incorrectly passing 'val_size', which if greater than 8 will always fail. The argument should instead be 'len'. Fixes: c9afbb0 ("regmap: spmi: support base and extended register spaces") Signed-off-by: Jack Pham <[email protected]> Signed-off-by: Mark Brown <[email protected]> Cc: [email protected] Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information