aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/patches-5.4/408-mtd-redboot_partition_scan.patch
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2021-12-21 22:00:34 +0100
committerDavid Bauer <mail@david-bauer.net>2021-12-27 03:13:36 +0100
commit9d9d851eec7da1b9b2c161562c58d81e4e72b77c (patch)
tree011df2b1fda2dfb56ee9736992ebb9742751c16b /target/linux/ath79/patches-5.4/408-mtd-redboot_partition_scan.patch
parent5ca77934180ea277520be0dbbe7d47c47eec2375 (diff)
downloadupstream-9d9d851eec7da1b9b2c161562c58d81e4e72b77c.tar.gz
upstream-9d9d851eec7da1b9b2c161562c58d81e4e72b77c.tar.bz2
upstream-9d9d851eec7da1b9b2c161562c58d81e4e72b77c.zip
ath79: remove kernel 5.4
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ath79/patches-5.4/408-mtd-redboot_partition_scan.patch')
-rw-r--r--target/linux/ath79/patches-5.4/408-mtd-redboot_partition_scan.patch44
1 files changed, 0 insertions, 44 deletions
diff --git a/target/linux/ath79/patches-5.4/408-mtd-redboot_partition_scan.patch b/target/linux/ath79/patches-5.4/408-mtd-redboot_partition_scan.patch
deleted file mode 100644
index e5b06e14a5..0000000000
--- a/target/linux/ath79/patches-5.4/408-mtd-redboot_partition_scan.patch
+++ /dev/null
@@ -1,44 +0,0 @@
---- a/drivers/mtd/parsers/redboot.c
-+++ b/drivers/mtd/parsers/redboot.c
-@@ -90,12 +90,18 @@ static int parse_redboot_partitions(stru
-
- parse_redboot_of(master);
-
-+ buf = vmalloc(master->erasesize);
-+ if (!buf)
-+ return -ENOMEM;
-+
-+ restart:
- if ( directory < 0 ) {
- offset = master->size + directory * master->erasesize;
- while (mtd_block_isbad(master, offset)) {
- if (!offset) {
- nogood:
- printk(KERN_NOTICE "Failed to find a non-bad block to check for RedBoot partition table\n");
-+ vfree(buf);
- return -EIO;
- }
- offset -= master->erasesize;
-@@ -108,10 +114,6 @@ static int parse_redboot_partitions(stru
- goto nogood;
- }
- }
-- buf = vmalloc(master->erasesize);
--
-- if (!buf)
-- return -ENOMEM;
-
- printk(KERN_NOTICE "Searching for RedBoot partition table in %s at offset 0x%lx\n",
- master->name, offset);
-@@ -184,6 +186,11 @@ static int parse_redboot_partitions(stru
- }
- if (i == numslots) {
- /* Didn't find it */
-+ if (offset + master->erasesize < master->size) {
-+ /* not at the end of the flash yet, maybe next block :) */
-+ directory++;
-+ goto restart;
-+ }
- printk(KERN_NOTICE "No RedBoot partition table detected in %s\n",
- master->name);
- ret = 0;