openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH linux dev-4.17 1/2] mtd: spi-nor: fix options for mx66l51235f
@ 2018-08-16 10:40 Alexander Soldatov
  2018-08-16 10:40 ` [PATCH linux dev-4.17 2/2] mtd: spi-nor: fix spi register address for AST2400 Alexander Soldatov
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alexander Soldatov @ 2018-08-16 10:40 UTC (permalink / raw)
  To: linux-mtd, OpenBMC Maillist; +Cc: Alexander Soldatov, stable

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.

Cc: stable@vger.kernel.org
Fixes: d342b6a973af ("mtd: spi-nor: enable 4B opcodes for mx66l51235l")
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 5bfa36e95f35..e9f44475571a 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 related	[flat|nested] 5+ messages in thread

* [PATCH linux dev-4.17 2/2] mtd: spi-nor: fix spi register address for AST2400
  2018-08-16 10:40 [PATCH linux dev-4.17 1/2] mtd: spi-nor: fix options for mx66l51235f Alexander Soldatov
@ 2018-08-16 10:40 ` Alexander Soldatov
  2018-08-16 20:33   ` Cédric Le Goater
  2018-08-16 20:33 ` [PATCH linux dev-4.17 1/2] mtd: spi-nor: fix options for mx66l51235f Cédric Le Goater
  2018-08-17  6:58 ` Joel Stanley
  2 siblings, 1 reply; 5+ messages in thread
From: Alexander Soldatov @ 2018-08-16 10:40 UTC (permalink / raw)
  To: linux-mtd, OpenBMC Maillist; +Cc: Alexander Soldatov, stable

According to AST2400 datasheet v1.4 the SPI Flash Read Timing
Setting register is at offset 0x14. There is no register at
offset 0x94 (unlike FMC controller and AST2500).

Cc: stable@vger.kernel.org
Fixes: aad58eba7209 ("mtd: spi-nor: aspeed: optimize read mode")
Signed-off-by: Alexander Soldatov <a.soldatov@yadro.com>
---
 drivers/mtd/spi-nor/aspeed-smc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/aspeed-smc.c b/drivers/mtd/spi-nor/aspeed-smc.c
index c9cd20f199d9..9ddf24b042f1 100644
--- a/drivers/mtd/spi-nor/aspeed-smc.c
+++ b/drivers/mtd/spi-nor/aspeed-smc.c
@@ -71,7 +71,7 @@ static const struct aspeed_smc_info spi_2400_info = {
 	.hastype = false,
 	.we0 = 0,
 	.ctl0 = 0x04,
-	.timing = 0x94,
+	.timing = 0x14,
 	.set_4b = aspeed_smc_chip_set_4b_spi_2400,
 	.optimize_read = aspeed_smc_optimize_read,
 };
-- 
2.7.4

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

* Re: [PATCH linux dev-4.17 2/2] mtd: spi-nor: fix spi register address for AST2400
  2018-08-16 10:40 ` [PATCH linux dev-4.17 2/2] mtd: spi-nor: fix spi register address for AST2400 Alexander Soldatov
@ 2018-08-16 20:33   ` Cédric Le Goater
  0 siblings, 0 replies; 5+ messages in thread
From: Cédric Le Goater @ 2018-08-16 20:33 UTC (permalink / raw)
  To: Alexander Soldatov, linux-mtd, OpenBMC Maillist; +Cc: stable

On 08/16/2018 12:40 PM, Alexander Soldatov wrote:
> According to AST2400 datasheet v1.4 the SPI Flash Read Timing
> Setting register is at offset 0x14. There is no register at
> offset 0x94 (unlike FMC controller and AST2500).

The setting of the read timing register is not in mainline yet, 
so the patch won't apply. I will merge the fix in my patchset.



Thanks,

C. 


> 
> Cc: stable@vger.kernel.org
> Fixes: aad58eba7209 ("mtd: spi-nor: aspeed: optimize read mode")
> Signed-off-by: Alexander Soldatov <a.soldatov@yadro.com>
> ---
>  drivers/mtd/spi-nor/aspeed-smc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mtd/spi-nor/aspeed-smc.c b/drivers/mtd/spi-nor/aspeed-smc.c
> index c9cd20f199d9..9ddf24b042f1 100644
> --- a/drivers/mtd/spi-nor/aspeed-smc.c
> +++ b/drivers/mtd/spi-nor/aspeed-smc.c
> @@ -71,7 +71,7 @@ static const struct aspeed_smc_info spi_2400_info = {
>  	.hastype = false,
>  	.we0 = 0,
>  	.ctl0 = 0x04,
> -	.timing = 0x94,
> +	.timing = 0x14,
>  	.set_4b = aspeed_smc_chip_set_4b_spi_2400,
>  	.optimize_read = aspeed_smc_optimize_read,
>  };
> 

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

* Re: [PATCH linux dev-4.17 1/2] mtd: spi-nor: fix options for mx66l51235f
  2018-08-16 10:40 [PATCH linux dev-4.17 1/2] mtd: spi-nor: fix options for mx66l51235f Alexander Soldatov
  2018-08-16 10:40 ` [PATCH linux dev-4.17 2/2] mtd: spi-nor: fix spi register address for AST2400 Alexander Soldatov
@ 2018-08-16 20:33 ` Cédric Le Goater
  2018-08-17  6:58 ` Joel Stanley
  2 siblings, 0 replies; 5+ messages in thread
From: Cédric Le Goater @ 2018-08-16 20:33 UTC (permalink / raw)
  To: Alexander Soldatov, linux-mtd, OpenBMC Maillist; +Cc: stable

On 08/16/2018 12:40 PM, Alexander Soldatov 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.
> 
> Cc: stable@vger.kernel.org
> Fixes: d342b6a973af ("mtd: spi-nor: enable 4B opcodes for mx66l51235l")
> Signed-off-by: Alexander Soldatov <a.soldatov@yadro.com>



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 5bfa36e95f35..e9f44475571a 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] 5+ messages in thread

* Re: [PATCH linux dev-4.17 1/2] mtd: spi-nor: fix options for mx66l51235f
  2018-08-16 10:40 [PATCH linux dev-4.17 1/2] mtd: spi-nor: fix options for mx66l51235f Alexander Soldatov
  2018-08-16 10:40 ` [PATCH linux dev-4.17 2/2] mtd: spi-nor: fix spi register address for AST2400 Alexander Soldatov
  2018-08-16 20:33 ` [PATCH linux dev-4.17 1/2] mtd: spi-nor: fix options for mx66l51235f Cédric Le Goater
@ 2018-08-17  6:58 ` Joel Stanley
  2 siblings, 0 replies; 5+ messages in thread
From: Joel Stanley @ 2018-08-17  6:58 UTC (permalink / raw)
  To: a.soldatov; +Cc: linux-mtd, OpenBMC Maillist, # 3.4.x

On Fri, 17 Aug 2018 at 00:30, Alexander Soldatov <a.soldatov@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.
>
> Cc: stable@vger.kernel.org
> Fixes: d342b6a973af ("mtd: spi-nor: enable 4B opcodes for mx66l51235l")
> Signed-off-by: Alexander Soldatov <a.soldatov@yadro.com>

Tested-by: Joel Stanley <joel@jms.id.au>

Thanks for fixing this Alexander.

Cheers,

Joel

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

end of thread, other threads:[~2018-08-17  6:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-16 10:40 [PATCH linux dev-4.17 1/2] mtd: spi-nor: fix options for mx66l51235f Alexander Soldatov
2018-08-16 10:40 ` [PATCH linux dev-4.17 2/2] mtd: spi-nor: fix spi register address for AST2400 Alexander Soldatov
2018-08-16 20:33   ` Cédric Le Goater
2018-08-16 20:33 ` [PATCH linux dev-4.17 1/2] mtd: spi-nor: fix options for mx66l51235f Cédric Le Goater
2018-08-17  6:58 ` Joel Stanley

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).