openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH linux dev-4.7 1/2] mtd: spi-nor: fix options for mx66l51235f
@ 2018-08-15 15:13 Alexander Amelkin
  2018-08-15 18:57 ` Cédric Le Goater
  2018-08-16  3:34 ` Lei YU
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Amelkin @ 2018-08-15 15:13 UTC (permalink / raw)
  To: openbmc, joel; +Cc: Alexander Soldatov


[-- Attachment #1.1: Type: text/plain, Size: 1538 bytes --]

Currently in driver spi-nor there is a line for mx66l51235l.
According to Macronix site there is no such part number.
The chip detected as such is actually mx66l51235f.

According to the datasheet for mx66l51235f,
"The device default is in 24-bit address mode" (section 9-10).
Hence we removed SPI_NOR_4B_OPCODES option with this commit.

Signed-off-by: Alexander Soldatov <a.soldatov@yadro.com>
---
 drivers/mtd/spi-nor/spi-nor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 5bfa36e..e9f4447 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -1068,7 +1068,7 @@ static const struct flash_info spi_nor_ids[] = {
 	{ "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 	{ "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_OPCODES) },
 	{ "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
-	{ "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+	{ "mx66l51235f", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 	{ "mx66u51235f", INFO(0xc2253a, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 	{ "mx66l1g45g",  INFO(0xc2201b, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 	{ "mx66l1g55g",  INFO(0xc2261b, 0, 64 * 1024, 2048, SPI_NOR_QUAD_READ) },
-- 
2.7.4



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH linux dev-4.7 1/2] mtd: spi-nor: fix options for mx66l51235f
  2018-08-15 15:13 [PATCH linux dev-4.7 1/2] mtd: spi-nor: fix options for mx66l51235f Alexander Amelkin
@ 2018-08-15 18:57 ` Cédric Le Goater
  2018-08-16  7:25   ` Joel Stanley
  2018-08-16  3:34 ` Lei YU
  1 sibling, 1 reply; 4+ messages in thread
From: Cédric Le Goater @ 2018-08-15 18:57 UTC (permalink / raw)
  To: Alexander Amelkin, openbmc, joel; +Cc: Alexander Soldatov

On 08/15/2018 05:13 PM, Alexander Amelkin wrote:
> Currently in driver spi-nor there is a line for mx66l51235l.
> According to Macronix site there is no such part number.
> The chip detected as such is actually mx66l51235f.
> 
> According to the datasheet for mx66l51235f,
> "The device default is in 24-bit address mode" (section 9-10).
> Hence we removed SPI_NOR_4B_OPCODES option with this commit.
> 
> Signed-off-by: Alexander Soldatov <a.soldatov@yadro.com>

It fixes commit d342b6a973af ("mtd: spi-nor: enable 4B opcodes for mx66l51235l")

You should send this one to the linux-mtd@lists.infradead.org 
mailing list.


Reviewed-by: Cédric Le Goater <clg@kaod.org>

Thanks,

C.

> ---
>  drivers/mtd/spi-nor/spi-nor.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index 5bfa36e..e9f4447 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -1068,7 +1068,7 @@ static const struct flash_info spi_nor_ids[] = {
>  	{ "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
>  	{ "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_OPCODES) },
>  	{ "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
> -	{ "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
> +	{ "mx66l51235f", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
>  	{ "mx66u51235f", INFO(0xc2253a, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
>  	{ "mx66l1g45g",  INFO(0xc2201b, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
>  	{ "mx66l1g55g",  INFO(0xc2261b, 0, 64 * 1024, 2048, SPI_NOR_QUAD_READ) },
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH linux dev-4.7 1/2] mtd: spi-nor: fix options for mx66l51235f
  2018-08-15 15:13 [PATCH linux dev-4.7 1/2] mtd: spi-nor: fix options for mx66l51235f Alexander Amelkin
  2018-08-15 18:57 ` Cédric Le Goater
@ 2018-08-16  3:34 ` Lei YU
  1 sibling, 0 replies; 4+ messages in thread
From: Lei YU @ 2018-08-16  3:34 UTC (permalink / raw)
  To: Alexander Amelkin; +Cc: OpenBMC Maillist, Joel Stanley, a.soldatov

I think the mail subject should be patch linux dev-4.17, instead of dev-4.7.
But anyway this is better to be submitted to upstream.

Reviewed-by: Lei YU <mine260309@gmail.com>

On Wed, Aug 15, 2018 at 11:14 PM Alexander Amelkin <a.amelkin@yadro.com> wrote:
>
> Currently in driver spi-nor there is a line for mx66l51235l.
> According to Macronix site there is no such part number.
> The chip detected as such is actually mx66l51235f.
>
> According to the datasheet for mx66l51235f,
> "The device default is in 24-bit address mode" (section 9-10).
> Hence we removed SPI_NOR_4B_OPCODES option with this commit.
>
> Signed-off-by: Alexander Soldatov <a.soldatov@yadro.com>
> ---
>  drivers/mtd/spi-nor/spi-nor.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index 5bfa36e..e9f4447 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -1068,7 +1068,7 @@ static const struct flash_info spi_nor_ids[] = {
>         { "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
>         { "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_OPCODES) },
>         { "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
> -       { "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
> +       { "mx66l51235f", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
>         { "mx66u51235f", INFO(0xc2253a, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
>         { "mx66l1g45g",  INFO(0xc2201b, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
>         { "mx66l1g55g",  INFO(0xc2261b, 0, 64 * 1024, 2048, SPI_NOR_QUAD_READ) },
> --
> 2.7.4
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH linux dev-4.7 1/2] mtd: spi-nor: fix options for mx66l51235f
  2018-08-15 18:57 ` Cédric Le Goater
@ 2018-08-16  7:25   ` Joel Stanley
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Stanley @ 2018-08-16  7:25 UTC (permalink / raw)
  To: Cédric Le Goater; +Cc: Alexander Amelkin, OpenBMC Maillist, a.soldatov

On Thu, 16 Aug 2018 at 04:27, Cédric Le Goater <clg@kaod.org> wrote:
>
> On 08/15/2018 05:13 PM, Alexander Amelkin wrote:
> > Currently in driver spi-nor there is a line for mx66l51235l.
> > According to Macronix site there is no such part number.
> > The chip detected as such is actually mx66l51235f.
> >
> > According to the datasheet for mx66l51235f,
> > "The device default is in 24-bit address mode" (section 9-10).
> > Hence we removed SPI_NOR_4B_OPCODES option with this commit.
> >
> > Signed-off-by: Alexander Soldatov <a.soldatov@yadro.com>
>
> It fixes commit d342b6a973af ("mtd: spi-nor: enable 4B opcodes for mx66l51235l")
>
> You should send this one to the linux-mtd@lists.infradead.org
> mailing list.
>
>
> Reviewed-by: Cédric Le Goater <clg@kaod.org>

Agreed. Please send this one to the upstream list, with Cc: stable and
Fixes: tags.

Thanks for sending the patch out. I have applied this and the other
one to dev-4.17 and pushed to github.

We will get this merged into openbmc once the backlog of kernel bumps
I have out there are merged.

Cheers,

Joel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-16  7:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-15 15:13 [PATCH linux dev-4.7 1/2] mtd: spi-nor: fix options for mx66l51235f Alexander Amelkin
2018-08-15 18:57 ` Cédric Le Goater
2018-08-16  7:25   ` Joel Stanley
2018-08-16  3:34 ` Lei YU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).