All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [MTD] [NAND] nand_base.c: Allowing core driver to choose ECC block size for SW ECC scheme.
@ 2008-12-12 10:10 vimal singh
  0 siblings, 0 replies; 3+ messages in thread
From: vimal singh @ 2008-12-12 10:10 UTC (permalink / raw)
  To: linux-mtd

This patch allows core driver to choose ECC block size in sw ecc case.

Signed-off-by: Vimal Singh <vimalsingh@ti.com>
---
Current nand driver supports 256 and 512 byte software ecc.
This patch provides driver the flexibility to choose ecc size.
'256' bytes will be used by default if not provided by core driver.

--- a/drivers/mtd/nand/nand_base.c	2008-12-12 14:26:30.050002000 +0530
+++ b/drivers/mtd/nand/nand_base.c	2008-12-12 14:27:05.330000000 +0530
@@ -2622,7 +2622,8 @@ int nand_scan_tail(struct mtd_info *mtd)
 		chip->ecc.write_page = nand_write_page_swecc;
 		chip->ecc.read_oob = nand_read_oob_std;
 		chip->ecc.write_oob = nand_write_oob_std;
-		chip->ecc.size = 256;
+		if (!chip->ecc.size)
+			chip->ecc.size = 256;
 		chip->ecc.bytes = 3;
 		break;

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

* Re: [PATCH] [MTD] [NAND] nand_base.c: Allowing core driver to choose      ECC block size for SW ECC scheme.
       [not found] <57799.192.168.10.89.1229076658.squirrel@dbdmail.itg.ti.com>
  2009-01-06  6:14 ` vimal singh
@ 2009-01-13  6:54 ` vimal singh
  1 sibling, 0 replies; 3+ messages in thread
From: vimal singh @ 2009-01-13  6:54 UTC (permalink / raw)
  To: linux-mtd

Haven't seen any response on my patch, but didn't see it in git either.
Is there a problem or an issue I need to resolve?

--
vimal

2008/12/12 Vimal Singh <vimalsingh@ti.com>:
> This patch allows core driver to choose ECC block size in sw ecc case.
>
> Signed-off-by: Vimal Singh <vimalsingh@ti.com>
> ---
> Current nand driver supports 256 and 512 byte software ecc.
> This patch provides driver the flexibility to choose ecc size.
> '256' bytes will be used by default if not provided by core driver.
>
> --- a/drivers/mtd/nand/nand_base.c	2008-12-12 14:26:30.050002000 +0530
> +++ b/drivers/mtd/nand/nand_base.c	2008-12-12 14:27:05.330000000 +0530
> @@ -2622,7 +2622,8 @@ int nand_scan_tail(struct mtd_info *mtd)
>  		chip->ecc.write_page = nand_write_page_swecc;
>  		chip->ecc.read_oob = nand_read_oob_std;
>  		chip->ecc.write_oob = nand_write_oob_std;
> -		chip->ecc.size = 256;
> +		if (!chip->ecc.size)
> +			chip->ecc.size = 256;
>  		chip->ecc.bytes = 3;
>  		break;
>
>
>

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

* Re: [PATCH] [MTD] [NAND] nand_base.c: Allowing core driver to choose      ECC block size for SW ECC scheme.
       [not found] <57799.192.168.10.89.1229076658.squirrel@dbdmail.itg.ti.com>
@ 2009-01-06  6:14 ` vimal singh
  2009-01-13  6:54 ` vimal singh
  1 sibling, 0 replies; 3+ messages in thread
From: vimal singh @ 2009-01-06  6:14 UTC (permalink / raw)
  To: vimal singh; +Cc: linux-mtd

Is this patch was missed? This will add flexibility to generic nand driver to
choose ecc size. As, nand driver supports 256 and 512 byte software ecc's.

---
vimal

> This patch allows core driver to choose ECC block size in sw ecc case.
>
> Signed-off-by: Vimal Singh <vimalsingh@ti.com>
> ---
> Current nand driver supports 256 and 512 byte software ecc.
> This patch provides driver the flexibility to choose ecc size.
> '256' bytes will be used by default if not provided by core driver.
>
> --- a/drivers/mtd/nand/nand_base.c	2008-12-12 14:26:30.050002000 +0530
> +++ b/drivers/mtd/nand/nand_base.c	2008-12-12 14:27:05.330000000 +0530
> @@ -2622,7 +2622,8 @@ int nand_scan_tail(struct mtd_info *mtd)
>  		chip->ecc.write_page = nand_write_page_swecc;
>  		chip->ecc.read_oob = nand_read_oob_std;
>  		chip->ecc.write_oob = nand_write_oob_std;
> -		chip->ecc.size = 256;
> +		if (!chip->ecc.size)
> +			chip->ecc.size = 256;
>  		chip->ecc.bytes = 3;
>  		break;
>
>
>

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

end of thread, other threads:[~2009-01-13  6:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-12 10:10 [PATCH] [MTD] [NAND] nand_base.c: Allowing core driver to choose ECC block size for SW ECC scheme vimal singh
     [not found] <57799.192.168.10.89.1229076658.squirrel@dbdmail.itg.ti.com>
2009-01-06  6:14 ` vimal singh
2009-01-13  6:54 ` vimal singh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.