All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Michael Walle <michael@walle.cc>
Cc: Tudor Ambarus <tudor.ambarus@microchip.com>,
	Pratyush Yadav <pratyush@kernel.org>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	linux-mtd@lists.infradead.org
Subject: Re: [PATCH] mtd: spi-nor: gigadevice: Add support for gd25lr256e
Date: Thu, 22 Sep 2022 18:11:19 +0300	[thread overview]
Message-ID: <Yyx7FwIPM19UPK+H@black.fi.intel.com> (raw)
In-Reply-To: <YyxxlSscwnWSyfy3@black.fi.intel.com>

Hi,

On Thu, Sep 22, 2022 at 05:30:45PM +0300, Mika Westerberg wrote:
> On Thu, Sep 22, 2022 at 04:15:37PM +0200, Michael Walle wrote:
> > Am 2022-09-22 15:56, schrieb Mika Westerberg:
> > > Add support for this 32MB serial flash.
> > > 
> > > Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> > > ---
> > >  drivers/mtd/spi-nor/gigadevice.c | 4 ++++
> > >  1 file changed, 4 insertions(+)
> > > 
> > > diff --git a/drivers/mtd/spi-nor/gigadevice.c
> > > b/drivers/mtd/spi-nor/gigadevice.c
> > > index 119b38e6fc2a..7a7f5cb67a9e 100644
> > > --- a/drivers/mtd/spi-nor/gigadevice.c
> > > +++ b/drivers/mtd/spi-nor/gigadevice.c
> > > @@ -57,6 +57,10 @@ static const struct flash_info gigadevice_nor_parts[]
> > > = {
> > >  		FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6)
> > >  		FIXUP_FLAGS(SPI_NOR_4B_OPCODES)
> > >  		.fixups = &gd25q256_fixups },
> > > +	{ "gd25lr256e", INFO(0xc86719, 0, 64 * 1024, 512)
> > 
> > There doesn't seem to be a public datasheet. Does this flash support SFDP?
> > 
> > In that case, please just use
> > 	{ "gd25lr256e", INFO(0xc86719, 0, 0, 0),
> > 		FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
> > 		PARSE_SFDP
> > 	}
> > 
> 
> Sure, let me check this one works and update the patch accordinglly.

Tried this now (I did not find the datasheet either anymore) but I get:

  spi-nor spi0.0: BFPT parsing failed. Please consider using SPI_NOR_SKIP_SFDP when declaring the flash

So I suspect SFDP is not supported by this chip?

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  reply	other threads:[~2022-09-22 15:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-22 13:56 [PATCH] mtd: spi-nor: gigadevice: Add support for gd25lr256e Mika Westerberg
2022-09-22 14:15 ` Michael Walle
2022-09-22 14:30   ` Mika Westerberg
2022-09-22 15:11     ` Mika Westerberg [this message]
2022-09-22 15:38       ` Michael Walle
2022-09-23  9:33         ` Mika Westerberg
2022-09-27 10:39           ` Mika Westerberg

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=Yyx7FwIPM19UPK+H@black.fi.intel.com \
    --to=mika.westerberg@linux.intel.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=michael@walle.cc \
    --cc=miquel.raynal@bootlin.com \
    --cc=pratyush@kernel.org \
    --cc=richard@nod.at \
    --cc=tudor.ambarus@microchip.com \
    --cc=vigneshr@ti.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 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.