linux-stable/drivers/nvmem
Jorge Ramirez-Ortiz faa4dc52b4 nvmem: core: fix read buffer in place
[ Upstream commit 2fe518fecb ]

When the bit_offset in the cell is zero, the pointer to the msb will
not be properly initialized (ie, will still be pointing to the first
byte in the buffer).

This being the case, if there are bits to clear in the msb, those will
be left untouched while the mask will incorrectly clear bit positions
on the first byte.

This commit also makes sure that any byte unused in the cell is
cleared.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-06-22 08:17:15 +02:00
..
core.c nvmem: core: fix read buffer in place 2019-06-22 08:17:15 +02:00
imx-ocotp.c nvmem: imx-ocotp: Fix wrong register size 2017-08-06 18:59:48 -07:00
Kconfig nvmem: amlogic: Add Amlogic Meson EFUSE driver 2016-09-01 14:24:21 -07:00
lpc18xx_eeprom.c
Makefile nvmem: amlogic: Add Amlogic Meson EFUSE driver 2016-09-01 14:24:21 -07:00
meson-efuse.c nvmem: amlogic: Add Amlogic Meson EFUSE driver 2016-09-01 14:24:21 -07:00
mtk-efuse.c nvmem: mtk-efuse: remove nvmem regmap dependency 2016-06-25 07:42:55 -07:00
mxs-ocotp.c nvmem: mxs-ocotp: remove nvmem regmap dependency 2016-06-25 07:42:55 -07:00
qfprom.c
rockchip-efuse.c nvmem: rockchip-efuse: add rk3399-efuse support 2016-09-02 17:22:51 +02:00
sunxi_sid.c
vf610-ocotp.c