All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Potin Lai (賴柏廷)" <Potin.Lai@quantatw.com>
To: "Cédric Le Goater" <clg@kaod.org>,
	"Joel Stanley" <joel@jms.id.au>,
	"linux-aspeed@lists.ozlabs.org" <linux-aspeed@lists.ozlabs.org>,
	"openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>,
	"Patrick Williams" <patrick@stwcx.xyz>
Subject: Re: [SPAM] [PATCH 1/1] mtd: spi-nor: aspeed: set the decoding size to at least 2MB for AST2600
Date: Tue, 8 Mar 2022 01:14:45 +0000	[thread overview]
Message-ID: <597dcccf-f01a-92b5-9b62-72580660a1c5@quantatw.com> (raw)
In-Reply-To: <e10877f9-57f7-7019-b9ca-0812a60cdea9@kaod.org>

Cédric Le Goater 於 2022/3/8 上午 02:28 寫道:
> On 3/7/22 08:57, Cédric Le Goater wrote:
>>
>>> I tested with spi-mem v3 patch, it looks same issue appeared. (spi-model=mx25l800)
>>>
>>>
>>> [    0.541050] spi-nor spi1.0: mx25l8005 (1024 Kbytes)
>>> aspeed_smc_flash_set_segment CS0 segreg=0x0 [ 0x30000000 - 0x30000000 ]
>>> aspeed_smc_flash_set_segment CS1 segreg=0x7f00010 [ 0x30100000 - 0x38000000 ]
>>> [    0.541976] spi-aspeed-smc 1e630000.spi: Calibration area too uniform, using low speed
>>> [    0.542267] spi-aspeed-smc 1e630000.spi: CE0 read buswidth:1 [0x000b0041]
>>>
>>> I think the model mx25l1606e you tested is 2MB flash.
>>
>> Indeed. Thanks for the test of v3. We should send a followup patch
>> for this 2MB restriction on the minimum size of the flash when the
>> patchset is merged or I will if a v4 is asked for.
>
> Here is an updated version for the spi-mem driver :
>
>   https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flegoater%2Flinux%2Fcommit%2F418126725d11863b7b51b70ff507d1da6db192c3&amp;data=04%7C01%7CPotin.Lai%40quantatw.com%7Cde46d26422ae4f2dbd1708da0068575f%7C179b032707fc4973ac738de7313561b2%7C1%7C0%7C637822745417263929%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=D594iU1%2BDbDcvC%2BPP1yUWSLhGxlCGfGC4qWXh0QJoH4%3D&amp;reserved=0
> Thanks,
>
> C.


Thanks for taking this patch into spi-mem driver, the tested log as below.

[    1.945705] spi-nor spi1.0: mx25l8005 (1024 Kbytes)
[    1.945926] spi-aspeed-smc 1e630000.spi: CE0 window resized to 2MB (AST2600 Decoding)
aspeed_smc_flash_set_segment CS0 segreg=0x100000 [ 0x30000000 - 0x30200000 ]
aspeed_smc_flash_set_segment CS1 segreg=0x7f00020 [ 0x30200000 - 0x38000000 ]
[    1.953083] spi-aspeed-smc 1e630000.spi: Calibration area too uniform, using low speed
[    1.953409] spi-aspeed-smc 1e630000.spi: CE0 read buswidth:1 [0x000b0041]


By the way, there is a small error when compiling kernel, it needs forward declare for both ast2600_spi_data & ast2600_fmc_data.

Also, I saw you add ast2600_fmc_data for resize checking as well, should I add it in aspeed-smc.c and resend the patch?

Thanks,
Potin



  reply	other threads:[~2022-03-08  1:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-04 17:07 [PATCH 1/1] mtd: spi-nor: aspeed: set the decoding size to at least 2MB for AST2600 Potin Lai
2022-03-04 17:29 ` [SPAM] " Cédric Le Goater
2022-03-04 18:00   ` Cédric Le Goater
2022-03-07  5:13     ` Potin Lai (賴柏廷)
2022-03-07  7:57       ` Cédric Le Goater
2022-03-07 18:28         ` Cédric Le Goater
2022-03-08  1:14           ` Potin Lai (賴柏廷) [this message]
2022-03-08  6:26             ` Cédric Le Goater

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=597dcccf-f01a-92b5-9b62-72580660a1c5@quantatw.com \
    --to=potin.lai@quantatw.com \
    --cc=clg@kaod.org \
    --cc=joel@jms.id.au \
    --cc=linux-aspeed@lists.ozlabs.org \
    --cc=openbmc@lists.ozlabs.org \
    --cc=patrick@stwcx.xyz \
    /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.