public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind@infradead.org>
To: Alexey Korolev <akorolev@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: 2nd problem with read_subpage() ?
Date: Tue, 29 Jul 2008 09:53:52 +0300	[thread overview]
Message-ID: <1217314432.3124.9.camel@sauron> (raw)

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 (Битюцкий Артём)

             reply	other threads:[~2008-07-29  6:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-29  6:53 Artem Bityutskiy [this message]
2008-07-29  9:30 ` 2nd problem with read_subpage() ? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1217314432.3124.9.camel@sauron \
    --to=dedekind@infradead.org \
    --cc=akorolev@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox