public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: linux-mtd@lists.infradead.org,
	Richard Weinberger <richard@nod.at>,
	David Woodhouse <dwmw2@infradead.org>,
	Brian Norris <computersforpeace@gmail.com>,
	linux-kernel@vger.kernel.org (open list)
Subject: Re: [PATCH] mtd: nand: add ESMT manufacturer
Date: Thu, 9 Jun 2016 22:39:16 +0200	[thread overview]
Message-ID: <20160609223916.29f79f43@bbrezillon> (raw)
In-Reply-To: <1465495811-3551-1-git-send-email-zajec5@gmail.com>

On Thu,  9 Jun 2016 20:10:11 +0200
Rafał Miłecki <zajec5@gmail.com> wrote:

> I got device with ESMT (Elite Semiconductor Memory Technology Inc)
> F59L1G81MA flash that was detected as:
> [    0.852034] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
> [    0.858402] nand: Unknown NAND 128MiB 3,3V 8-bit
> [    0.863031] nand: 128MiB, SLC, page size: 2048, OOB size: 64
> 
> According to the F59L1G81MA datasheet (and Read Id documentation) C8h is
> a "Maker Code" which should mean ESMT. Add it to fix above "Unknown".
> 
> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

Applied.

Thanks,

Boris

> ---
>  drivers/mtd/nand/nand_ids.c | 1 +
>  include/linux/mtd/nand.h    | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c
> index ccc05f5..2af9869 100644
> --- a/drivers/mtd/nand/nand_ids.c
> +++ b/drivers/mtd/nand/nand_ids.c
> @@ -168,6 +168,7 @@ struct nand_flash_dev nand_flash_ids[] = {
>  /* Manufacturer IDs */
>  struct nand_manufacturers nand_manuf_ids[] = {
>  	{NAND_MFR_TOSHIBA, "Toshiba"},
> +	{NAND_MFR_ESMT, "ESMT"},
>  	{NAND_MFR_SAMSUNG, "Samsung"},
>  	{NAND_MFR_FUJITSU, "Fujitsu"},
>  	{NAND_MFR_NATIONAL, "National"},
> diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
> index fbe8e16..8dd6e01 100644
> --- a/include/linux/mtd/nand.h
> +++ b/include/linux/mtd/nand.h
> @@ -783,6 +783,7 @@ static inline void nand_set_controller_data(struct nand_chip *chip, void *priv)
>   * NAND Flash Manufacturer ID Codes
>   */
>  #define NAND_MFR_TOSHIBA	0x98
> +#define NAND_MFR_ESMT		0xc8
>  #define NAND_MFR_SAMSUNG	0xec
>  #define NAND_MFR_FUJITSU	0x04
>  #define NAND_MFR_NATIONAL	0x8f



-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

      reply	other threads:[~2016-06-09 20:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-09 18:10 [PATCH] mtd: nand: add ESMT manufacturer Rafał Miłecki
2016-06-09 20:39 ` Boris Brezillon [this message]

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=20160609223916.29f79f43@bbrezillon \
    --to=boris.brezillon@free-electrons.com \
    --cc=computersforpeace@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard@nod.at \
    --cc=zajec5@gmail.com \
    /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