-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for Winbond flash devices that could not parse SFDP (#440)
Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
patch/0001-Revert-mtd-spi-nor-Correct-flags-for-Winbond-w25q128.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 29922c1e20e86e643687a76b8c3181e388067b03 Mon Sep 17 00:00:00 2001 | ||
From: Vivek Reddy <vkarri@nvidia.com> | ||
Date: Fri, 27 Sep 2024 02:27:37 +0000 | ||
Subject: [PATCH] Revert "mtd: spi-nor: Correct flags for Winbond w25q128" | ||
|
||
This reverts commit 7c6ba20a0b9aeb82a6c097c74ccbecdda8e9fc25. | ||
--- | ||
drivers/mtd/spi-nor/winbond.c | 5 ++--- | ||
1 file changed, 2 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c | ||
index b7c775b615e8..ffaa24055259 100644 | ||
--- a/drivers/mtd/spi-nor/winbond.c | ||
+++ b/drivers/mtd/spi-nor/winbond.c | ||
@@ -120,9 +120,8 @@ static const struct flash_info winbond_nor_parts[] = { | ||
NO_SFDP_FLAGS(SECT_4K) }, | ||
{ "w25q80bl", INFO(0xef4014, 0, 64 * 1024, 16) | ||
NO_SFDP_FLAGS(SECT_4K) }, | ||
- { "w25q128", INFO(0xef4018, 0, 0, 0) | ||
- PARSE_SFDP | ||
- FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, | ||
+ { "w25q128", INFO(0xef4018, 0, 64 * 1024, 256) | ||
+ NO_SFDP_FLAGS(SECT_4K) }, | ||
{ "w25q256", INFO(0xef4019, 0, 64 * 1024, 512) | ||
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) | ||
.fixups = &w25q256_fixups }, | ||
-- | ||
2.43.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters