提交 53f2b1c8 编写于 作者: J Jon Ringle 提交者: David Woodhouse

mtd: ixp4xx: fix reading from half-word boundary

Fix handling of reads that don't start on a half-word boundary.
Signed-off-by: NJon Ringle <jon@ringle.org>
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 9c14b153
......@@ -107,7 +107,7 @@ static void ixp4xx_copy_from(struct map_info *map, void *to,
return;
if (from & 1) {
*dest++ = BYTE1(flash_read16(src));
*dest++ = BYTE1(flash_read16(src-1));
src++;
--len;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册