public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] - NAND - Samsung LP nand feature support - nand_base.c upated
@ 2008-01-04 15:23 Sameer
  2008-04-22 15:09 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Sameer @ 2008-01-04 15:23 UTC (permalink / raw)
  To: linux-mtd

Hi,
This patch add the Large page NAND feature support for Samsung nand flash.

Regards,
-Sameer


Signed-off-by: Sameer U <sameersu@ti.com>
---
 drivers/mtd/nand/nand_base.c |    4 ++++
 1 files changed, 4 insertions(+)

Index: linux-omap-git/drivers/mtd/nand/nand_base.c
===================================================================
--- linux-omap-git.orig/drivers/mtd/nand/nand_base.c
+++ linux-omap-git/drivers/mtd/nand/nand_base.c
@@ -2322,6 +2322,10 @@ static struct nand_flash_dev *nand_get_f
	chip->options &= ~NAND_CHIPOPTIONS_MSK;
	chip->options |= type->options & NAND_CHIPOPTIONS_MSK;

+	/* adding feature support for large page samsung nand */
+	if ((*maf_id == NAND_MFR_SAMSUNG) && (mtd->writesize > 512))
+		chip->options |= NAND_SAMSUNG_LP_OPTIONS;
+
	/*
	 * Set chip as a default. Board drivers can override it, if necessary
	 */

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

* Re: [PATCH] - NAND - Samsung LP nand feature support - nand_base.c upated
  2008-01-04 15:23 [PATCH] - NAND - Samsung LP nand feature support - nand_base.c upated Sameer
@ 2008-04-22 15:09 ` David Woodhouse
  0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2008-04-22 15:09 UTC (permalink / raw)
  To: Sameer; +Cc: linux-mtd

On Fri, 2008-01-04 at 20:53 +0530, Sameer wrote:
> Hi,
> This patch add the Large page NAND feature support for Samsung nand flash.
> 
> Regards,
> -Sameer
> 
> 
> Signed-off-by: Sameer U <sameersu@ti.com>
> ---
>  drivers/mtd/nand/nand_base.c |    4 ++++
>  1 files changed, 4 insertions(+)
> 
> Index: linux-omap-git/drivers/mtd/nand/nand_base.c
> ===================================================================
> --- linux-omap-git.orig/drivers/mtd/nand/nand_base.c
> +++ linux-omap-git/drivers/mtd/nand/nand_base.c
> @@ -2322,6 +2322,10 @@ static struct nand_flash_dev *nand_get_f
> 	chip->options &= ~NAND_CHIPOPTIONS_MSK;
> 	chip->options |= type->options & NAND_CHIPOPTIONS_MSK;
> 
> +	/* adding feature support for large page samsung nand */
> +	if ((*maf_id == NAND_MFR_SAMSUNG) && (mtd->writesize > 512))
> +		chip->options |= NAND_SAMSUNG_LP_OPTIONS;
> +

This doesn't seem to make sense. These chips have the options bit set in
the ID table by default, and we mask them _out_ for non-Samsung chips.

Which chip are you using, and why isn't it working as intended?

-- 
dwmw2

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

end of thread, other threads:[~2008-04-22 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-04 15:23 [PATCH] - NAND - Samsung LP nand feature support - nand_base.c upated Sameer
2008-04-22 15:09 ` David Woodhouse

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