linux/drivers/base/regmap
Jack Pham b1da947917 regmap: spmi: Fix regmap_spmi_ext_read in multi-byte case
[ Upstream commit dec8e8f6e6 ]

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: c9afbb05a9 ("regmap: spmi: support base and extended register spaces")
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2016-05-17 14:31:25 -04:00
..
internal.h regmap: introduce regmap_name to fix syscon regmap trace events 2015-04-16 20:11:29 -04:00
Kconfig regmap: Add explicit dependencies to catch "select" misuse 2014-08-17 08:54:14 -05:00
Makefile regmap: add SPMI support 2013-10-28 12:51:43 -07:00
regcache-flat.c regmap: flat: Add flat cache type 2013-01-02 10:58:53 +00:00
regcache-lzo.c regmap: cache: Pass the map rather than the word size when updating values 2013-03-04 10:30:27 +08:00
regcache-rbtree.c regmap: regcache-rbtree: Clean new present bits on present bitmap resize 2015-09-17 01:29:53 -04:00
regcache.c regmap: introduce regmap_name to fix syscon regmap trace events 2015-04-16 20:11:29 -04:00
regmap-debugfs.c regmap: debugfs: Don't bother actually printing when calculating max length 2015-10-27 22:14:04 -04:00
regmap-i2c.c regmap: add DT endianness binding support. 2014-08-16 16:56:23 -05:00
regmap-irq.c regmap: irq: Fix possible ZERO_SIZE_PTR pointer dereferencing error. 2014-05-26 16:37:04 +01:00
regmap-mmio.c Merge remote-tracking branches 'regmap/topic/irq', 'regmap/topic/le', 'regmap/topic/mmio' and 'regmap/topic/rbtree' into regmap-next 2014-06-02 17:07:39 +01:00
regmap-spi.c regmap: add DT endianness binding support. 2014-08-16 16:56:23 -05:00
regmap-spmi.c regmap: spmi: Fix regmap_spmi_ext_read in multi-byte case 2016-05-17 14:31:25 -04:00
regmap.c regmap: Fix possible shift overflow in regmap_field_init() 2015-07-03 23:02:31 -04:00