mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
27 lines
837 B
Diff
27 lines
837 B
Diff
From 3d550dc3eb4eaa2fe1d0668ed67e835c91487d61 Mon Sep 17 00:00:00 2001
|
|
From: hzy <hzyitc@outlook.com>
|
|
Date: Sun, 8 Sep 2024 16:40:11 +0800
|
|
Subject: [PATCH 2/2] mtd: spinand: qpic only support max 4 bytes ID
|
|
|
|
Signed-off-by: hzy <hzyitc@outlook.com>
|
|
---
|
|
drivers/mtd/nand/spi/core.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c
|
|
index 4c54a962c5d6..1a8ac8e20f6e 100644
|
|
--- a/drivers/mtd/nand/spi/core.c
|
|
+++ b/drivers/mtd/nand/spi/core.c
|
|
@@ -1086,7 +1086,7 @@ int spinand_match_and_init(struct spinand_device *spinand,
|
|
if (rdid_method != info->devid.method)
|
|
continue;
|
|
|
|
- if (memcmp(id + 1, info->devid.id, info->devid.len))
|
|
+ if (memcmp(id + 1, info->devid.id, min(3, info->devid.len)))
|
|
continue;
|
|
|
|
nand->memorg = table[i].memorg;
|
|
--
|
|
2.40.1
|
|
|