From: Geert Uytterhoeven <geert@linux-m68k.org> To: Tudor Ambarus <Tudor.Ambarus@microchip.com> Cc: Jonas Bonn <jonas@norrbonn.se>, MTD Maling List <linux-mtd@lists.infradead.org>, Marek Vasut <marek.vasut+renesas@gmail.com>, Linux-Renesas <linux-renesas-soc@vger.kernel.org> Subject: Re: [PATCH v4 2/3] spi-nor: s25fl512s supports region locking Date: Tue, 7 May 2019 12:50:05 +0200 [thread overview] Message-ID: <CAMuHMdU83vLeVSqMZuJwR4yd382mau-OE1saMAOC2+6HodsHvg@mail.gmail.com> (raw) In-Reply-To: <1f33e1e5-d7bf-76a0-c4d3-ecbc35fbfd4f@microchip.com> Hi Tudor, On Tue, May 7, 2019 at 12:42 PM <Tudor.Ambarus@microchip.com> wrote: > On 05/07/2019 12:53 PM, Geert Uytterhoeven wrote: > > On Wed, Mar 20, 2019 at 8:16 AM Jonas Bonn <jonas@norrbonn.se> wrote: > >> Both the BP[0-2] bits and the TBPROT bit are supported on this chip. > >> Tested and verified on a Cypress s25fl512s. > >> > >> Signed-off-by: Jonas Bonn <jonas@norrbonn.se> > > > > This is now commit dcb4b22eeaf44f91 ("spi-nor: s25fl512s supports region > > locking") in mtd/next. > > > >> --- a/drivers/mtd/spi-nor/spi-nor.c > >> +++ b/drivers/mtd/spi-nor/spi-nor.c > >> @@ -1898,7 +1898,9 @@ static const struct flash_info spi_nor_ids[] = { > >> SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, > >> { "s25fl256s0", INFO(0x010219, 0x4d00, 256 * 1024, 128, USE_CLSR) }, > >> { "s25fl256s1", INFO(0x010219, 0x4d01, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, > >> - { "s25fl512s", INFO6(0x010220, 0x4d0080, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, > >> + { "s25fl512s", INFO6(0x010220, 0x4d0080, 256 * 1024, 256, > >> + SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | > >> + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | USE_CLSR) }, > > > > Setting SPI_NOR_HAS_LOCK causes the QSPI FLASH on r8a7791/koelsch to fail > > probing. > > > > Before/after: > > > > -m25p80 spi0.0: s25fl512s (65536 Kbytes) > > -3 fixed-partitions partitions found on MTD device spi0.0 > > -Creating 3 MTD partitions on "spi0.0": > > -0x000000000000-0x000000080000 : "loader" > > -0x000000080000-0x000000600000 : "user" > > -0x000000600000-0x000004000000 : "flash" > > +m25p80 spi0.0: Erase Error occurred > > +m25p80 spi0.0: Erase Error occurred > > +m25p80 spi0.0: timeout while writing configuration register > > +m25p80 spi0.0: quad mode not supported > > +m25p80: probe of spi0.0 failed with error -5 > > > > FLASH chip is SPANSION FL512SAIFG1 311QQ063 A ©11 SPANSION > > JEDEC id bytes: 01 02 20 4d 00 80 > > That's curious. Did you revert this patch and probe was ok? Are you sure it is Yes, a revert fixes the the probe. I had tried all combinations of the 2 newly set flags, and only SPI_NOR_HAS_LOCK is a problem. > not related to the recent changes on spi-rspi.c? These changes affect QSPI transfers only. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
WARNING: multiple messages have this Message-ID (diff)
From: Geert Uytterhoeven <geert@linux-m68k.org> To: Tudor Ambarus <Tudor.Ambarus@microchip.com> Cc: Linux-Renesas <linux-renesas-soc@vger.kernel.org>, Jonas Bonn <jonas@norrbonn.se>, MTD Maling List <linux-mtd@lists.infradead.org>, Marek Vasut <marek.vasut+renesas@gmail.com> Subject: Re: [PATCH v4 2/3] spi-nor: s25fl512s supports region locking Date: Tue, 7 May 2019 12:50:05 +0200 [thread overview] Message-ID: <CAMuHMdU83vLeVSqMZuJwR4yd382mau-OE1saMAOC2+6HodsHvg@mail.gmail.com> (raw) In-Reply-To: <1f33e1e5-d7bf-76a0-c4d3-ecbc35fbfd4f@microchip.com> Hi Tudor, On Tue, May 7, 2019 at 12:42 PM <Tudor.Ambarus@microchip.com> wrote: > On 05/07/2019 12:53 PM, Geert Uytterhoeven wrote: > > On Wed, Mar 20, 2019 at 8:16 AM Jonas Bonn <jonas@norrbonn.se> wrote: > >> Both the BP[0-2] bits and the TBPROT bit are supported on this chip. > >> Tested and verified on a Cypress s25fl512s. > >> > >> Signed-off-by: Jonas Bonn <jonas@norrbonn.se> > > > > This is now commit dcb4b22eeaf44f91 ("spi-nor: s25fl512s supports region > > locking") in mtd/next. > > > >> --- a/drivers/mtd/spi-nor/spi-nor.c > >> +++ b/drivers/mtd/spi-nor/spi-nor.c > >> @@ -1898,7 +1898,9 @@ static const struct flash_info spi_nor_ids[] = { > >> SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, > >> { "s25fl256s0", INFO(0x010219, 0x4d00, 256 * 1024, 128, USE_CLSR) }, > >> { "s25fl256s1", INFO(0x010219, 0x4d01, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, > >> - { "s25fl512s", INFO6(0x010220, 0x4d0080, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | USE_CLSR) }, > >> + { "s25fl512s", INFO6(0x010220, 0x4d0080, 256 * 1024, 256, > >> + SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | > >> + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | USE_CLSR) }, > > > > Setting SPI_NOR_HAS_LOCK causes the QSPI FLASH on r8a7791/koelsch to fail > > probing. > > > > Before/after: > > > > -m25p80 spi0.0: s25fl512s (65536 Kbytes) > > -3 fixed-partitions partitions found on MTD device spi0.0 > > -Creating 3 MTD partitions on "spi0.0": > > -0x000000000000-0x000000080000 : "loader" > > -0x000000080000-0x000000600000 : "user" > > -0x000000600000-0x000004000000 : "flash" > > +m25p80 spi0.0: Erase Error occurred > > +m25p80 spi0.0: Erase Error occurred > > +m25p80 spi0.0: timeout while writing configuration register > > +m25p80 spi0.0: quad mode not supported > > +m25p80: probe of spi0.0 failed with error -5 > > > > FLASH chip is SPANSION FL512SAIFG1 311QQ063 A ©11 SPANSION > > JEDEC id bytes: 01 02 20 4d 00 80 > > That's curious. Did you revert this patch and probe was ok? Are you sure it is Yes, a revert fixes the the probe. I had tried all combinations of the 2 newly set flags, and only SPI_NOR_HAS_LOCK is a problem. > not related to the recent changes on spi-rspi.c? These changes affect QSPI transfers only. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2019-05-07 10:50 UTC|newest] Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-03-20 7:16 [PATCH v4 0/3] spi-nor block protection Jonas Bonn 2019-03-20 7:16 ` [PATCH v4 1/3] spi-nor: always respect write-protect input Jonas Bonn 2019-03-20 7:16 ` [PATCH v4 2/3] spi-nor: s25fl512s supports region locking Jonas Bonn 2019-03-20 7:39 ` Tudor.Ambarus 2019-03-21 16:48 ` Tudor.Ambarus 2019-05-07 9:53 ` Geert Uytterhoeven 2019-05-07 9:53 ` Geert Uytterhoeven 2019-05-07 10:42 ` Tudor.Ambarus 2019-05-07 10:42 ` Tudor.Ambarus 2019-05-07 10:50 ` Geert Uytterhoeven [this message] 2019-05-07 10:50 ` Geert Uytterhoeven 2019-05-07 11:13 ` Jonas Bonn 2019-05-07 11:13 ` Jonas Bonn 2019-05-07 12:52 ` Geert Uytterhoeven 2019-05-07 12:52 ` Geert Uytterhoeven 2019-05-07 13:15 ` Tudor.Ambarus 2019-05-07 13:15 ` Tudor.Ambarus 2019-05-07 13:18 ` Tudor.Ambarus 2019-05-07 13:18 ` Tudor.Ambarus 2019-05-07 13:25 ` Tudor.Ambarus 2019-05-07 13:25 ` Tudor.Ambarus 2019-05-07 14:33 ` Geert Uytterhoeven 2019-05-07 14:33 ` Geert Uytterhoeven 2019-05-08 10:44 ` Tudor.Ambarus 2019-05-08 10:44 ` Tudor.Ambarus 2019-05-08 13:11 ` Geert Uytterhoeven 2019-05-08 13:11 ` Geert Uytterhoeven 2019-05-08 14:23 ` Tudor.Ambarus 2019-05-08 14:23 ` Tudor.Ambarus 2019-05-08 17:00 ` Geert Uytterhoeven 2019-05-08 17:00 ` Geert Uytterhoeven 2019-05-09 6:55 ` Tudor.Ambarus 2019-05-09 6:55 ` Tudor.Ambarus 2019-05-09 9:11 ` Geert Uytterhoeven 2019-05-09 9:11 ` Geert Uytterhoeven 2019-05-09 10:31 ` Tudor.Ambarus 2019-05-09 10:31 ` Tudor.Ambarus 2019-05-09 11:12 ` Geert Uytterhoeven 2019-05-09 11:12 ` Geert Uytterhoeven 2019-05-22 15:49 ` Tudor.Ambarus 2019-05-22 15:49 ` Tudor.Ambarus 2019-06-10 6:24 ` [PATCH] mtd: spi-nor: use 16-bit WRR command when QE is set on spansion flashes Tudor.Ambarus 2019-06-10 6:24 ` Tudor.Ambarus 2019-06-10 9:28 ` Jonas Bonn 2019-06-10 9:28 ` Jonas Bonn 2019-06-11 8:35 ` Geert Uytterhoeven 2019-06-11 8:35 ` Geert Uytterhoeven 2019-06-19 15:47 ` Tudor.Ambarus 2019-06-19 15:47 ` Tudor.Ambarus 2019-06-19 17:26 ` [PATCH v2 1/2] " Tudor.Ambarus 2019-06-19 17:26 ` Tudor.Ambarus 2019-06-19 17:26 ` [PATCH v2 2/2] mtd: spi-nor: fix description for int (*flash_is_locked)() Tudor.Ambarus 2019-06-19 17:26 ` Tudor.Ambarus 2019-06-19 18:51 ` [PATCH] mtd: spi-nor: use 16-bit WRR command when QE is set on spansion flashes Geert Uytterhoeven 2019-06-19 18:51 ` Geert Uytterhoeven 2019-06-12 16:46 ` Vignesh Raghavendra 2019-06-12 16:46 ` Vignesh Raghavendra 2019-05-09 15:57 ` [PATCH v4 2/3] spi-nor: s25fl512s supports region locking Vignesh Raghavendra 2019-05-09 15:57 ` Vignesh Raghavendra 2019-03-20 7:16 ` [PATCH v4 3/3] spi-nor: allow setting the BPNV (default locked) bit Jonas Bonn 2019-04-02 5:27 ` Vignesh Raghavendra 2019-05-01 4:42 ` [PATCH v5 1/1] spi-nor: allow setting the BPNV (powerup lock) bit Jonas Bonn
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=CAMuHMdU83vLeVSqMZuJwR4yd382mau-OE1saMAOC2+6HodsHvg@mail.gmail.com \ --to=geert@linux-m68k.org \ --cc=Tudor.Ambarus@microchip.com \ --cc=jonas@norrbonn.se \ --cc=linux-mtd@lists.infradead.org \ --cc=linux-renesas-soc@vger.kernel.org \ --cc=marek.vasut+renesas@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: linkBe 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.