From: Renjun Wang <renjunw0@foxmail.com>
To: tudor.ambarus@linaro.org, pratyush@kernel.org, mwalle@kernel.org,
miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com
Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
Renjun Wang <renjunw0@foxmail.com>
Subject: [PATCH] mtd: spi-nor: gigadevice: add missing flash_info.size field for gd25q256.
Date: Wed, 18 Dec 2024 22:27:59 +0800 [thread overview]
Message-ID: <tencent_1FA1D9D85AD8E448F1B5F349EB5B9230EC06@qq.com> (raw)
The flash_info.size field be used in spi_nor_init_default_params()
which assigned to spi_nor_flash_parameter.size as default value.
Signed-off-by: Renjun Wang <renjunw0@foxmail.com>
---
drivers/mtd/spi-nor/gigadevice.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/spi-nor/gigadevice.c b/drivers/mtd/spi-nor/gigadevice.c
index ef1edd0add70..e234fd2b7e63 100644
--- a/drivers/mtd/spi-nor/gigadevice.c
+++ b/drivers/mtd/spi-nor/gigadevice.c
@@ -61,6 +61,7 @@ static const struct flash_info gigadevice_nor_parts[] = {
}, {
.id = SNOR_ID(0xc8, 0x40, 0x19),
.name = "gd25q256",
+ .size = SZ_32M,
.flags = SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6,
.fixups = &gd25q256_fixups,
.fixup_flags = SPI_NOR_4B_OPCODES,
--
2.39.5
next reply other threads:[~2024-12-18 14:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-18 14:27 Renjun Wang [this message]
2024-12-18 14:31 ` Tudor Ambarus
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=tencent_1FA1D9D85AD8E448F1B5F349EB5B9230EC06@qq.com \
--to=renjunw0@foxmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=mwalle@kernel.org \
--cc=pratyush@kernel.org \
--cc=richard@nod.at \
--cc=tudor.ambarus@linaro.org \
--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®