From: Tudor Ambarus <tudor.ambarus@linaro.org>
To: Hao Yao <hao.yao@intel.com>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: Md Sadre Alam <mdalam@codeaurora.org>
Subject: Re: [PATCH v2] mtd: spi-nor: gigadevice: Add support for gd25lb256
Date: Tue, 18 Jul 2023 20:49:48 +0300 [thread overview]
Message-ID: <23fd0aed-784d-85a8-1c45-15ac0f8afe91@linaro.org> (raw)
In-Reply-To: <20230613045313.2690342-1-hao.yao@intel.com>
Hi!
On 13.06.2023 07:53, Hao Yao wrote:
You need some commit message here describing your changes. Please read
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
before submitting v3.
We require contributors that submit flash additions or updates to dump
the SFDP tables and do some sanity checks. Here's an example on how to
do it:
https://lore.kernel.org/linux-mtd/20230712161503.448024-1-miquel.raynal@bootlin.com/
> Signed-off-by: Hao Yao <hao.yao@intel.com>
> ---
> drivers/mtd/spi-nor/gigadevice.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/mtd/spi-nor/gigadevice.c b/drivers/mtd/spi-nor/gigadevice.c
> index d57ddaf1525b..d56c1876549f 100644
> --- a/drivers/mtd/spi-nor/gigadevice.c
> +++ b/drivers/mtd/spi-nor/gigadevice.c
> @@ -62,6 +62,10 @@ static const struct flash_info gigadevice_nor_parts[] = {
> FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
> NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
> SPI_NOR_QUAD_READ) },
> + { "gd25lb256", INFO(0xc86719, 0, 64 * 1024, 512)
INFO(0xc86719, 0, 0, 0) please, those params can be retrieved at SFDP
parsing time.
> + PARSE_SFDP
> + FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6)
> + FIXUP_FLAGS(SPI_NOR_4B_OPCODES) },
Is the SPI_NOR_4B_OPCODES really needed, isn't the support determined at
SFDP parsing time?
> { "gd25q256", INFO(0xc84019, 0, 64 * 1024, 512)
> PARSE_SFDP
> FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6)
prev parent reply other threads:[~2023-07-18 17:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-09 11:11 [PATCH] mtd: spi-nor: gigadevice: Add support for gd25lb256e Md Sadre Alam
2021-02-16 15:10 ` mdalam
2021-02-16 16:05 ` Tudor.Ambarus
2021-03-08 6:12 ` Tudor.Ambarus
2023-06-13 4:53 ` [PATCH v2] mtd: spi-nor: gigadevice: Add support for gd25lb256 Hao Yao
2023-07-18 17:49 ` 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=23fd0aed-784d-85a8-1c45-15ac0f8afe91@linaro.org \
--to=tudor.ambarus@linaro.org \
--cc=hao.yao@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=mdalam@codeaurora.org \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=vigneshr@ti.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: 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
all inboxes | Powered by JetHome®