mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-16 09:10:02 +00:00
31 lines
1021 B
Diff
31 lines
1021 B
Diff
From 8bbe35ea9f62e35d5efa1966804139544e179649 Mon Sep 17 00:00:00 2001
|
|
From: Xinfa Deng <Xinfa Deng>
|
|
Date: Thu, 25 May 2023 15:14:00 +0800
|
|
Subject: [PATCH] fix: mtdoops add _panic_write
|
|
|
|
---
|
|
.../hack-5.10/921-mtd-oops-add-panic-write.patch | 11 +++++++++++
|
|
1 file changed, 11 insertions(+)
|
|
create mode 100644 target/linux/generic/hack-5.10/921-mtd-oops-add-panic-write.patch
|
|
|
|
diff --git a/target/linux/generic/hack-5.10/921-mtd-oops-add-panic-write.patch b/target/linux/generic/hack-5.10/921-mtd-oops-add-panic-write.patch
|
|
new file mode 100644
|
|
index 0000000000..9da5579eaa
|
|
--- /dev/null
|
|
+++ b/target/linux/generic/hack-5.10/921-mtd-oops-add-panic-write.patch
|
|
@@ -0,0 +1,11 @@
|
|
+--- a/drivers/mtd/spi-nor/core.c
|
|
++++ b/drivers/mtd/spi-nor/core.c
|
|
+@@ -3207,6 +3207,8 @@ int spi_nor_scan(struct spi_nor *nor, co
|
|
+
|
|
+ mtd->_write = spi_nor_write;
|
|
+
|
|
++ mtd->_panic_write = spi_nor_write;
|
|
++
|
|
+ /* Init flash parameters based on flash_info struct and SFDP */
|
|
+ ret = spi_nor_init_params(nor);
|
|
+ if (ret)
|
|
--
|
|
2.34.1
|
|
|