* [U-Boot] [PATCH 1/6] NAND: Correct the "chip_shift" calculation
@ 2009-11-07 19:24 s-paulraj at ti.com
2009-11-09 18:57 ` Scott Wood
0 siblings, 1 reply; 2+ messages in thread
From: s-paulraj at ti.com @ 2009-11-07 19:24 UTC (permalink / raw)
To: u-boot
From: Sandeep Paulraj <s-paulraj@ti.com>
This patch updates the "chip_shift" calculation in the
NAND driver. This is being done to sync up the NAND driver with
the kernel NAND driver.
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
---
drivers/mtd/nand/nand_base.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 30a3e9e..d5c53fe 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2628,7 +2628,7 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,
chip->bbt_erase_shift = chip->phys_erase_shift =
ffs(mtd->erasesize) - 1;
if (chip->chipsize & 0xffffffff)
- chip->chip_shift = ffs(chip->chipsize) - 1;
+ chip->chip_shift = ffs((unsigned)chip->chipsize) - 1;
else
chip->chip_shift = ffs((unsigned)(chip->chipsize >> 32)) + 31;
--
1.6.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH 1/6] NAND: Correct the "chip_shift" calculation
2009-11-07 19:24 [U-Boot] [PATCH 1/6] NAND: Correct the "chip_shift" calculation s-paulraj at ti.com
@ 2009-11-09 18:57 ` Scott Wood
0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2009-11-09 18:57 UTC (permalink / raw)
To: u-boot
On Sat, Nov 07, 2009 at 02:24:06PM -0500, s-paulraj at ti.com wrote:
> From: Sandeep Paulraj <s-paulraj@ti.com>
>
> This patch updates the "chip_shift" calculation in the
> NAND driver. This is being done to sync up the NAND driver with
> the kernel NAND driver.
>
> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Applied all 7 patches to next, thanks!
-Scott
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-09 18:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-07 19:24 [U-Boot] [PATCH 1/6] NAND: Correct the "chip_shift" calculation s-paulraj at ti.com
2009-11-09 18:57 ` Scott Wood
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.