summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.18/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2015-02-08 12:01:37 +0000
committerLuka Perkov <luka@openwrt.org>2015-02-08 12:01:37 +0000
commitb9d513158ee3b0b16cd6b17eb50774be4ab33386 (patch)
tree37fa855efcfdce3577686daade94a7eadfaccd9a /target/linux/generic/patches-3.18/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch
parente972c95cf096c6d10cf69a10316fed32b11493cb (diff)
downloadmaster-31e0f0ae-b9d513158ee3b0b16cd6b17eb50774be4ab33386.tar.gz
master-31e0f0ae-b9d513158ee3b0b16cd6b17eb50774be4ab33386.tar.bz2
master-31e0f0ae-b9d513158ee3b0b16cd6b17eb50774be4ab33386.zip
kernel: update 3.18 to 3.18.6
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 44318
Diffstat (limited to 'target/linux/generic/patches-3.18/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch')
-rw-r--r--target/linux/generic/patches-3.18/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch13
1 files changed, 4 insertions, 9 deletions
diff --git a/target/linux/generic/patches-3.18/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch b/target/linux/generic/patches-3.18/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch
index 3f70225980..1edc99525d 100644
--- a/target/linux/generic/patches-3.18/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch
+++ b/target/linux/generic/patches-3.18/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch
@@ -14,8 +14,6 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
drivers/mtd/bcm47xxpart.c | 10 ++++++++++
1 file changed, 10 insertions(+)
-diff --git a/drivers/mtd/bcm47xxpart.c b/drivers/mtd/bcm47xxpart.c
-index f14ec0f..40dd0db 100644
--- a/drivers/mtd/bcm47xxpart.c
+++ b/drivers/mtd/bcm47xxpart.c
@@ -39,6 +39,7 @@
@@ -26,10 +24,11 @@ index f14ec0f..40dd0db 100644
#define ML_MAGIC1 0x39685a42
#define ML_MAGIC2 0x26594131
#define TRX_MAGIC 0x30524448
-@@ -177,6 +178,15 @@ static int bcm47xxpart_parse(struct mtd_info *master,
+@@ -176,6 +177,15 @@ static int bcm47xxpart_parse(struct mtd_
+ MTD_WRITEABLE);
continue;
}
-
++
+ /* T_Meter */
+ if ((le32_to_cpu(buf[0x000 / 4]) & 0xFFFF0000) == T_METER_MAGIC &&
+ (le32_to_cpu(buf[0x030 / 4]) & 0xFFFF0000) == T_METER_MAGIC &&
@@ -38,10 +37,6 @@ index f14ec0f..40dd0db 100644
+ MTD_WRITEABLE);
+ continue;
+ }
-+
+
/* TRX */
if (buf[0x000 / 4] == TRX_MAGIC) {
- if (BCM47XXPART_MAX_PARTS - curr_part < 4) {
---
-1.8.4.5
-