NAND bad block checking when no memory based BBT is available
David Woodhouse
dwmw2 at infradead.org
Thu Apr 26 12:40:43 EDT 2007
On Thu, 2007-04-26 at 17:38 +0200, Knobloch, Thomas wrote:
> if (getchip) {
> page = (int)(ofs >> chip->page_shift);
> chipnr = (int)(ofs >> chip->chip_shift);
>
> nand_get_device(chip, mtd, FL_READING);
>
> /* Select the NAND device */
> chip->select_chip(mtd, chipnr);
> } else
> page = (int)ofs;
I think we'll accept a patch which makes that last line also shift right
by chip->page_shift.
--
dwmw2
More information about the linux-mtd
mailing list