[lkml]   [2019]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] nvmem: core: fix read buffer in place

On 20/03/2019 19:32, Jorge Ramirez-Ortiz wrote:
> 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 <>
Applied Thanks,

 \ /
  Last update: 2019-04-04 13:02    [W:0.049 / U:28.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site