public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* 2nd problem with read_subpage() ?
@ 2008-07-29  6:53 Artem Bityutskiy
  2008-07-29  9:30 ` Artem Bityutskiy
  0 siblings, 1 reply; 7+ messages in thread
From: Artem Bityutskiy @ 2008-07-29  6:53 UTC (permalink / raw)
  To: Alexey Korolev; +Cc: linux-mtd

Glance at nand_do_read_ops():


if (likely(sndcmd)) {
        chip->cmdfunc(mtd, NAND_CMD_READ0, 0x00, page);
        sndcmd = 0;
}

/* Now read the page into the buffer */
if (unlikely(ops->mode == MTD_OOB_RAW))
        ret = chip->ecc.read_page_raw(mtd, chip, bufpoi);
else if (!aligned && NAND_SUBPAGE_READ(chip) && !oob)
        ret = chip->ecc.read_subpage(mtd, chip, col, bytes, bufpoi);
else
        ret = chip->ecc.read_page(mtd, chip, bufpoi);
if (ret < 0)
        break;


What happens is that first NAND_CMD_READ0 command is sent, and the
chip reads _full_ page 0. Then read_subpage() is called and chip
reads the subpage again. Does it make any sense?

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

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

end of thread, other threads:[~2008-07-29 10:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-29  6:53 2nd problem with read_subpage() ? Artem Bityutskiy
2008-07-29  9:30 ` Artem Bityutskiy
2008-07-29  9:31   ` Artem Bityutskiy
2008-07-29  9:50     ` Alexey Korolev
2008-07-29 10:32       ` Artem Bityutskiy
2008-07-29  9:45   ` Artem Bityutskiy
2008-07-29  9:54     ` Alexey Korolev

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