From patchwork Tue Jun 6 22:49:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Ryazanov X-Patchwork-Id: 772062 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wj6MH0Hbpz9s89 for ; Wed, 7 Jun 2017 08:49:47 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="POxngb+5"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="vY3c81xZ"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=6KnIbBVxX4LeL/ZlbWFLYE2ri24nln/3dP+tpRIT3fw=; b=POxngb+5+zrooY0COCWVScSsaT WBtgWDLLDN+1VODoY2BiOyYSgzb13vITBQO7su9OrJvR8inAiEKybLnIQLJ9UXdufFV13Z5e6rSkt zcGIcRJKYVU2xB3rJKoUH8ivMMqqTOuNnZ49o9KWAFs/lov/KYP1dBnCCFmVw5wChAuA61I5SVBVu iJ+Kde6HywaQnTXsAQRSCwxp5ihueFlqv6QDHopwDuNSVZcHVNTVG7fkyylYoxUvUpT0a9Lj2Vo9k c+XW8oZwSgsKH0VpQARWFw6bcf5B1R0haUm6rvfOABt91b6KM+H3dZB8jz50UMnS/dDYr6hMIJA8D x8omldQA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dINIB-0006Xy-18; Tue, 06 Jun 2017 22:49:39 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dINHg-0005vV-Pz for lede-dev@lists.infradead.org; Tue, 06 Jun 2017 22:49:11 +0000 Received: by mail-lf0-x242.google.com with SMTP id u62so12417834lfg.0 for ; Tue, 06 Jun 2017 15:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=TwQK+GUyIOJiSvTAO+5RsyBMtctGmSK2GUkLwKytctk=; b=vY3c81xZ7N25gCcowZsasEv80U1kajcqPFE8pp4TBmMF7/XwoUNBVcmAJDHht1bt0n fvgIVh3OEsqGh1es90OJR2n7utfswOmGJwK+csTbfTXh0LBUKts9BMA73qcAfxLgLwBF wz1YxrTA98WR5MEbTEiwM3u9PUFqj/X3inOamNlybb2NgkZwiMaZYEv8zp5LZW9Llac/ y5rvFUy5Uumre3QhBHWTUZiAdZFch9Om5TT5Zq4BD427KEDyvqHfqL/M7SnMw77DvZkx 4nuWlFSVH+qY1ydCkyvVG0/sgva6imh0xI1xyc8c1DULt6DXu6z2up+jaW6Rjd1/WncX SjKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=TwQK+GUyIOJiSvTAO+5RsyBMtctGmSK2GUkLwKytctk=; b=nSJdobe96dgFIFaj1dXNEKknhcMuak+fo4OJhtRqIZ/pJOHUKhugMWrPGyDjei6R3D g13aMqnBIElUEywZCJ6L++HDCWgMS5ThryC6iPvGx0Arjp3X2iqlH0dnP5VmXcYX0McZ rafCAzBAifRz/PI4VJZStAiemRAy+hPcwWiHXLJ4h0nXKIBXcJ8MO4me3+G3iX0IxR6I p5dnPVsO9cB1dGfL2D9w85DDkPcrpojeco2d8VbEOwvfUlG5lP1jip2/zXlNEWh15+0s /WB/Yp1V0r4XwxuLN2POWkUNImf+cFq/C/GOPYDcwsJm+WSrkXPbLiz75emHo8ukSIjY ZyCw== X-Gm-Message-State: AODbwcBVKXO64vGjGHit3eW4NbYACsXE+M5/Gq1j+st1s62VSs3Jr0ka BCIX8GbaN+I30xR0 X-Received: by 10.46.84.90 with SMTP id y26mr1696047ljd.77.1496789326490; Tue, 06 Jun 2017 15:48:46 -0700 (PDT) Received: from rsa-laptop.internal.lan ([217.25.229.52]) by smtp.gmail.com with ESMTPSA id u125sm1698680lff.35.2017.06.06.15.48.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Jun 2017 15:48:45 -0700 (PDT) From: Sergey Ryazanov To: LEDE Development List Date: Wed, 7 Jun 2017 01:49:35 +0300 Message-Id: <20170606224940.22611-2-ryazanov.s.a@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170606224940.22611-1-ryazanov.s.a@gmail.com> References: <20170606224940.22611-1-ryazanov.s.a@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170606_154909_224763_6F11BA7B X-CRM114-Status: GOOD ( 12.31 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ryazanov.s.a[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [LEDE-DEV] [PATCH 1/6] ath25: add preliminary kernel 4.9 support X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Copy and refresh patches and config from 4.4 Signed-off-by: Sergey Ryazanov --- target/linux/ath25/{config-4.4 => config-4.9} | 15 +++++----- .../107-ar5312_gpio.patch | 34 +++++++++++----------- .../108-ar2315_gpio.patch | 10 +++---- .../110-ar2313_ethernet.patch | 0 .../120-spiflash.patch | 2 +- .../130-watchdog.patch | 8 ++--- .../140-redboot_boardconfig.patch | 2 +- .../141-redboot_partition_scan.patch | 0 .../142-redboot_various_erase_size_fix.patch | 2 +- .../210-reset_button.patch | 0 .../220-enet_micrel_workaround.patch | 0 .../330-board_leds.patch | 0 12 files changed, 37 insertions(+), 36 deletions(-) copy target/linux/ath25/{config-4.4 => config-4.9} (94%) copy target/linux/ath25/{patches-4.4 => patches-4.9}/107-ar5312_gpio.patch (89%) copy target/linux/ath25/{patches-4.4 => patches-4.9}/108-ar2315_gpio.patch (97%) copy target/linux/ath25/{patches-4.4 => patches-4.9}/110-ar2313_ethernet.patch (100%) copy target/linux/ath25/{patches-4.4 => patches-4.9}/120-spiflash.patch (99%) copy target/linux/ath25/{patches-4.4 => patches-4.9}/130-watchdog.patch (97%) copy target/linux/ath25/{patches-4.4 => patches-4.9}/140-redboot_boardconfig.patch (97%) copy target/linux/ath25/{patches-4.4 => patches-4.9}/141-redboot_partition_scan.patch (100%) copy target/linux/ath25/{patches-4.4 => patches-4.9}/142-redboot_various_erase_size_fix.patch (97%) copy target/linux/ath25/{patches-4.4 => patches-4.9}/210-reset_button.patch (100%) copy target/linux/ath25/{patches-4.4 => patches-4.9}/220-enet_micrel_workaround.patch (100%) copy target/linux/ath25/{patches-4.4 => patches-4.9}/330-board_leds.patch (100%) diff --git a/target/linux/ath25/patches-4.4/210-reset_button.patch b/target/linux/ath25/patches-4.9/210-reset_button.patch similarity index 100% copy from target/linux/ath25/patches-4.4/210-reset_button.patch copy to target/linux/ath25/patches-4.9/210-reset_button.patch diff --git a/target/linux/ath25/patches-4.4/220-enet_micrel_workaround.patch b/target/linux/ath25/patches-4.9/220-enet_micrel_workaround.patch similarity index 100% copy from target/linux/ath25/patches-4.4/220-enet_micrel_workaround.patch copy to target/linux/ath25/patches-4.9/220-enet_micrel_workaround.patch diff --git a/target/linux/ath25/patches-4.4/330-board_leds.patch b/target/linux/ath25/patches-4.9/330-board_leds.patch similarity index 100% copy from target/linux/ath25/patches-4.4/330-board_leds.patch copy to target/linux/ath25/patches-4.9/330-board_leds.patch diff --git a/target/linux/ath25/config-4.4 b/target/linux/ath25/config-4.9 similarity index 94% copy from target/linux/ath25/config-4.4 copy to target/linux/ath25/config-4.9 index fed6256..aae77a4 100644 --- a/target/linux/ath25/config-4.4 +++ b/target/linux/ath25/config-4.9 @@ -4,20 +4,18 @@ CONFIG_AR8216_PHY=y CONFIG_ARCH_BINFMT_ELF_STATE=y CONFIG_ARCH_CLOCKSOURCE_DATA=y CONFIG_ARCH_DISCARD_MEMBLOCK=y -CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y CONFIG_ARCH_HAS_ELF_RANDOMIZE=y # CONFIG_ARCH_HAS_GCOV_PROFILE_ALL is not set # CONFIG_ARCH_HAS_SG_CHAIN is not set CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y -CONFIG_ARCH_REQUIRE_GPIOLIB=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y CONFIG_ATH25=y -CONFIG_CC_OPTIMIZE_FOR_SIZE=y +CONFIG_BLK_MQ_PCI=y CONFIG_CEVT_R4K=y CONFIG_CLONE_BACKWARDS=y CONFIG_CMDLINE="console=ttyS0,9600 rootfstype=squashfs,jffs2" @@ -54,8 +52,8 @@ CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GPIOLIB=y CONFIG_GPIO_AR2315=y CONFIG_GPIO_AR5312=y -CONFIG_GPIO_DEVRES=y CONFIG_GPIO_SYSFS=y +CONFIG_HANDLE_DOMAIN_IRQ=y CONFIG_HARDWARE_WATCHPOINTS=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y @@ -67,14 +65,13 @@ CONFIG_HAVE_ARCH_KGDB=y CONFIG_HAVE_ARCH_SECCOMP_FILTER=y CONFIG_HAVE_ARCH_TRACEHOOK=y # CONFIG_HAVE_BOOTMEM_INFO_NODE is not set -CONFIG_HAVE_BPF_JIT=y +CONFIG_HAVE_CBPF_JIT=y CONFIG_HAVE_CC_STACKPROTECTOR=y CONFIG_HAVE_CONTEXT_TRACKING=y CONFIG_HAVE_C_RECORDMCOUNT=y CONFIG_HAVE_DEBUG_KMEMLEAK=y CONFIG_HAVE_DEBUG_STACKOVERFLOW=y CONFIG_HAVE_DMA_API_DEBUG=y -CONFIG_HAVE_DMA_ATTRS=y CONFIG_HAVE_DMA_CONTIGUOUS=y CONFIG_HAVE_DYNAMIC_FTRACE=y CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y @@ -91,6 +88,7 @@ CONFIG_HAVE_MOD_ARCH_SPECIFIC=y CONFIG_HAVE_NET_DSA=y CONFIG_HAVE_OPROFILE=y CONFIG_HAVE_PERF_EVENTS=y +CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y CONFIG_HAVE_SYSCALL_TRACEPOINTS=y CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y CONFIG_HW_HAS_PCI=y @@ -105,7 +103,10 @@ CONFIG_IRQ_WORK=y CONFIG_LEDS_GPIO=y CONFIG_MDIO_BOARDINFO=y CONFIG_MIPS=y +CONFIG_MIPS_ASID_BITS=8 +CONFIG_MIPS_ASID_SHIFT=0 CONFIG_MIPS_CLOCK_VSYSCALL=y +# CONFIG_MIPS_CMDLINE_BUILTIN_EXTEND is not set CONFIG_MIPS_CMDLINE_FROM_BOOTLOADER=y # CONFIG_MIPS_HUGE_TLB_SUPPORT is not set CONFIG_MIPS_L1_CACHE_SHIFT=5 @@ -130,6 +131,7 @@ CONFIG_PCI=y CONFIG_PCI_AR2315=y CONFIG_PCI_DISABLE_COMMON_QUIRKS=y CONFIG_PCI_DOMAINS=y +CONFIG_PCI_DRIVERS_LEGACY=y CONFIG_PERF_USE_VMALLOC=y CONFIG_PGTABLE_LEVELS=2 CONFIG_PHYLIB=y @@ -153,4 +155,3 @@ CONFIG_SYS_SUPPORTS_ARBIT_HZ=y CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y CONFIG_TICK_CPU_ACCOUNTING=y CONFIG_USB_SUPPORT=y -CONFIG_ZONE_DMA_FLAG=0 diff --git a/target/linux/ath25/patches-4.4/107-ar5312_gpio.patch b/target/linux/ath25/patches-4.9/107-ar5312_gpio.patch similarity index 89% copy from target/linux/ath25/patches-4.4/107-ar5312_gpio.patch copy to target/linux/ath25/patches-4.9/107-ar5312_gpio.patch index e6196c8..f4426b5 100644 --- a/target/linux/ath25/patches-4.4/107-ar5312_gpio.patch +++ b/target/linux/ath25/patches-4.9/107-ar5312_gpio.patch @@ -52,9 +52,9 @@ if (!ath25_board.radio) --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig -@@ -142,6 +142,13 @@ config GPIO_BRCMSTB - help - Say yes here to enable GPIO support for Broadcom STB (BCM7XXX) SoCs. +@@ -105,6 +105,13 @@ config GPIO_AMDPT + driver for GPIO functionality on Promontory IOHub + Require ACPI ASL code to enumerate as a platform device. +config GPIO_AR5312 + bool "AR5312 SoC GPIO support" @@ -63,19 +63,19 @@ + help + Say yes here to enable GPIO support for Atheros AR5312/AR2312+ SoCs. + - config GPIO_CLPS711X - tristate "CLPS711X GPIO support" - depends on ARCH_CLPS711X || COMPILE_TEST + config GPIO_ASPEED + tristate "Aspeed GPIO support" + depends on (ARCH_ASPEED || COMPILE_TEST) && OF_GPIO --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile -@@ -21,6 +21,7 @@ obj-$(CONFIG_GPIO_ADP5588) += gpio-adp55 +@@ -26,6 +26,7 @@ obj-$(CONFIG_GPIO_ADP5588) += gpio-adp55 obj-$(CONFIG_GPIO_ALTERA) += gpio-altera.o obj-$(CONFIG_GPIO_AMD8111) += gpio-amd8111.o obj-$(CONFIG_GPIO_AMDPT) += gpio-amdpt.o +obj-$(CONFIG_GPIO_AR5312) += gpio-ar5312.o obj-$(CONFIG_GPIO_ARIZONA) += gpio-arizona.o - obj-$(CONFIG_ATH79) += gpio-ath79.o - obj-$(CONFIG_GPIO_BCM_KONA) += gpio-bcm-kona.o + obj-$(CONFIG_GPIO_ATH79) += gpio-ath79.o + obj-$(CONFIG_GPIO_ASPEED) += gpio-aspeed.o --- /dev/null +++ b/drivers/gpio/gpio-ar5312.c @@ -0,0 +1,121 @@ @@ -202,11 +202,11 @@ +subsys_initcall(ar5312_gpio_init); --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig -@@ -118,6 +118,7 @@ config ATH25 - select SYS_SUPPORTS_BIG_ENDIAN - select SYS_SUPPORTS_32BIT_KERNEL - select SYS_HAS_EARLY_PRINTK -+ select ARCH_REQUIRE_GPIOLIB - help - Support for Atheros AR231x and Atheros AR531x based boards - +@@ -167,6 +167,7 @@ config ATH25 + select CEVT_R4K + select CSRC_R4K + select DMA_NONCOHERENT ++ select GPIOLIB + select IRQ_MIPS_CPU + select IRQ_DOMAIN + select SYS_HAS_CPU_MIPS32_R1 diff --git a/target/linux/ath25/patches-4.4/108-ar2315_gpio.patch b/target/linux/ath25/patches-4.9/108-ar2315_gpio.patch similarity index 97% copy from target/linux/ath25/patches-4.4/108-ar2315_gpio.patch copy to target/linux/ath25/patches-4.9/108-ar2315_gpio.patch index 1ec34f7..6bb793d 100644 --- a/target/linux/ath25/patches-4.4/108-ar2315_gpio.patch +++ b/target/linux/ath25/patches-4.9/108-ar2315_gpio.patch @@ -75,9 +75,9 @@ * workaround. Attempt to jump to the mips reset location - --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig -@@ -142,6 +142,13 @@ config GPIO_BRCMSTB - help - Say yes here to enable GPIO support for Broadcom STB (BCM7XXX) SoCs. +@@ -105,6 +105,13 @@ config GPIO_AMDPT + driver for GPIO functionality on Promontory IOHub + Require ACPI ASL code to enumerate as a platform device. +config GPIO_AR2315 + bool "AR2315 SoC GPIO support" @@ -91,14 +91,14 @@ default y if SOC_AR5312 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile -@@ -21,6 +21,7 @@ obj-$(CONFIG_GPIO_ADP5588) += gpio-adp55 +@@ -26,6 +26,7 @@ obj-$(CONFIG_GPIO_ADP5588) += gpio-adp55 obj-$(CONFIG_GPIO_ALTERA) += gpio-altera.o obj-$(CONFIG_GPIO_AMD8111) += gpio-amd8111.o obj-$(CONFIG_GPIO_AMDPT) += gpio-amdpt.o +obj-$(CONFIG_GPIO_AR2315) += gpio-ar2315.o obj-$(CONFIG_GPIO_AR5312) += gpio-ar5312.o obj-$(CONFIG_GPIO_ARIZONA) += gpio-arizona.o - obj-$(CONFIG_ATH79) += gpio-ath79.o + obj-$(CONFIG_GPIO_ATH79) += gpio-ath79.o --- /dev/null +++ b/drivers/gpio/gpio-ar2315.c @@ -0,0 +1,233 @@ diff --git a/target/linux/ath25/patches-4.4/110-ar2313_ethernet.patch b/target/linux/ath25/patches-4.9/110-ar2313_ethernet.patch similarity index 100% copy from target/linux/ath25/patches-4.4/110-ar2313_ethernet.patch copy to target/linux/ath25/patches-4.9/110-ar2313_ethernet.patch diff --git a/target/linux/ath25/patches-4.4/120-spiflash.patch b/target/linux/ath25/patches-4.9/120-spiflash.patch similarity index 99% copy from target/linux/ath25/patches-4.4/120-spiflash.patch copy to target/linux/ath25/patches-4.9/120-spiflash.patch index 91cb8be..695ea43 100644 --- a/target/linux/ath25/patches-4.4/120-spiflash.patch +++ b/target/linux/ath25/patches-4.9/120-spiflash.patch @@ -2,7 +2,7 @@ +++ b/drivers/mtd/devices/Kconfig @@ -120,6 +120,10 @@ config MTD_BCM47XXSFLASH registered by bcma as platform devices. This enables driver for - serial flash memories (only read-only mode is implemented). + serial flash memories. +config MTD_AR2315 + tristate "Atheros AR2315+ SPI Flash support" diff --git a/target/linux/ath25/patches-4.4/130-watchdog.patch b/target/linux/ath25/patches-4.9/130-watchdog.patch similarity index 97% copy from target/linux/ath25/patches-4.4/130-watchdog.patch copy to target/linux/ath25/patches-4.9/130-watchdog.patch index 251768f..fef3ac0 100644 --- a/target/linux/ath25/patches-4.4/130-watchdog.patch +++ b/target/linux/ath25/patches-4.9/130-watchdog.patch @@ -212,9 +212,9 @@ +MODULE_ALIAS("platform:" DRIVER_NAME); --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig -@@ -1345,6 +1345,13 @@ config RALINK_WDT - help - Hardware driver for the Ralink SoC Watchdog Timer. +@@ -1554,6 +1554,13 @@ config PIC32_DMT + To compile this driver as a loadable module, choose M here. + The module will be called pic32-dmt. +config AR2315_WDT + tristate "Atheros AR2315+ WiSoCs Watchdog Timer" @@ -228,7 +228,7 @@ # POWERPC Architecture --- a/drivers/watchdog/Makefile +++ b/drivers/watchdog/Makefile -@@ -143,6 +143,7 @@ obj-$(CONFIG_WDT_MTX1) += mtx-1_wdt.o +@@ -159,6 +159,7 @@ obj-$(CONFIG_WDT_MTX1) += mtx-1_wdt.o obj-$(CONFIG_PNX833X_WDT) += pnx833x_wdt.o obj-$(CONFIG_SIBYTE_WDOG) += sb_wdog.o obj-$(CONFIG_AR7_WDT) += ar7_wdt.o diff --git a/target/linux/ath25/patches-4.4/140-redboot_boardconfig.patch b/target/linux/ath25/patches-4.9/140-redboot_boardconfig.patch similarity index 97% copy from target/linux/ath25/patches-4.4/140-redboot_boardconfig.patch copy to target/linux/ath25/patches-4.9/140-redboot_boardconfig.patch index 98dbf52..6aad761 100644 --- a/target/linux/ath25/patches-4.4/140-redboot_boardconfig.patch +++ b/target/linux/ath25/patches-4.9/140-redboot_boardconfig.patch @@ -10,7 +10,7 @@ unsigned char name[16]; // Null terminated name uint32_t flash_base; // Address within FLASH of image @@ -60,6 +62,7 @@ static int parse_redboot_partitions(stru - struct mtd_partition **pparts, + const struct mtd_partition **pparts, struct mtd_part_parser_data *data) { + unsigned long max_offset = 0; diff --git a/target/linux/ath25/patches-4.4/141-redboot_partition_scan.patch b/target/linux/ath25/patches-4.9/141-redboot_partition_scan.patch similarity index 100% copy from target/linux/ath25/patches-4.4/141-redboot_partition_scan.patch copy to target/linux/ath25/patches-4.9/141-redboot_partition_scan.patch diff --git a/target/linux/ath25/patches-4.4/142-redboot_various_erase_size_fix.patch b/target/linux/ath25/patches-4.9/142-redboot_various_erase_size_fix.patch similarity index 97% copy from target/linux/ath25/patches-4.4/142-redboot_various_erase_size_fix.patch copy to target/linux/ath25/patches-4.9/142-redboot_various_erase_size_fix.patch index e1b0a89..ce039df 100644 --- a/target/linux/ath25/patches-4.4/142-redboot_various_erase_size_fix.patch +++ b/target/linux/ath25/patches-4.9/142-redboot_various_erase_size_fix.patch @@ -21,7 +21,7 @@ +} + static int parse_redboot_partitions(struct mtd_info *master, - struct mtd_partition **pparts, + const struct mtd_partition **pparts, struct mtd_part_parser_data *data) @@ -74,6 +90,7 @@ static int parse_redboot_partitions(stru int namelen = 0;