diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2018-07-27 21:54:08 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2018-07-27 22:16:24 +0200 |
commit | 2a598bbaa3f75b7051c2453a6ccf706191cf2153 (patch) | |
tree | d0f84b7cea12e91a390a53705249e6febfee626b /target/linux/generic/pending-4.9/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch | |
parent | 4c1aa64b4d804e77dfaa8d53e5ef699fcced4b18 (diff) | |
download | upstream-2a598bbaa3f75b7051c2453a6ccf706191cf2153.tar.gz upstream-2a598bbaa3f75b7051c2453a6ccf706191cf2153.tar.bz2 upstream-2a598bbaa3f75b7051c2453a6ccf706191cf2153.zip |
kernel: backport mtd support for subpartitions in DT
This is a new & warm feature that allows nesting partiitons in DT and
mixing their types (e.g. static vs. dynamic). It's very useful for
boards that have most partitions static but some of them require extra
parsing (e.g. a "firmware" partition).
It's required to successfully backport support for new devices using
that new syntax in their DT files.
Since brcm63xx has a custom alternative patch the upstream one is being
reverted for it. The plan is to make brcm63xx use the upstream
implementation.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/generic/pending-4.9/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch')
-rw-r--r-- | target/linux/generic/pending-4.9/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/pending-4.9/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch b/target/linux/generic/pending-4.9/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch index a6d0828b99..3970641555 100644 --- a/target/linux/generic/pending-4.9/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch +++ b/target/linux/generic/pending-4.9/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch @@ -11,7 +11,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com> --- a/drivers/mtd/bcm47xxpart.c +++ b/drivers/mtd/bcm47xxpart.c -@@ -39,6 +39,7 @@ +@@ -40,6 +40,7 @@ #define NVRAM_HEADER 0x48534C46 /* FLSH */ #define POT_MAGIC1 0x54544f50 /* POTT */ #define POT_MAGIC2 0x504f /* OP */ @@ -19,7 +19,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com> #define ML_MAGIC1 0x39685a42 #define ML_MAGIC2 0x26594131 #define TRX_MAGIC 0x30524448 -@@ -182,6 +183,15 @@ static int bcm47xxpart_parse(struct mtd_ +@@ -183,6 +184,15 @@ static int bcm47xxpart_parse(struct mtd_ MTD_WRITEABLE); continue; } |