summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/patches-4.4/417-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2016-08-09 11:23:32 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2016-08-13 15:49:35 +0200
commit0ddae04c226983e1e064d8750b8bb8724f077ad9 (patch)
tree84f901cf5188629c2bd08d24c9cf743d29f01497 /target/linux/brcm63xx/patches-4.4/417-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch
parent86ec4104181992400363e5602c11079e79524d9c (diff)
downloadmtk-20170518-0ddae04c226983e1e064d8750b8bb8724f077ad9.zip
mtk-20170518-0ddae04c226983e1e064d8750b8bb8724f077ad9.tar.gz
mtk-20170518-0ddae04c226983e1e064d8750b8bb8724f077ad9.tar.bz2
brcm63xx: backport mtd of node changes from upstream
Should fix parser data containing uninitialized values for of probed physmap flashes, which could break e.g. the redboot parser. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'target/linux/brcm63xx/patches-4.4/417-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch')
-rw-r--r--target/linux/brcm63xx/patches-4.4/417-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch5
1 files changed, 2 insertions, 3 deletions
diff --git a/target/linux/brcm63xx/patches-4.4/417-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch b/target/linux/brcm63xx/patches-4.4/417-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch
index 3b02c07..c055308 100644
--- a/target/linux/brcm63xx/patches-4.4/417-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch
+++ b/target/linux/brcm63xx/patches-4.4/417-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch
@@ -105,16 +105,15 @@ contained in flash.
pr_info("Partition %d is %s offset %llx and length %llx\n", i,
--- a/include/linux/mtd/partitions.h
+++ b/include/linux/mtd/partitions.h
-@@ -56,10 +56,12 @@ struct device_node;
+@@ -56,9 +56,11 @@ struct device_node;
/**
* struct mtd_part_parser_data - used to pass data to MTD partition parsers.
* @origin: for RedBoot, start address of MTD device
+ * @caldata: for CFE, start address of wifi calibration data
- * @of_node: for OF parsers, device node containing partitioning information
*/
struct mtd_part_parser_data {
unsigned long origin;
+ unsigned long caldata[2];
- struct device_node *of_node;
};
+