From patchwork Fri Mar 13 02:19:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Ryazanov X-Patchwork-Id: 449770 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C4E7140082 for ; Fri, 13 Mar 2015 13:39:54 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=rP9TkYbv; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 1D14928C693; Fri, 13 Mar 2015 03:25:39 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id E4AA128C180 for ; Fri, 13 Mar 2015 03:20:44 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-la0-f46.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 13 Mar 2015 03:19:56 +0100 (CET) Received: by lams18 with SMTP id s18so19849175lam.2 for ; Thu, 12 Mar 2015 19:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=N6R2vtD+L+sXEPTfbTJ+l23hrGhCynPRotxc8z+vhVY=; b=rP9TkYbvcSFRPgLxx2jxUiSWev5/RzRCahJ6vW1vzXxu4rTBu9sCfAQ9yL3+ZIdRBt iTfYrFOQ4JOWqb2hQUo4GKel2tC4py6jTvqbMZDuOabCbyWMu0pPVVL2cPebwuJd81Zc 3ygm/l+XigNV3/Mhyiz1hmlOU9D/LyuEpTWZ2uWrDTk0qwK27HHhIzil/YaMm6hm75gj /BkM1lFwKn/Txsu5KB9lZHAwlLS+wmQeG3p2kzeGFS12uw8C+qujfSIZHr1dsDwL/B/n ATqzotvhyaWmen1ccoN6hFRehTpZtjEuRQZiuRzvbglIL3JPEbGGtf2tkr9sOGwI//J8 OlBg== X-Received: by 10.152.21.136 with SMTP id v8mr41850474lae.64.1426213211925; Thu, 12 Mar 2015 19:20:11 -0700 (PDT) Received: from rsa-laptop.internal.lan ([217.25.229.52]) by mx.google.com with ESMTPSA id ao5sm107290lac.48.2015.03.12.19.20.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Mar 2015 19:20:11 -0700 (PDT) From: Sergey Ryazanov To: OpenWrt Development List Date: Fri, 13 Mar 2015 05:19:31 +0300 Message-Id: <1426213178-5239-27-git-send-email-ryazanov.s.a@gmail.com> X-Mailer: git-send-email 2.0.4 In-Reply-To: <1426213178-5239-1-git-send-email-ryazanov.s.a@gmail.com> References: <1426213178-5239-1-git-send-email-ryazanov.s.a@gmail.com> Subject: [OpenWrt-Devel] [PATCH 26/33] atheros: v3.18: cleanup includes X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Remove odd and add missed includes. Signed-off-by: Sergey Ryazanov --- target/linux/atheros/patches-3.18/100-board.patch | 49 +++++++--------------- .../patches-3.18/101-early-printk-support.patch | 3 +- .../atheros/patches-3.18/105-ar2315_pci.patch | 4 +- .../atheros/patches-3.18/107-ar5312_gpio.patch | 10 ++--- .../atheros/patches-3.18/108-ar2315_gpio.patch | 16 +++---- .../atheros/patches-3.18/110-ar2313_ethernet.patch | 24 +++++------ .../linux/atheros/patches-3.18/120-spiflash.patch | 4 +- .../linux/atheros/patches-3.18/130-watchdog.patch | 4 +- .../atheros/patches-3.18/330-board_leds.patch | 14 +++---- 9 files changed, 53 insertions(+), 75 deletions(-) diff --git a/target/linux/atheros/patches-3.18/100-board.patch b/target/linux/atheros/patches-3.18/100-board.patch index 643014f..14ba5c3 100644 --- a/target/linux/atheros/patches-3.18/100-board.patch +++ b/target/linux/atheros/patches-3.18/100-board.patch @@ -77,7 +77,7 @@ +obj-$(CONFIG_SOC_AR2315) += ar2315.o --- /dev/null +++ b/arch/mips/ath25/board.c -@@ -0,0 +1,244 @@ +@@ -0,0 +1,235 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive @@ -89,17 +89,8 @@ + * Copyright (C) 2006-2009 Felix Fietkau + */ + -+#include +#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include ++#include +#include +#include +#include @@ -1102,7 +1093,7 @@ +#endif /* __ASM_MACH_ATH25_AR2315_REGS_H */ --- /dev/null +++ b/arch/mips/ath25/ar5312_regs.h -@@ -0,0 +1,225 @@ +@@ -0,0 +1,223 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive @@ -1116,8 +1107,6 @@ +#ifndef __ASM_MACH_ATH25_AR5312_REGS_H +#define __ASM_MACH_ATH25_AR5312_REGS_H + -+#include -+ +/* + * IRQs + */ @@ -1330,7 +1319,7 @@ +#endif /* __ASM_MACH_ATH25_AR5312_REGS_H */ --- /dev/null +++ b/arch/mips/ath25/ar5312.c -@@ -0,0 +1,401 @@ +@@ -0,0 +1,396 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive @@ -1347,22 +1336,17 @@ + * Platform devices for Atheros SoCs + */ + -+#include +#include -+#include -+#include -+#include -+#include -+#include +#include +#include +#include ++#include ++#include ++#include +#include +#include +#include +#include -+#include -+#include + +#include + @@ -1734,7 +1718,7 @@ +} --- /dev/null +++ b/arch/mips/ath25/ar2315.c -@@ -0,0 +1,312 @@ +@@ -0,0 +1,307 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive @@ -1751,21 +1735,16 @@ + * Platform devices for Atheros SoCs + */ + -+#include +#include -+#include -+#include -+#include -+#include +#include +#include +#include ++#include ++#include +#include +#include +#include +#include -+#include -+#include + +#include + @@ -2127,10 +2106,12 @@ +#endif --- /dev/null +++ b/arch/mips/ath25/devices.h -@@ -0,0 +1,41 @@ +@@ -0,0 +1,43 @@ +#ifndef __ATH25_DEVICES_H +#define __ATH25_DEVICES_H + ++#include ++ +#define ATH25_REG_MS(_val, _field) (((_val) & _field##_M) >> _field##_S) + +#define ATH25_IRQ_CPU_CLOCK (MIPS_CPU_IRQ_BASE + 7) /* C0_CAUSE: 0x8000 */ @@ -2171,11 +2152,9 @@ +#endif --- /dev/null +++ b/arch/mips/ath25/devices.c -@@ -0,0 +1,127 @@ +@@ -0,0 +1,125 @@ +#include +#include -+#include -+#include +#include +#include +#include diff --git a/target/linux/atheros/patches-3.18/101-early-printk-support.patch b/target/linux/atheros/patches-3.18/101-early-printk-support.patch index 6ad1455..d193031 100644 --- a/target/linux/atheros/patches-3.18/101-early-printk-support.patch +++ b/target/linux/atheros/patches-3.18/101-early-printk-support.patch @@ -1,6 +1,6 @@ --- /dev/null +++ b/arch/mips/ath25/early_printk.c -@@ -0,0 +1,46 @@ +@@ -0,0 +1,45 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive @@ -12,7 +12,6 @@ +#include +#include +#include -+#include + +#include "devices.h" +#include "ar2315_regs.h" diff --git a/target/linux/atheros/patches-3.18/105-ar2315_pci.patch b/target/linux/atheros/patches-3.18/105-ar2315_pci.patch index 80256d4..24890b7 100644 --- a/target/linux/atheros/patches-3.18/105-ar2315_pci.patch +++ b/target/linux/atheros/patches-3.18/105-ar2315_pci.patch @@ -537,7 +537,7 @@ + default y --- a/arch/mips/ath25/ar2315.c +++ b/arch/mips/ath25/ar2315.c -@@ -139,6 +139,10 @@ static void ar2315_irq_dispatch(void) +@@ -134,6 +134,10 @@ static void ar2315_irq_dispatch(void) if (pending & CAUSEF_IP3) do_IRQ(AR2315_IRQ_WLAN0); @@ -548,7 +548,7 @@ else if (pending & CAUSEF_IP2) do_IRQ(AR2315_IRQ_MISC); else if (pending & CAUSEF_IP7) -@@ -303,10 +307,62 @@ void __init ar2315_plat_mem_setup(void) +@@ -298,10 +302,62 @@ void __init ar2315_plat_mem_setup(void) _machine_restart = ar2315_restart; } diff --git a/target/linux/atheros/patches-3.18/107-ar5312_gpio.patch b/target/linux/atheros/patches-3.18/107-ar5312_gpio.patch index ec336b4..ae88fd8 100644 --- a/target/linux/atheros/patches-3.18/107-ar5312_gpio.patch +++ b/target/linux/atheros/patches-3.18/107-ar5312_gpio.patch @@ -10,15 +10,15 @@ config SOC_AR2315 --- a/arch/mips/ath25/ar5312.c +++ b/arch/mips/ath25/ar5312.c -@@ -25,6 +25,7 @@ - #include - #include +@@ -22,6 +22,7 @@ + #include + #include #include +#include #include #include #include -@@ -185,6 +186,22 @@ static struct platform_device ar5312_phy +@@ -180,6 +181,22 @@ static struct platform_device ar5312_phy .num_resources = 1, }; @@ -41,7 +41,7 @@ static void __init ar5312_flash_init(void) { void __iomem *flashctl_base; -@@ -252,6 +269,8 @@ void __init ar5312_init_devices(void) +@@ -247,6 +264,8 @@ void __init ar5312_init_devices(void) platform_device_register(&ar5312_physmap_flash); diff --git a/target/linux/atheros/patches-3.18/108-ar2315_gpio.patch b/target/linux/atheros/patches-3.18/108-ar2315_gpio.patch index 187e5a6..dbc22e8 100644 --- a/target/linux/atheros/patches-3.18/108-ar2315_gpio.patch +++ b/target/linux/atheros/patches-3.18/108-ar2315_gpio.patch @@ -10,16 +10,16 @@ config PCI_AR2315 --- a/arch/mips/ath25/ar2315.c +++ b/arch/mips/ath25/ar2315.c -@@ -24,6 +24,8 @@ - #include - #include +@@ -21,6 +21,8 @@ + #include + #include #include +#include +#include #include #include #include -@@ -172,11 +174,42 @@ void __init ar2315_arch_init_irq(void) +@@ -167,11 +169,42 @@ void __init ar2315_arch_init_irq(void) ar2315_misc_irq_domain = domain; } @@ -62,7 +62,7 @@ ath25_add_wmac(0, AR2315_WLAN0_BASE, AR2315_IRQ_WLAN0); } -@@ -192,8 +225,8 @@ static void ar2315_restart(char *command +@@ -187,8 +220,8 @@ static void ar2315_restart(char *command /* Cold reset does not work on the AR2315/6, use the GPIO reset bits * a workaround. Give it some time to attempt a gpio based hardware * reset (atheros reference design workaround) */ @@ -337,9 +337,9 @@ +subsys_initcall(ar2315_gpio_init); --- a/arch/mips/ath25/devices.h +++ b/arch/mips/ath25/devices.h -@@ -1,6 +1,11 @@ - #ifndef __ATH25_DEVICES_H - #define __ATH25_DEVICES_H +@@ -3,6 +3,11 @@ + + #include +#define AR231X_GPIO_IRQ_BASE 0x30 + diff --git a/target/linux/atheros/patches-3.18/110-ar2313_ethernet.patch b/target/linux/atheros/patches-3.18/110-ar2313_ethernet.patch index 7d90aec..7ac7b58 100644 --- a/target/linux/atheros/patches-3.18/110-ar2313_ethernet.patch +++ b/target/linux/atheros/patches-3.18/110-ar2313_ethernet.patch @@ -1545,7 +1545,7 @@ */ --- a/arch/mips/ath25/ar5312_regs.h +++ b/arch/mips/ath25/ar5312_regs.h -@@ -66,6 +66,10 @@ +@@ -64,6 +64,10 @@ #define AR5312_AR5312_REV7 0x0057 /* AR5312 WMAC (AP30-040) */ #define AR5312_AR2313_REV8 0x0058 /* AR2313 WMAC (AP43-030) */ @@ -1558,7 +1558,7 @@ #define AR5312_RELOAD 0x0004 /* timer reload value */ --- a/arch/mips/ath25/ar2315.c +++ b/arch/mips/ath25/ar2315.c -@@ -141,6 +141,8 @@ static void ar2315_irq_dispatch(void) +@@ -136,6 +136,8 @@ static void ar2315_irq_dispatch(void) if (pending & CAUSEF_IP3) do_IRQ(AR2315_IRQ_WLAN0); @@ -1567,7 +1567,7 @@ #ifdef CONFIG_PCI_AR2315 else if (pending & CAUSEF_IP5) do_IRQ(AR2315_IRQ_LCBUS_PCI); -@@ -174,6 +176,29 @@ void __init ar2315_arch_init_irq(void) +@@ -169,6 +171,29 @@ void __init ar2315_arch_init_irq(void) ar2315_misc_irq_domain = domain; } @@ -1597,7 +1597,7 @@ static struct resource ar2315_gpio_res[] = { { .name = "ar2315-gpio", -@@ -210,6 +235,11 @@ void __init ar2315_init_devices(void) +@@ -205,6 +230,11 @@ void __init ar2315_init_devices(void) ar2315_gpio_res[1].end = ar2315_gpio_res[1].start; platform_device_register(&ar2315_gpio); @@ -1611,7 +1611,7 @@ --- a/arch/mips/ath25/ar5312.c +++ b/arch/mips/ath25/ar5312.c -@@ -137,6 +137,10 @@ static void ar5312_irq_dispatch(void) +@@ -132,6 +132,10 @@ static void ar5312_irq_dispatch(void) if (pending & CAUSEF_IP2) do_IRQ(AR5312_IRQ_WLAN0); @@ -1622,7 +1622,7 @@ else if (pending & CAUSEF_IP5) do_IRQ(AR5312_IRQ_WLAN1); else if (pending & CAUSEF_IP6) -@@ -168,6 +172,36 @@ void __init ar5312_arch_init_irq(void) +@@ -163,6 +167,36 @@ void __init ar5312_arch_init_irq(void) ar5312_misc_irq_domain = domain; } @@ -1659,7 +1659,7 @@ static struct physmap_flash_data ar5312_flash_data = { .width = 2, }; -@@ -248,6 +282,7 @@ static void __init ar5312_flash_init(voi +@@ -243,6 +277,7 @@ static void __init ar5312_flash_init(voi void __init ar5312_init_devices(void) { struct ath25_boarddata *config; @@ -1667,7 +1667,7 @@ ar5312_flash_init(); -@@ -271,8 +306,30 @@ void __init ar5312_init_devices(void) +@@ -266,8 +301,30 @@ void __init ar5312_init_devices(void) platform_device_register(&ar5312_gpio); @@ -1698,7 +1698,7 @@ if (!ath25_board.radio) return; -@@ -281,8 +338,18 @@ void __init ar5312_init_devices(void) +@@ -276,8 +333,18 @@ void __init ar5312_init_devices(void) ath25_add_wmac(0, AR5312_WLAN0_BASE, AR5312_IRQ_WLAN0); break; @@ -1719,7 +1719,7 @@ break; --- a/arch/mips/ath25/devices.h +++ b/arch/mips/ath25/devices.h -@@ -30,6 +30,8 @@ extern struct ar231x_board_config ath25_ +@@ -32,6 +32,8 @@ extern struct ar231x_board_config ath25_ extern void (*ath25_irq_dispatch)(void); int ath25_find_config(phys_addr_t offset, unsigned long size); @@ -1730,7 +1730,7 @@ --- a/arch/mips/ath25/devices.c +++ b/arch/mips/ath25/devices.c -@@ -14,6 +14,51 @@ +@@ -12,6 +12,51 @@ struct ar231x_board_config ath25_board; enum ath25_soc_type ath25_soc = ATH25_SOC_UNKNOWN; @@ -1782,7 +1782,7 @@ static struct resource ath25_wmac0_res[] = { { .name = "wmac0_membase", -@@ -72,6 +117,25 @@ const char *get_system_type(void) +@@ -70,6 +115,25 @@ const char *get_system_type(void) return soc_type_strings[ath25_soc]; } diff --git a/target/linux/atheros/patches-3.18/120-spiflash.patch b/target/linux/atheros/patches-3.18/120-spiflash.patch index 06fe09c..7d88ee2 100644 --- a/target/linux/atheros/patches-3.18/120-spiflash.patch +++ b/target/linux/atheros/patches-3.18/120-spiflash.patch @@ -594,7 +594,7 @@ +#endif --- a/arch/mips/ath25/ar2315.c +++ b/arch/mips/ath25/ar2315.c -@@ -225,6 +225,28 @@ static struct platform_device ar2315_gpi +@@ -220,6 +220,28 @@ static struct platform_device ar2315_gpi .num_resources = ARRAY_SIZE(ar2315_gpio_res) }; @@ -623,7 +623,7 @@ void __init ar2315_init_devices(void) { /* Find board configuration */ -@@ -235,6 +257,8 @@ void __init ar2315_init_devices(void) +@@ -230,6 +252,8 @@ void __init ar2315_init_devices(void) ar2315_gpio_res[1].end = ar2315_gpio_res[1].start; platform_device_register(&ar2315_gpio); diff --git a/target/linux/atheros/patches-3.18/130-watchdog.patch b/target/linux/atheros/patches-3.18/130-watchdog.patch index cec9e42..255064a 100644 --- a/target/linux/atheros/patches-3.18/130-watchdog.patch +++ b/target/linux/atheros/patches-3.18/130-watchdog.patch @@ -238,7 +238,7 @@ octeon-wdt-y := octeon-wdt-main.o octeon-wdt-nmi.o --- a/arch/mips/ath25/ar2315.c +++ b/arch/mips/ath25/ar2315.c -@@ -225,6 +225,24 @@ static struct platform_device ar2315_gpi +@@ -220,6 +220,24 @@ static struct platform_device ar2315_gpi .num_resources = ARRAY_SIZE(ar2315_gpio_res) }; @@ -263,7 +263,7 @@ static struct resource ar2315_spiflash_res[] = { { .name = "spiflash_read", -@@ -257,6 +275,11 @@ void __init ar2315_init_devices(void) +@@ -252,6 +270,11 @@ void __init ar2315_init_devices(void) ar2315_gpio_res[1].end = ar2315_gpio_res[1].start; platform_device_register(&ar2315_gpio); diff --git a/target/linux/atheros/patches-3.18/330-board_leds.patch b/target/linux/atheros/patches-3.18/330-board_leds.patch index d069595..e357fc6 100644 --- a/target/linux/atheros/patches-3.18/330-board_leds.patch +++ b/target/linux/atheros/patches-3.18/330-board_leds.patch @@ -1,6 +1,6 @@ --- a/arch/mips/ath25/ar2315.c +++ b/arch/mips/ath25/ar2315.c -@@ -26,6 +26,7 @@ +@@ -23,6 +23,7 @@ #include #include #include @@ -8,7 +8,7 @@ #include #include #include -@@ -265,6 +266,50 @@ static struct platform_device ar2315_spi +@@ -260,6 +261,50 @@ static struct platform_device ar2315_spi .num_resources = ARRAY_SIZE(ar2315_spiflash_res) }; @@ -59,7 +59,7 @@ void __init ar2315_init_devices(void) { /* Find board configuration */ -@@ -275,6 +320,8 @@ void __init ar2315_init_devices(void) +@@ -270,6 +315,8 @@ void __init ar2315_init_devices(void) ar2315_gpio_res[1].end = ar2315_gpio_res[1].start; platform_device_register(&ar2315_gpio); @@ -70,15 +70,15 @@ ar2315_wdt_res[1].end = ar2315_wdt_res[1].start; --- a/arch/mips/ath25/ar5312.c +++ b/arch/mips/ath25/ar5312.c -@@ -26,6 +26,7 @@ - #include +@@ -23,6 +23,7 @@ + #include #include #include +#include #include #include #include -@@ -236,6 +237,23 @@ static struct platform_device ar5312_gpi +@@ -231,6 +232,23 @@ static struct platform_device ar5312_gpi .num_resources = ARRAY_SIZE(ar5312_gpio_res), }; @@ -102,7 +102,7 @@ static void __init ar5312_flash_init(void) { void __iomem *flashctl_base; -@@ -306,6 +324,11 @@ void __init ar5312_init_devices(void) +@@ -301,6 +319,11 @@ void __init ar5312_init_devices(void) platform_device_register(&ar5312_gpio);