From mboxrd@z Thu Jan 1 00:00:00 1970 From: dedekind1@gmail.com (Artem Bityutskiy) Date: Sun, 13 Jun 2010 12:16:06 +0300 Subject: [PATCH] ixp4xx: add support for static flash partitions In-Reply-To: <20100531162434.GA4599@riccoc20.at.omicron.at> References: <20100531162434.GA4599@riccoc20.at.omicron.at> Message-ID: <1276420566.19028.184.camel@localhost> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, 2010-05-31 at 18:24 +0200, Richard Cochran wrote: > This patch adds support for static flash partitioning from a platform > device. Also, we clean up some weirdness where statements were separated > by commas instead of semicolons. While we are at it, fix some minor bad > white space, too. > > Signed-off-by: Richard Cochran > --- > drivers/mtd/maps/ixp4xx.c | 37 ++++++++++++++++++++++++++++--------- > 1 files changed, 28 insertions(+), 9 deletions(-) > > diff --git a/drivers/mtd/maps/ixp4xx.c b/drivers/mtd/maps/ixp4xx.c > index 7b05152..5345d11 100644 > --- a/drivers/mtd/maps/ixp4xx.c > +++ b/drivers/mtd/maps/ixp4xx.c > @@ -108,7 +108,7 @@ static void ixp4xx_copy_from(struct map_info *map, void *to, > > if (from & 1) { > *dest++ = BYTE1(flash_read16(src)); > - src++; > + src++; > --len; > } Your patch mostly applies, except of this chunk, which was modified before by commit 53f2b1c86a1fa1414be93571062ac4c263fa9fbc Author: Jon Ringle Date: Wed Jan 13 09:36:10 2010 -0500 mtd: ixp4xx: fix reading from half-word boundary Fix handling of reads that don't start on a half-word boundary. Signed-off-by: Jon Ringle Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse I could fix your patch up myself, but I do not know the code, so please, re-send a patch against the latest mtd-2.6 tree. -- Best Regards, Artem Bityutskiy (????? ????????)