Skip to content

Commit 06a3811

Browse files
authored
mtd: Add support for reading partition data from ACPI (sonic-net#216)
Current mtd driver supports reading mtd partition information from command line and dts file, but cannot read partition information from ACPI files. Added code to support new partition type "acpipart" to default_mtd_part_types structure. This partition type can be used to configure mtd partition data in ACPI tables. Signed-off-by: Madhava Reddy Siddareddygari <msiddare@cisco.com>
1 parent 0fe396e commit 06a3811

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

patch/cisco-mtd-part.patch

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
From 157c059a2c639ecc69080ecb004a94e652467a4a Mon Sep 17 00:00:00 2001
2+
From: Madhava Reddy Siddareddygari <msiddare@cisco.com>
3+
Date: Tue, 8 Jun 2021 10:19:36 -0700
4+
Subject: [PATCH] mtd: Add support for reading partition data from ACPI
5+
6+
Current mtd driver supports reading mtd partition information from
7+
command line and dts file, but cannot read partition information
8+
from ACPI files.
9+
10+
Added code to support new partition type "acpipart" to
11+
default_mtd_part_types structure. This partition type can be used
12+
to configure mtd partition data in ACPI tables.
13+
14+
Signed-off-by: Madhava Reddy Siddareddygari <msiddare@cisco.com>
15+
---
16+
drivers/mtd/mtdpart.c | 1 +
17+
1 file changed, 1 insertion(+)
18+
19+
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
20+
index 10c53364a..1ff24e5d9 100644
21+
--- a/drivers/mtd/mtdpart.c
22+
+++ b/drivers/mtd/mtdpart.c
23+
@@ -822,6 +822,7 @@ EXPORT_SYMBOL_GPL(deregister_mtd_parser);
24+
static const char * const default_mtd_part_types[] = {
25+
"cmdlinepart",
26+
"ofpart",
27+
+ "acpipart",
28+
NULL
29+
};
30+
31+
--
32+
2.26.2
33+

patch/series

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ net-sch_generic-fix-the-missing-new-qdisc-assignment.patch
8585
0031-backport-nvme-Add-hardware-monitoring-support.patch
8686
0032-platform-mellanox-mlxreg-hotplug-Use-capability-regi.patch
8787

88+
# Cisco patches for 4.19 kernel
89+
cisco-mtd-part.patch
8890
#
8991
# Marvell platform patches for 4.19
9092
armhf_secondary_boot_online.patch

0 commit comments

Comments
 (0)