|
@@ -1,7 +1,8 @@
|
|
-From f1f811410af297c848e9ec17eaa280d190fdce10 Mon Sep 17 00:00:00 2001
|
|
|
|
|
|
+From 7e4404113686868858a34210c28ae122e967aa64 Mon Sep 17 00:00:00 2001
|
|
From: Mauri Sandberg <[email protected]>
|
|
From: Mauri Sandberg <[email protected]>
|
|
-Date: Tue, 23 Feb 2021 18:09:31 +0200
|
|
|
|
-Subject: [PATCH] mtd: cfi_cmdset_0002: AMD chip 0x2201 - write words
|
|
|
|
|
|
+Date: Tue, 9 Mar 2021 19:48:59 +0200
|
|
|
|
+Subject: [PATCH] mtd: cfi_cmdset_0002: Disable buffered writes for AMD chip
|
|
|
|
+ 0x2201
|
|
|
|
|
|
Buffer writes do not work with AMD chip 0x2201. The chip in question
|
|
Buffer writes do not work with AMD chip 0x2201. The chip in question
|
|
is a AMD/Spansion/Cypress Semiconductor S29GL256N and datasheet [1]
|
|
is a AMD/Spansion/Cypress Semiconductor S29GL256N and datasheet [1]
|
|
@@ -32,6 +33,8 @@ Tested on a Buffalo wzr-hp-g300nh running kernel 5.10.16.
|
|
or https://datasheetspdf.com/pdf-file/565708/SPANSION/S29GL256N/1
|
|
or https://datasheetspdf.com/pdf-file/565708/SPANSION/S29GL256N/1
|
|
|
|
|
|
Signed-off-by: Mauri Sandberg <[email protected]>
|
|
Signed-off-by: Mauri Sandberg <[email protected]>
|
|
|
|
+Signed-off-by: Vignesh Raghavendra <[email protected]>
|
|
|
|
+Link: https://lore.kernel.org/r/[email protected]
|
|
---
|
|
---
|
|
drivers/mtd/chips/cfi_cmdset_0002.c | 4 ++++
|
|
drivers/mtd/chips/cfi_cmdset_0002.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
1 file changed, 4 insertions(+)
|
|
@@ -43,7 +46,7 @@ Signed-off-by: Mauri Sandberg <[email protected]>
|
|
struct map_info *map = mtd->priv;
|
|
struct map_info *map = mtd->priv;
|
|
struct cfi_private *cfi = map->fldrv_priv;
|
|
struct cfi_private *cfi = map->fldrv_priv;
|
|
+
|
|
+
|
|
-+ if ((cfi->mfr == CFI_MFR_AMD) && (cfi->id == 0x2201))
|
|
|
|
|
|
++ if (cfi->mfr == CFI_MFR_AMD && cfi->id == 0x2201)
|
|
+ return;
|
|
+ return;
|
|
+
|
|
+
|
|
if (cfi->cfiq->BufWriteTimeoutTyp) {
|
|
if (cfi->cfiq->BufWriteTimeoutTyp) {
|