public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
@ 2009-04-01  9:53 vimal singh
  2009-04-01 10:01 ` Artem Bityutskiy
  0 siblings, 1 reply; 9+ messages in thread
From: vimal singh @ 2009-04-01  9:53 UTC (permalink / raw)
  To: linux-mtd

I do not see this patch on tree, yet.

------------------------------ Original Message -------------------------------
Subject: [PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
From:    "vimal singh" <vimalsingh@ti.com>
Date:    Mon, February 23, 2009 1:46 pm
To:      linux-mtd@lists.infradead.org
-------------------------------------------------------------------------------

Type of 'byte_addr' needed to change for 512 byte ecc support.

Signed-off-by: Vimal Singh <vimalsingh@ti.com>
---

diff --git a/drivers/mtd/nand/nand_ecc.c b/drivers/mtd/nand/nand_ecc.c index
868147a..6b19058 100644
--- a/drivers/mtd/nand/nand_ecc.c
+++ b/drivers/mtd/nand/nand_ecc.c
@@ -429,7 +429,8 @@ int nand_correct_data(struct mtd_info *mtd, unsigned char
*buf,
 		      unsigned char *read_ecc, unsigned char *calc_ecc)
 {
 	unsigned char b0, b1, b2;
-	unsigned char byte_addr, bit_addr;
+	uint32_t byte_addr;
+	unsigned char bit_addr;
 	/* 256 or 512 bytes/ecc  */
 	const uint32_t eccsize_mult =
 			(((struct nand_chip *)mtd->priv)->ecc.size) >> 8;

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
  2009-04-01  9:53 [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc vimal singh
@ 2009-04-01 10:01 ` Artem Bityutskiy
  2009-04-01 10:02   ` Artem Bityutskiy
  2009-04-01 10:11   ` Singh, Vimal
  0 siblings, 2 replies; 9+ messages in thread
From: Artem Bityutskiy @ 2009-04-01 10:01 UTC (permalink / raw)
  To: vimal singh; +Cc: Frans Meulenbroeks, linux-mtd

On Wed, 2009-04-01 at 15:23 +0530, vimal singh wrote:
> I do not see this patch on tree, yet.
> 
> ------------------------------ Original Message -------------------------------
> Subject: [PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
> From:    "vimal singh" <vimalsingh@ti.com>
> Date:    Mon, February 23, 2009 1:46 pm
> To:      linux-mtd@lists.infradead.org
> -------------------------------------------------------------------------------
> 
> Type of 'byte_addr' needed to change for 512 byte ecc support.
> 
> Signed-off-by: Vimal Singh <vimalsingh@ti.com>

Probably because you did not try to CC the author of the
code and get his ack. Isn't this logical step to do?

I've CCed Frams.

> ---
> 
> diff --git a/drivers/mtd/nand/nand_ecc.c b/drivers/mtd/nand/nand_ecc.c index
> 868147a..6b19058 100644
> --- a/drivers/mtd/nand/nand_ecc.c
> +++ b/drivers/mtd/nand/nand_ecc.c
> @@ -429,7 +429,8 @@ int nand_correct_data(struct mtd_info *mtd, unsigned char
> *buf,
>  		      unsigned char *read_ecc, unsigned char *calc_ecc)
>  {
>  	unsigned char b0, b1, b2;
> -	unsigned char byte_addr, bit_addr;
> +	uint32_t byte_addr;
> +	unsigned char bit_addr;
>  	/* 256 or 512 bytes/ecc  */
>  	const uint32_t eccsize_mult =
>  			(((struct nand_chip *)mtd->priv)->ecc.size) >> 8;
> 

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
  2009-04-01 10:01 ` Artem Bityutskiy
@ 2009-04-01 10:02   ` Artem Bityutskiy
  2009-04-01 10:11   ` Singh, Vimal
  1 sibling, 0 replies; 9+ messages in thread
From: Artem Bityutskiy @ 2009-04-01 10:02 UTC (permalink / raw)
  To: vimal singh; +Cc: Frans Meulenbroeks, linux-mtd

On Wed, 2009-04-01 at 13:01 +0300, Artem Bityutskiy wrote:
> Probably because you did not try to CC the author of the
> code and get his ack. Isn't this logical step to do?
> 
> I've CCed Frams.

Pardon, Frans.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
  2009-04-01 10:01 ` Artem Bityutskiy
  2009-04-01 10:02   ` Artem Bityutskiy
@ 2009-04-01 10:11   ` Singh, Vimal
  2009-04-24  6:32     ` Singh, Vimal
  1 sibling, 1 reply; 9+ messages in thread
From: Singh, Vimal @ 2009-04-01 10:11 UTC (permalink / raw)
  To: dedekind@infradead.org; +Cc: Frans, Meulenbroeks, linux-mtd@lists.infradead.org

> Probably because you did not try to CC the author of the
> code and get his ack. Isn't this logical step to do?
> 
> I've CCed Frams.

I am not so old with open source, so missed that.
Anyways, thanks... 

Best regards,
vimal

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
  2009-04-01 10:11   ` Singh, Vimal
@ 2009-04-24  6:32     ` Singh, Vimal
  2009-04-24  7:39       ` Artem Bityutskiy
  0 siblings, 1 reply; 9+ messages in thread
From: Singh, Vimal @ 2009-04-24  6:32 UTC (permalink / raw)
  To: dedekind@infradead.org; +Cc: Frans, Meulenbroeks, linux-mtd@lists.infradead.org

It looks like Frans is not active to this list, now a days...
so can some one else review this patch:
http://lists.infradead.org/pipermail/linux-mtd/2009-April/025094.html

---
vimal
________________________________________
From: Singh, Vimal
Sent: Wednesday, April 01, 2009 3:41 PM
To: dedekind@infradead.org
Cc: linux-mtd@lists.infradead.org; Frans Meulenbroeks
Subject: RE: [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc

> Probably because you did not try to CC the author of the
> code and get his ack. Isn't this logical step to do?
>
> I've CCed Frams.

I am not so old with open source, so missed that.
Anyways, thanks...

Best regards,
vimal

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
  2009-04-24  6:32     ` Singh, Vimal
@ 2009-04-24  7:39       ` Artem Bityutskiy
  2009-04-24  8:27         ` Singh, Vimal
  0 siblings, 1 reply; 9+ messages in thread
From: Artem Bityutskiy @ 2009-04-24  7:39 UTC (permalink / raw)
  To: vimalsingh; +Cc: Frans Meulenbroeks, linux-mtd@lists.infradead.org

Hi,

On Fri, 2009-04-24 at 12:02 +0530, Singh, Vimal wrote:
> It looks like Frans is not active to this list, now a days...
> so can some one else review this patch:
> http://lists.infradead.org/pipermail/linux-mtd/2009-April/025094.html


It did not apply. Please, send patches which can be applied.

Please, fix you e-mail. Is your address really
"IMCEAEX-_O=TI_OU=BD_CN=RECIPIENTS_CN=X0094262@dlee86.itg.ti.com" ?

But I fixed both - your patch and your e-mail. Please, check your other
patches and re-send them if they are corrupted. Please, take a look at
Documentation/SubmittingPatches

I've amended your patch a little. Instead of using 'uint32_t', I
made it to be 'int'. I do not see any reason to limit the compiler
and CPU by 32 bits. I do not appreciate unreasonable usage of these
'uint32_t' and similar types, and I think 'int' is perfectly fine
in your case. Could you please verify this? It is here:
http://git.infradead.org/users/dedekind/l2-mtd-2.6.git?a=commit;h=e3b8cec094d12aabbfd77c462b1932537e1c239e

Thanks!

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
  2009-04-24  7:39       ` Artem Bityutskiy
@ 2009-04-24  8:27         ` Singh, Vimal
  2009-04-24  9:31           ` Artem Bityutskiy
  0 siblings, 1 reply; 9+ messages in thread
From: Singh, Vimal @ 2009-04-24  8:27 UTC (permalink / raw)
  To: dedekind@infradead.org; +Cc: Frans, Meulenbroeks, linux-mtd@lists.infradead.org

On Fri, Apr 24, 2009 at 1:09 PM, Artem Bityutskiy <dedekind@infradead.org> wrote:
> Hi,
>
> On Fri, 2009-04-24 at 12:02 +0530, Singh, Vimal wrote:
>> It looks like Frans is not active to this list, now a days...
>> so can some one else review this patch:
>> http://lists.infradead.org/pipermail/linux-mtd/2009-April/025094.html
>
>
> It did not apply. Please, send patches which can be applied.
>
> Please, fix you e-mail. Is your address really
> "IMCEAEX-_O=TI_OU=BD_CN=RECIPIENTS_CN=X0094262@dlee86.itg.ti.com" ?
>
> But I fixed both - your patch and your e-mail. Please, check your other
> patches and re-send them if they are corrupted. Please, take a look at
> Documentation/SubmittingPatches
>
> I've amended your patch a little. Instead of using 'uint32_t', I
> made it to be 'int'. I do not see any reason to limit the compiler
> and CPU by 32 bits. I do not appreciate unreasonable usage of these
> 'uint32_t' and similar types, and I think 'int' is perfectly fine

I agree to not limit it to 32bit. But Then I will prefer to use 'unsigned int'
rather just 'int', since 'byte_addr' is always a positive number.

> in your case. Could you please verify this? It is here:
> http://git.infradead.org/users/dedekind/l2-mtd-2.6.git?a=commit;h=e3b8cec094d12aabbfd77c462b1932537e1c239e

I still do not see this change in commit, this is still 'uint32_t'.

Thanks and Regards,
vimal

>
> Thanks!
>
> --
> Best regards,
> Artem Bityutskiy (Битюцкий Артём)
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
  2009-04-24  8:27         ` Singh, Vimal
@ 2009-04-24  9:31           ` Artem Bityutskiy
  2009-04-25 14:55             ` Frans Meulenbroeks
  0 siblings, 1 reply; 9+ messages in thread
From: Artem Bityutskiy @ 2009-04-24  9:31 UTC (permalink / raw)
  To: Singh, Vimal; +Cc: Frans Meulenbroeks, linux-mtd@lists.infradead.org

On Fri, 2009-04-24 at 13:57 +0530, Singh, Vimal wrote:
> > in your case. Could you please verify this? It is here:
> > http://git.infradead.org/users/dedekind/l2-mtd-2.6.git?a=commit;h=e3b8cec094d12aabbfd77c462b1932537e1c239e
> 
> I still do not see this change in commit, this is still 'uint32_t'.

Fixed.

http://git.infradead.org/users/dedekind/l2-mtd-2.6.git?a=commit;h=bb36f87562cb8941aec7d132351f60b8d93b93b3

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
  2009-04-24  9:31           ` Artem Bityutskiy
@ 2009-04-25 14:55             ` Frans Meulenbroeks
  0 siblings, 0 replies; 9+ messages in thread
From: Frans Meulenbroeks @ 2009-04-25 14:55 UTC (permalink / raw)
  To: dedekind; +Cc: Singh, Vimal, linux-mtd@lists.infradead.org

Vimal, Artem,

Thanks for fixing this. I thought I had acked the original patch but
apparently I didn't. Sorry.
I'm happy with the patch as it is now. Glad you solved it.

Frans.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-04-25 14:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-01  9:53 [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc vimal singh
2009-04-01 10:01 ` Artem Bityutskiy
2009-04-01 10:02   ` Artem Bityutskiy
2009-04-01 10:11   ` Singh, Vimal
2009-04-24  6:32     ` Singh, Vimal
2009-04-24  7:39       ` Artem Bityutskiy
2009-04-24  8:27         ` Singh, Vimal
2009-04-24  9:31           ` Artem Bityutskiy
2009-04-25 14:55             ` Frans Meulenbroeks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox