From: Michael Walle <michael@walle.cc> To: Tudor Ambarus <tudor.ambarus@microchip.com>, Pratyush Yadav <p.yadav@ti.com>, Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, Shaik Sajida Bhanu <quic_c_sbhanu@quicinc.com> Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Michael Walle <michael@walle.cc> Subject: [PATCH 2/2] mtd: spi-nor: winbond: use SNOR_ID3() for w25q512nwm Date: Tue, 10 May 2022 16:02:32 +0200 [thread overview] Message-ID: <20220510140232.3519184-3-michael@walle.cc> (raw) In-Reply-To: <20220510140232.3519184-1-michael@walle.cc> Use the new SNOR_ID3() so we don't have to specify the number of sectors as we are reading that property from the SFDP anyways. Signed-off-by: Michael Walle <michael@walle.cc> --- drivers/mtd/spi-nor/winbond.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index 08f9b5abf4d2..12b38f6776f4 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -134,8 +134,7 @@ static const struct flash_info winbond_nor_parts[] = { { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, - { "w25q512nwm", INFO(0xef8020, 0, 64 * 1024, 1024) - PARSE_SFDP + { "w25q512nwm", SNOR_ID3(0xef8020) OTP_INFO(256, 3, 0x1000, 0x1000) }, { "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | -- 2.30.2 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
WARNING: multiple messages have this Message-ID (diff)
From: Michael Walle <michael@walle.cc> To: Tudor Ambarus <tudor.ambarus@microchip.com>, Pratyush Yadav <p.yadav@ti.com>, Miquel Raynal <miquel.raynal@bootlin.com>, Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, Shaik Sajida Bhanu <quic_c_sbhanu@quicinc.com> Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Michael Walle <michael@walle.cc> Subject: [PATCH 2/2] mtd: spi-nor: winbond: use SNOR_ID3() for w25q512nwm Date: Tue, 10 May 2022 16:02:32 +0200 [thread overview] Message-ID: <20220510140232.3519184-3-michael@walle.cc> (raw) In-Reply-To: <20220510140232.3519184-1-michael@walle.cc> Use the new SNOR_ID3() so we don't have to specify the number of sectors as we are reading that property from the SFDP anyways. Signed-off-by: Michael Walle <michael@walle.cc> --- drivers/mtd/spi-nor/winbond.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index 08f9b5abf4d2..12b38f6776f4 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -134,8 +134,7 @@ static const struct flash_info winbond_nor_parts[] = { { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, - { "w25q512nwm", INFO(0xef8020, 0, 64 * 1024, 1024) - PARSE_SFDP + { "w25q512nwm", SNOR_ID3(0xef8020) OTP_INFO(256, 3, 0x1000, 0x1000) }, { "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | -- 2.30.2
next prev parent reply other threads:[~2022-05-10 14:03 UTC|newest] Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-10 14:02 [PATCH 0/2] introduce SNOR_ID3() Michael Walle 2022-05-10 14:02 ` Michael Walle 2022-05-10 14:02 ` [PATCH 1/2] mtd: spi-nor: " Michael Walle 2022-05-10 14:02 ` Michael Walle 2022-06-05 15:00 ` Tom Fitzhenry 2022-06-05 15:00 ` Tom Fitzhenry 2022-07-12 7:23 ` Pratyush Yadav 2022-07-15 12:19 ` Biju Das 2022-07-15 12:19 ` Biju Das 2022-07-12 7:23 ` Pratyush Yadav 2022-07-19 5:57 ` Tudor.Ambarus 2022-07-19 5:57 ` Tudor.Ambarus 2022-07-19 7:07 ` Michael Walle 2022-07-19 7:07 ` Michael Walle 2022-07-19 7:33 ` Tudor.Ambarus 2022-07-19 7:33 ` Tudor.Ambarus 2022-07-19 7:57 ` Michael Walle 2022-07-19 7:57 ` Michael Walle 2022-07-19 8:30 ` Tudor.Ambarus 2022-07-19 8:30 ` Tudor.Ambarus 2022-07-28 3:24 ` Tudor.Ambarus 2022-07-28 3:24 ` Tudor.Ambarus 2022-07-28 13:12 ` Michael Walle 2022-07-28 13:12 ` Michael Walle 2022-07-28 13:31 ` Tudor.Ambarus 2022-07-28 13:31 ` Tudor.Ambarus 2022-07-28 13:56 ` Michael Walle 2022-07-28 13:56 ` Michael Walle 2022-05-10 14:02 ` Michael Walle [this message] 2022-05-10 14:02 ` [PATCH 2/2] mtd: spi-nor: winbond: use SNOR_ID3() for w25q512nwm Michael Walle 2022-07-12 8:40 ` Tudor.Ambarus 2022-07-12 8:40 ` Tudor.Ambarus 2022-07-18 7:21 ` Michael Walle 2022-07-18 7:21 ` Michael Walle 2022-07-18 7:25 ` Michael Walle 2022-07-18 7:25 ` Michael Walle 2022-07-19 6:00 ` Tudor.Ambarus 2022-07-19 6:00 ` Tudor.Ambarus 2022-07-19 7:02 ` Michael Walle 2022-07-19 7:02 ` Michael Walle 2022-07-19 7:24 ` Tudor.Ambarus 2022-07-19 7:24 ` Tudor.Ambarus 2022-05-10 14:03 ` [PATCH 0/2] mtd: spi-nor: introduce SNOR_ID3() Michael Walle 2022-05-10 14:03 ` Michael Walle
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=20220510140232.3519184-3-michael@walle.cc \ --to=michael@walle.cc \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mtd@lists.infradead.org \ --cc=miquel.raynal@bootlin.com \ --cc=p.yadav@ti.com \ --cc=quic_c_sbhanu@quicinc.com \ --cc=richard@nod.at \ --cc=tudor.ambarus@microchip.com \ --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: linkBe 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.