All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Norris <computersforpeace@gmail.com>
To: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Cc: linux-mtd@lists.infradead.org, antoine.tenart@free-electrons.com,
	robert.jarzmik@free.fr
Subject: Re: [PATCH 1/2] nand: pxa3xx: Increase READ_ID buffer and make the size static
Date: Wed, 12 Aug 2015 18:23:28 -0700	[thread overview]
Message-ID: <20150813012328.GA104137@google.com> (raw)
In-Reply-To: <1438612286-16070-2-git-send-email-ezequiel@vanguardiasur.com.ar>

On Mon, Aug 03, 2015 at 11:31:25AM -0300, Ezequiel Garcia wrote:
> The read ID count should be made as large as the maximum READ_ID size,
> so there's no need to have dynamic size. This commit sets the hardware
> maximum read ID count, which should be more than enough on all cases.
> Also, we get rid of the read_id_bytes, and use a macro instead.
> 
> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
> ---
>  drivers/mtd/nand/pxa3xx_nand.c | 28 ++++++----------------------
>  1 file changed, 6 insertions(+), 22 deletions(-)
> 
> diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
> index 1259cc5..0815f11 100644
> --- a/drivers/mtd/nand/pxa3xx_nand.c
> +++ b/drivers/mtd/nand/pxa3xx_nand.c
> @@ -126,6 +126,8 @@
>  #define EXT_CMD_TYPE_LAST_RW	1 /* Last naked read/write */
>  #define EXT_CMD_TYPE_MONO	0 /* Monolithic read/write */
>  
> +#define READ_ID_BYTES		7 /* Large enough to read 'JEDEC' */
> +

For the future: nand_base likes to read 8 bytes of ID for
regular ID decoding. But pxa3xx_nand doesn't use the standard ID code
still, so that's not a problem yet.

Brian

  reply	other threads:[~2015-08-13  1:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03 14:31 [PATCH 0/2] nand: pxa3xx: A couple device identification fixes Ezequiel Garcia
2015-08-03 14:31 ` [PATCH 1/2] nand: pxa3xx: Increase READ_ID buffer and make the size static Ezequiel Garcia
2015-08-13  1:23   ` Brian Norris [this message]
2015-08-14 15:56     ` Ezequiel Garcia
2015-08-14 16:12   ` Jonas Gorski
2015-08-14 16:18     ` Robert Jarzmik
2015-08-14 18:07       ` Ezequiel Garcia
2015-08-14 18:25         ` Brian Norris
2015-08-03 14:31 ` [PATCH 2/2] nand: pxa3xx: Increase initial buffer size Ezequiel Garcia
2015-08-08 19:19   ` Robert Jarzmik
2015-08-13  1:24   ` Brian Norris
2015-08-13  1:24 ` [PATCH 0/2] nand: pxa3xx: A couple device identification fixes Brian Norris

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=20150813012328.GA104137@google.com \
    --to=computersforpeace@gmail.com \
    --cc=antoine.tenart@free-electrons.com \
    --cc=ezequiel@vanguardiasur.com.ar \
    --cc=linux-mtd@lists.infradead.org \
    --cc=robert.jarzmik@free.fr \
    /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 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.