From: Tudor Ambarus <tudor.ambarus@linaro.org>
To: liao jaime <jaimeliao.tw@gmail.com>
Cc: Michael Walle <michael@walle.cc>,
linux-mtd@lists.infradead.org, pratyush@kernel.org,
miquel.raynal@bootlin.com, leoyu@mxic.com.tw
Subject: Re: [PATCH v1 0/2] Add octal DTR support for Macronix flash
Date: Tue, 25 Jul 2023 11:50:15 +0100 [thread overview]
Message-ID: <c8304bb6-7e53-3ee0-2fe0-104446e6f6b8@linaro.org> (raw)
In-Reply-To: <CAAQoYRkSoT4=g-YqTAdAbDckS=h1y9DuPXtHbE68_RQ5z2YBOw@mail.gmail.com>
On 7/25/23 10:25, liao jaime wrote:
> Hi Tudor
>
Hi,
>>
>> On 7/25/23 09:28, Michael Walle wrote:
>>> Am 2023-07-25 10:01, schrieb Tudor Ambarus:
>>>> On 7/25/23 03:23, Jaime Liao wrote:
>>>>> From: JaimeLiao <jaimeliao.tw@gmail.com>
>>>>>
>>>>> This series add method for Macronix Octal DTR Eable/Disable
>>>>> and add Macronix Octal flash support.
>>>>
>>>> Do all these flashes swap the bytes in octal DTR mode? If yes,
>>>> you should add the infrastructure so that controllers can swap
>>>> the bytes back, otherwise you'll break bootloaders which work
>>>> in 1-1-1 mode, and breaking the boot chain is unacceptable.
> No, only parts of flashes.
> MX25UM51345G : flash without swap bytes in octal dtr mode
> MX25UM51245G : flash will swap bytes in octal dtr mode
> So that I hope flashes without swap the bytes can be support.
Flashes that don't swap bytes by default are ok with the current
support that exists in spimem. So please start with these first.
> And I will send new patch for mention flashes which swap the bytes
> in Octal DTR mode.
The flashes that swap bytes by default won't be accepted until we
figure out how to sync the configuration between the flash and the
SPI controller.
>
>>>
>>> It might also be the SPI controller. Was the zynq SPI controller
>>> used before with octal flashes?
>>>
>>
>> No, it's the macronix flashes that swap the bytes by default. At least
>> the one which I've worked with few years ago. Some controllers can
>> swap the bytes back, but they have to be informed from mtd.
> Yes, it should inform mtd.
>
mtd shall inform the SPI controller and agree on the configuration.
Maybe some bootloaders can use octal DTR and the swap is not needed
at the controller level, as some bootloaders may handle swapped data.
So it should be a configuration choice and a configuration agreement
between mtd and spi.
Cheers,
ta
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
prev parent reply other threads:[~2023-07-25 10:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 2:23 [PATCH v1 0/2] Add octal DTR support for Macronix flash Jaime Liao
2023-07-25 2:23 ` [PATCH v1 1/2] mtd: spi-nor: add Octal " Jaime Liao
2023-07-25 7:16 ` Michael Walle
2023-07-25 9:05 ` liao jaime
2023-07-25 9:28 ` Michael Walle
2023-07-25 9:49 ` liao jaime
2023-07-25 2:23 ` [PATCH v1 2/2] mtd: spi-nor: add support for Macronix Octal flash Jaime Liao
2023-07-25 7:40 ` Michael Walle
2023-07-25 9:21 ` liao jaime
2023-07-25 9:39 ` Michael Walle
2023-07-25 9:55 ` liao jaime
2023-07-25 8:01 ` [PATCH v1 0/2] Add octal DTR support for Macronix flash Tudor Ambarus
2023-07-25 8:28 ` Michael Walle
2023-07-25 8:47 ` Tudor Ambarus
2023-07-25 9:25 ` liao jaime
2023-07-25 10:50 ` Tudor Ambarus [this message]
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=c8304bb6-7e53-3ee0-2fe0-104446e6f6b8@linaro.org \
--to=tudor.ambarus@linaro.org \
--cc=jaimeliao.tw@gmail.com \
--cc=leoyu@mxic.com.tw \
--cc=linux-mtd@lists.infradead.org \
--cc=michael@walle.cc \
--cc=miquel.raynal@bootlin.com \
--cc=pratyush@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox