* [PATCH] [MTD] maps/ixp4xx: Fix reading from half-word boundary
@ 2010-01-13 14:36 Jon Ringle
2010-01-28 16:19 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Jon Ringle @ 2010-01-13 14:36 UTC (permalink / raw)
To: linux-mtd, dsaxena; +Cc: Jon Ringle, dedekind1
ixp4xx updates:
- Fix handling of reads that don't start on a half-word boundary.
Signed-off-by: Jon Ringle <jon@ringle.org>
---
drivers/mtd/maps/ixp4xx.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/maps/ixp4xx.c b/drivers/mtd/maps/ixp4xx.c
index 7214b87..6b540a5 100644
--- a/drivers/mtd/maps/ixp4xx.c
+++ b/drivers/mtd/maps/ixp4xx.c
@@ -107,8 +107,8 @@ static void ixp4xx_copy_from(struct map_info *map, void *to,
return;
if (from & 1) {
- *dest++ = BYTE1(flash_read16(src));
- src++;
+ *dest++ = BYTE1(flash_read16(src-1));
+ src++;
--len;
}
--
1.6.5.rc2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] [MTD] maps/ixp4xx: Fix reading from half-word boundary
2010-01-13 14:36 [PATCH] [MTD] maps/ixp4xx: Fix reading from half-word boundary Jon Ringle
@ 2010-01-28 16:19 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2010-01-28 16:19 UTC (permalink / raw)
To: Jon Ringle; +Cc: linux-mtd, dsaxena
On Wed, 2010-01-13 at 09:36 -0500, Jon Ringle wrote:
> ixp4xx updates:
> - Fix handling of reads that don't start on a half-word boundary.
>
>
> Signed-off-by: Jon Ringle <jon@ringle.org>
I've pushed this patch to my l2-mtd-2.6.git/master tree
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-28 16:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 14:36 [PATCH] [MTD] maps/ixp4xx: Fix reading from half-word boundary Jon Ringle
2010-01-28 16:19 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).