Changeset 49176


Ignore:
Timestamp:
2016-04-16T23:05:48+02:00 (22 months ago)
Author:
hauke
Message:

kernel: update kernel 4.4 to version 4.4.7

Signed-off-by: Hauke Mehrtens <hauke@…>

Location:
trunk
Files:
2 deleted
93 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/kernel-version.mk

    r49096 r49176  
    66LINUX_VERSION-4.1 = .20 
    77LINUX_VERSION-4.3 = .4 
    8 LINUX_VERSION-4.4 = .6 
     8LINUX_VERSION-4.4 = .7 
    99 
    1010LINUX_KERNEL_MD5SUM-3.18.29 = b25737a0bc98e80d12200de93f239c28 
    1111LINUX_KERNEL_MD5SUM-4.1.20 = 075c38a3a23ca5bc80437b13606df00a 
    1212LINUX_KERNEL_MD5SUM-4.3.4 = 5275d02132107c28b85f986bad576d91 
    13 LINUX_KERNEL_MD5SUM-4.4.6 = efc822dad2149e40cc908718a4fea1d3 
     13LINUX_KERNEL_MD5SUM-4.4.7 = 4345597c9a10bd73c28b6ae3a854d8d7 
    1414 
    1515ifdef KERNEL_PATCHVER 
  • trunk/target/linux/ar71xx/patches-4.4/003-MIPS-ath79-make-bootconsole-wait-for-both-THRE-and-T.patch

    r49156 r49176  
    2828 1 file changed, 4 insertions(+), 2 deletions(-) 
    2929 
    30 diff --git a/arch/mips/ath79/early_printk.c b/arch/mips/ath79/early_printk.c 
    31 index b955faf..d1adc59 100644 
    3230--- a/arch/mips/ath79/early_printk.c 
    3331+++ b/arch/mips/ath79/early_printk.c 
    34 @@ -31,13 +31,15 @@ static inline void prom_putchar_wait(void __iomem *reg, u32 mask, u32 val) 
     32@@ -31,13 +31,15 @@ static inline void prom_putchar_wait(voi 
    3533        } while (1); 
    3634 } 
     
    5048  
    5149 static void prom_putchar_ar933x(unsigned char ch) 
    52 --  
    53 2.7.4 
    54  
  • trunk/target/linux/ar71xx/patches-4.4/521-MIPS-ath79-enable-UART-for-early_serial.patch

    r48563 r49176  
    11--- a/arch/mips/ath79/early_printk.c 
    22+++ b/arch/mips/ath79/early_printk.c 
    3 @@ -56,6 +56,46 @@ static void prom_putchar_dummy(unsigned 
     3@@ -58,6 +58,46 @@ static void prom_putchar_dummy(unsigned 
    44        /* nothing to do */ 
    55 } 
     
    4848 { 
    4949        void __iomem *base; 
    50 @@ -86,8 +126,10 @@ static void prom_putchar_init(void) 
     50@@ -88,8 +128,10 @@ static void prom_putchar_init(void) 
    5151  
    5252        default: 
  • trunk/target/linux/ar71xx/patches-4.4/620-MIPS-ath79-add-support-for-QCA953x-SoC.patch

    r49075 r49176  
    286286--- a/arch/mips/ath79/early_printk.c 
    287287+++ b/arch/mips/ath79/early_printk.c 
    288 @@ -114,6 +114,8 @@ static void prom_putchar_init(void) 
     288@@ -116,6 +116,8 @@ static void prom_putchar_init(void) 
    289289        case REV_ID_MAJOR_AR9341: 
    290290        case REV_ID_MAJOR_AR9342: 
  • trunk/target/linux/ar71xx/patches-4.4/621-MIPS-ath79-add-support-for-QCA956x-SoC.patch

    r49075 r49176  
    258258--- a/arch/mips/ath79/early_printk.c 
    259259+++ b/arch/mips/ath79/early_printk.c 
    260 @@ -118,6 +118,8 @@ static void prom_putchar_init(void) 
     260@@ -120,6 +120,8 @@ static void prom_putchar_init(void) 
    261261        case REV_ID_MAJOR_QCA9533_V2: 
    262262        case REV_ID_MAJOR_QCA9556: 
  • trunk/target/linux/ar71xx/patches-4.4/820-MIPS-ath79-add_gpio_function2_setup.patch

    r48563 r49176  
    1515--- a/arch/mips/ath79/gpio.c 
    1616+++ b/arch/mips/ath79/gpio.c 
    17 @@ -42,6 +42,31 @@ static void __iomem *ath79_gpio_get_func 
     17@@ -43,6 +43,31 @@ static void __iomem *ath79_gpio_get_func 
    1818        return ath79_gpio_base + reg; 
    1919 } 
  • trunk/target/linux/bcm53xx/patches-4.4/088-PCI-iproc-Allow-multiple-devices-except-on-PAXC.patch

    r49114 r49176  
    3131 #define IPROC_PCIE_REG_INVALID 0xffff 
    3232  
    33 @@ -170,20 +169,6 @@ static inline void iproc_pcie_ob_write(struct iproc_pcie *pcie, 
     33@@ -170,20 +169,6 @@ static inline void iproc_pcie_ob_write(s 
    3434        writel(val, pcie->base + offset + (window * 8)); 
    3535 } 
     
    5252  * Note access to the configuration registers are protected at the higher layer 
    5353  * by 'pci_lock' in drivers/pci/access.c 
    54 @@ -199,11 +184,11 @@ static void __iomem *iproc_pcie_map_cfg_bus(struct pci_bus *bus, 
     54@@ -199,11 +184,11 @@ static void __iomem *iproc_pcie_map_cfg_ 
    5555        u32 val; 
    5656        u16 offset; 
     
    6767                                     where & CFG_IND_ADDR_MASK); 
    6868                offset = iproc_pcie_reg_offset(pcie, IPROC_PCIE_CFG_IND_DATA); 
    69 @@ -213,6 +198,14 @@ static void __iomem *iproc_pcie_map_cfg_bus(struct pci_bus *bus, 
     69@@ -213,6 +198,14 @@ static void __iomem *iproc_pcie_map_cfg_ 
    7070                        return (pcie->base + offset); 
    7171        } 
  • trunk/target/linux/bcm53xx/patches-4.4/800-PCI-iproc-Ignore-ARM-core-aborts-when-running-on-bcm.patch

    r49121 r49176  
    1515--- a/drivers/pci/host/pcie-iproc-bcma.c 
    1616+++ b/drivers/pci/host/pcie-iproc-bcma.c 
    17 @@ -40,6 +40,15 @@ static int iproc_pcie_bcma_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 
     17@@ -40,6 +40,15 @@ static int iproc_pcie_bcma_map_irq(const 
    1818        return bcma_core_irq(bdev, 5); 
    1919 } 
     
    3131 { 
    3232        struct iproc_pcie *pcie; 
    33 @@ -65,6 +74,9 @@ static int iproc_pcie_bcma_probe(struct bcma_device *bdev) 
     33@@ -65,6 +74,9 @@ static int iproc_pcie_bcma_probe(struct 
    3434  
    3535        pcie->map_irq = iproc_pcie_bcma_map_irq; 
  • trunk/target/linux/bcm53xx/patches-4.4/811-USB-bcma-improve-USB-2.0-PHY-support-for-BCM4709-and.patch

    r49094 r49176  
    2828 MODULE_DESCRIPTION("Common USB driver for BCMA Bus"); 
    2929 MODULE_LICENSE("GPL"); 
    30 @@ -167,10 +178,35 @@ static void bcma_hcd_init_chip_mips(struct bcma_device *dev) 
     30@@ -167,10 +178,35 @@ static void bcma_hcd_init_chip_mips(stru 
    3131        } 
    3232 } 
     
    6464        arm_core = bcma_find_core(dev->bus, BCMA_CORE_ARMCA9); 
    6565        if (!arm_core) { 
    66 @@ -184,14 +220,29 @@ static void bcma_hcd_init_chip_arm_phy(struct bcma_device *dev) 
     66@@ -184,14 +220,29 @@ static void bcma_hcd_init_chip_arm_phy(s 
    6767                return; 
    6868        } 
     
    9797        iounmap(dmu); 
    9898 } 
    99 @@ -219,15 +270,17 @@ static void bcma_hcd_init_chip_arm_hc(struct bcma_device *dev) 
     99@@ -219,15 +270,17 @@ static void bcma_hcd_init_chip_arm_hc(st 
    100100  
    101101 static void bcma_hcd_init_chip_arm(struct bcma_device *dev) 
  • trunk/target/linux/brcm2708/patches-4.4/0029-Add-dwc_otg-driver.patch

    r48966 r49176  
    660660--- a/drivers/usb/core/hub.c 
    661661+++ b/drivers/usb/core/hub.c 
    662 @@ -4967,7 +4967,7 @@ static void port_event(struct usb_hub *h 
     662@@ -4973,7 +4973,7 @@ static void port_event(struct usb_hub *h 
    663663        if (portchange & USB_PORT_STAT_C_OVERCURRENT) { 
    664664                u16 status = 0, unused; 
  • trunk/target/linux/brcm2708/patches-4.4/0032-Add-blk_pos-parameter-to-mmc-multi_io_quirk-callback.patch

    r48966 r49176  
    1414--- a/drivers/mmc/card/block.c 
    1515+++ b/drivers/mmc/card/block.c 
    16 @@ -1510,6 +1510,7 @@ static void mmc_blk_rw_rq_prep(struct mm 
     16@@ -1518,6 +1518,7 @@ static void mmc_blk_rw_rq_prep(struct mm 
    1717                        brq->data.blocks = card->host->ops->multi_io_quirk(card, 
    1818                                                (rq_data_dir(req) == READ) ? 
  • trunk/target/linux/brcm2708/patches-4.4/0062-config-Enable-CONFIG_MEMCG-but-leave-it-disabled-due.patch

    r48966 r49176  
    1111--- a/kernel/cgroup.c 
    1212+++ b/kernel/cgroup.c 
    13 @@ -5286,7 +5286,7 @@ int __init cgroup_init_early(void) 
     13@@ -5302,7 +5302,7 @@ int __init cgroup_init_early(void) 
    1414        return 0; 
    1515 } 
     
    2020 /** 
    2121  * cgroup_init - cgroup initialization 
    22 @@ -5782,6 +5782,27 @@ static int __init cgroup_disable(char *s 
     22@@ -5798,6 +5798,27 @@ static int __init cgroup_disable(char *s 
    2323 } 
    2424 __setup("cgroup_disable=", cgroup_disable); 
  • trunk/target/linux/brcm2708/patches-4.4/0112-mm-Remove-the-PFN-busy-warning.patch

    r48966 r49176  
    1515--- a/mm/page_alloc.c 
    1616+++ b/mm/page_alloc.c 
    17 @@ -6760,8 +6760,6 @@ int alloc_contig_range(unsigned long sta 
     17@@ -6780,8 +6780,6 @@ int alloc_contig_range(unsigned long sta 
    1818  
    1919        /* Make sure the range is really isolated. */ 
  • trunk/target/linux/brcm2708/patches-4.4/0153-Revert-Add-blk_pos-parameter-to-mmc-multi_io_quirk-c.patch

    r48966 r49176  
    1818--- a/drivers/mmc/card/block.c 
    1919+++ b/drivers/mmc/card/block.c 
    20 @@ -1510,7 +1510,6 @@ static void mmc_blk_rw_rq_prep(struct mm 
     20@@ -1518,7 +1518,6 @@ static void mmc_blk_rw_rq_prep(struct mm 
    2121                        brq->data.blocks = card->host->ops->multi_io_quirk(card, 
    2222                                                (rq_data_dir(req) == READ) ? 
  • trunk/target/linux/brcm47xx/patches-4.4/901-Revert-bcma-switch-GPIO-portions-to-use-GPIOLIB_IRQC.patch

    r49032 r49176  
    224224--- a/include/linux/bcma/bcma_driver_chipcommon.h 
    225225+++ b/include/linux/bcma/bcma_driver_chipcommon.h 
    226 @@ -647,6 +647,7 @@ struct bcma_drv_cc { 
     226@@ -646,6 +646,7 @@ struct bcma_drv_cc { 
    227227        spinlock_t gpio_lock; 
    228228 #ifdef CONFIG_BCMA_DRIVER_GPIO 
  • trunk/target/linux/generic/patches-4.4/210-darwin_scripts_include.patch

    r47701 r49176  
    3939--- a/scripts/kconfig/Makefile 
    4040+++ b/scripts/kconfig/Makefile 
    41 @@ -159,6 +159,9 @@ check-lxdialog  := $(srctree)/$(src)/lxd 
     41@@ -161,6 +161,9 @@ check-lxdialog  := $(srctree)/$(src)/lxd 
    4242 # we really need to do so. (Do not call gcc as part of make mrproper) 
    4343 HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) \ 
  • trunk/target/linux/generic/patches-4.4/333-arc-enable-unaligned-access-in-kernel-mode.patch

    r49134 r49176  
    1414 1 file changed, 1 insertion(+), 1 deletion(-) 
    1515 
    16 diff --git a/arch/arc/kernel/unaligned.c b/arch/arc/kernel/unaligned.c 
    17 index abd961f..0b0cc97 100644 
    1816--- a/arch/arc/kernel/unaligned.c 
    1917+++ b/arch/arc/kernel/unaligned.c 
    20 @@ -206,7 +206,7 @@ int misaligned_fixup(unsigned long address, struct pt_regs *regs, 
     18@@ -206,7 +206,7 @@ int misaligned_fixup(unsigned long addre 
    2119        char buf[TASK_COMM_LEN]; 
    2220  
     
    2725  
    2826        if (no_unaligned_warning) { 
    29 --  
    30 2.5.0 
    31  
  • trunk/target/linux/generic/patches-4.4/773-bgmac-add-srab-switch.patch

    r48756 r49176  
    3131  * BCMA bus ops 
    3232  **************************************************/ 
    33 @@ -1686,6 +1698,14 @@ static int bgmac_probe(struct bcma_devic 
     33@@ -1688,6 +1700,14 @@ static int bgmac_probe(struct bcma_devic 
    3434        net_dev->hw_features = net_dev->features; 
    3535        net_dev->vlan_features = net_dev->features; 
     
    4646        if (err) { 
    4747                bgmac_err(bgmac, "Cannot register net device\n"); 
    48 @@ -1712,6 +1732,10 @@ static void bgmac_remove(struct bcma_dev 
     48@@ -1714,6 +1734,10 @@ static void bgmac_remove(struct bcma_dev 
    4949 { 
    5050        struct bgmac *bgmac = bcma_get_drvdata(core); 
  • trunk/target/linux/lantiq/patches-4.4/0001-MIPS-lantiq-add-pcie-driver.patch

    r48307 r49176  
    54965496--- a/include/linux/pci.h 
    54975497+++ b/include/linux/pci.h 
    5498 @@ -1228,6 +1228,8 @@ void pci_walk_bus(struct pci_bus *top, i 
     5498@@ -1229,6 +1229,8 @@ void pci_walk_bus(struct pci_bus *top, i 
    54995499                  void *userdata); 
    55005500 int pci_cfg_space_size(struct pci_dev *dev); 
  • trunk/target/linux/mediatek/patches-4.4/0001-NET-multi-phy-support.patch

    r49132 r49176  
    1010 2 files changed, 7 insertions(+), 3 deletions(-) 
    1111 
    12 diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c 
    13 index 47cd306..f69d12f 100644 
    1412--- a/drivers/net/phy/phy.c 
    1513+++ b/drivers/net/phy/phy.c 
    16 @@ -844,7 +844,8 @@ void phy_state_machine(struct work_struct *work) 
     14@@ -888,7 +888,8 @@ void phy_state_machine(struct work_struc 
    1715                /* If the link is down, give up on negotiation for now */ 
    1816                if (!phydev->link) { 
     
    2422                        break; 
    2523                } 
    26 @@ -927,7 +928,8 @@ void phy_state_machine(struct work_struct *work) 
     24@@ -971,7 +972,8 @@ void phy_state_machine(struct work_struc 
    2725                        netif_carrier_on(phydev->attached_dev); 
    2826                } else { 
     
    3432  
    3533                phydev->adjust_link(phydev->attached_dev); 
    36 @@ -939,7 +941,8 @@ void phy_state_machine(struct work_struct *work) 
     34@@ -983,7 +985,8 @@ void phy_state_machine(struct work_struc 
    3735        case PHY_HALTED: 
    3836                if (phydev->link) { 
     
    4442                        do_suspend = true; 
    4543                } 
    46 diff --git a/include/linux/phy.h b/include/linux/phy.h 
    47 index 05fde31..276ab8a 100644 
    4844--- a/include/linux/phy.h 
    4945+++ b/include/linux/phy.h 
     
    5652        enum phy_state state; 
    5753  
    58 --  
    59 1.7.10.4 
    60  
  • trunk/target/linux/mediatek/patches-4.4/0002-soc-mediatek-Separate-scpsys-driver-common-code.patch

    r49132 r49176  
    1818 create mode 100644 drivers/soc/mediatek/mtk-scpsys.h 
    1919 
    20 diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig 
    21 index 0a4ea80..eca6fb7 100644 
    2220--- a/drivers/soc/mediatek/Kconfig 
    2321+++ b/drivers/soc/mediatek/Kconfig 
     
    4543+         The System Control Processor System (SCPSYS) has several power 
    4644+         management related tasks in the system. 
    47 diff --git a/drivers/soc/mediatek/Makefile b/drivers/soc/mediatek/Makefile 
    48 index 12998b0..3b22baa 100644 
    4945--- a/drivers/soc/mediatek/Makefile 
    5046+++ b/drivers/soc/mediatek/Makefile 
     
    5450 obj-$(CONFIG_MTK_SCPSYS) += mtk-scpsys.o 
    5551+obj-$(CONFIG_MTK_SCPSYS_MT8173) += mtk-scpsys-mt8173.o 
    56 diff --git a/drivers/soc/mediatek/mtk-scpsys-mt8173.c b/drivers/soc/mediatek/mtk-scpsys-mt8173.c 
    57 new file mode 100644 
    58 index 0000000..3c7b569 
    5952--- /dev/null 
    6053+++ b/drivers/soc/mediatek/mtk-scpsys-mt8173.c 
     
    239232+ 
    240233+module_platform_driver_probe(scpsys_drv, scpsys_probe); 
    241 diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c 
    242 index 4d4203c..a0943c5 100644 
    243234--- a/drivers/soc/mediatek/mtk-scpsys.c 
    244235+++ b/drivers/soc/mediatek/mtk-scpsys.c 
     
    258249 #include <linux/soc/mediatek/infracfg.h> 
    259250-#include <dt-bindings/power/mt8173-power.h> 
    260 - 
     251  
    261252-#define SPM_VDE_PWR_CON                        0x0210 
    262253-#define SPM_MFG_PWR_CON                        0x0214 
     
    269260-#define SPM_MFG_ASYNC_PWR_CON          0x02c4 
    270261-#define SPM_USB_PWR_CON                        0x02cc 
    271 + 
    272262+#include "mtk-scpsys.h" 
    273263+ 
     
    429419 { 
    430420        struct scp *scp = scpd->scp; 
    431 @@ -398,63 +237,89 @@ static bool scpsys_active_wakeup(struct device *dev) 
     421@@ -398,63 +237,89 @@ static bool scpsys_active_wakeup(struct 
    432422        return scpd->active_wakeup; 
    433423 } 
     
    519509+ 
    520510+       pd_data = &scp->pd_data; 
    521 + 
     511  
     512-       for (i = 0; i < NUM_DOMAINS; i++) { 
    522513+       pd_data->domains = devm_kzalloc(&pdev->dev, 
    523514+                       sizeof(*pd_data->domains) * num, GFP_KERNEL); 
    524515+       if (!pd_data->domains) 
    525516+               return ERR_PTR(-ENOMEM); 
    526   
    527 -       for (i = 0; i < NUM_DOMAINS; i++) { 
     517+ 
    528518+       pd_data->num_domains = num; 
    529519+ 
     
    550540                scpd->scp = scp; 
    551541  
    552 @@ -464,13 +329,25 @@ static int __init scpsys_probe(struct platform_device *pdev) 
     542@@ -464,13 +329,25 @@ static int __init scpsys_probe(struct pl 
    553543                scpd->sram_pdn_ack_bits = data->sram_pdn_ack_bits; 
    554544                scpd->bus_prot_mask = data->bus_prot_mask; 
     
    578568                /* 
    579569                 * Initially turn on all domains to make the domains usable 
    580 @@ -489,37 +366,9 @@ static int __init scpsys_probe(struct platform_device *pdev) 
     570@@ -489,37 +366,9 @@ static int __init scpsys_probe(struct pl 
    581571         * valid. 
    582572         */ 
     
    617607- 
    618608-module_platform_driver_probe(scpsys_drv, scpsys_probe); 
    619 diff --git a/drivers/soc/mediatek/mtk-scpsys.h b/drivers/soc/mediatek/mtk-scpsys.h 
    620 new file mode 100644 
    621 index 0000000..466728d 
    622609--- /dev/null 
    623610+++ b/drivers/soc/mediatek/mtk-scpsys.h 
     
    677664+ 
    678665+#endif /* __DRV_SOC_MTK_H */ 
    679 --  
    680 1.7.10.4 
    681  
  • trunk/target/linux/mediatek/patches-4.4/0003-soc-mediatek-Init-MT8173-scpsys-driver-earlier.patch

    r49132 r49176  
    1313 1 file changed, 12 insertions(+), 1 deletion(-) 
    1414 
    15 diff --git a/drivers/soc/mediatek/mtk-scpsys-mt8173.c b/drivers/soc/mediatek/mtk-scpsys-mt8173.c 
    16 index 3c7b569..827e696 100644 
    1715--- a/drivers/soc/mediatek/mtk-scpsys-mt8173.c 
    1816+++ b/drivers/soc/mediatek/mtk-scpsys-mt8173.c 
    19 @@ -176,4 +176,15 @@ static struct platform_driver scpsys_drv = { 
     17@@ -176,4 +176,15 @@ static struct platform_driver scpsys_drv 
    2018        }, 
    2119 }; 
     
    3432+subsys_initcall(scpsys_drv_init); 
    3533+module_exit(scpsys_drv_exit); 
    36 --  
    37 1.7.10.4 
    38  
  • trunk/target/linux/mediatek/patches-4.4/0004-soc-mediatek-Add-MT2701-power-dt-bindings.patch

    r49132 r49176  
    1313 create mode 100644 include/dt-bindings/power/mt2701-power.h 
    1414 
    15 diff --git a/include/dt-bindings/power/mt2701-power.h b/include/dt-bindings/power/mt2701-power.h 
    16 new file mode 100644 
    17 index 0000000..64cc826 
    1815--- /dev/null 
    1916+++ b/include/dt-bindings/power/mt2701-power.h 
     
    4643+ 
    4744+#endif /* _DT_BINDINGS_POWER_MT2701_POWER_H */ 
    48 --  
    49 1.7.10.4 
    50  
  • trunk/target/linux/mediatek/patches-4.4/0005-soc-mediatek-Add-MT2701-MT7623-scpsys-driver.patch

    r49132 r49176  
    1515 create mode 100644 drivers/soc/mediatek/mtk-scpsys-mt2701.c 
    1616 
    17 diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig 
    18 index eca6fb7..92cf838 100644 
    1917--- a/drivers/soc/mediatek/Kconfig 
    2018+++ b/drivers/soc/mediatek/Kconfig 
     
    3432+         The System Control Processor System (SCPSYS) has several power 
    3533+         management related tasks in the system. 
    36 diff --git a/drivers/soc/mediatek/Makefile b/drivers/soc/mediatek/Makefile 
    37 index 3b22baa..822986d 100644 
    3834--- a/drivers/soc/mediatek/Makefile 
    3935+++ b/drivers/soc/mediatek/Makefile 
    40 @@ -2,3 +2,4 @@ obj-$(CONFIG_MTK_INFRACFG) += mtk-infracfg.o 
     36@@ -2,3 +2,4 @@ obj-$(CONFIG_MTK_INFRACFG) += mtk-infrac 
    4137 obj-$(CONFIG_MTK_PMIC_WRAP) += mtk-pmic-wrap.o 
    4238 obj-$(CONFIG_MTK_SCPSYS) += mtk-scpsys.o 
    4339 obj-$(CONFIG_MTK_SCPSYS_MT8173) += mtk-scpsys-mt8173.o 
    4440+obj-$(CONFIG_MTK_SCPSYS_MT2701) += mtk-scpsys-mt2701.o 
    45 diff --git a/drivers/soc/mediatek/mtk-scpsys-mt2701.c b/drivers/soc/mediatek/mtk-scpsys-mt2701.c 
    46 new file mode 100644 
    47 index 0000000..339d5b8 
    4841--- /dev/null 
    4942+++ b/drivers/soc/mediatek/mtk-scpsys-mt2701.c 
     
    210203+MODULE_DESCRIPTION("MediaTek MT2701 scpsys driver"); 
    211204+MODULE_LICENSE("GPL v2"); 
    212 --  
    213 1.7.10.4 
    214  
  • trunk/target/linux/mediatek/patches-4.4/0006-clk-mediatek-Refine-the-makefile-to-support-multiple.patch

    r49132 r49176  
    1717 create mode 100644 drivers/clk/mediatek/Kconfig 
    1818 
    19 diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig 
    20 index c3e3a02..b7a37dc 100644 
    2119--- a/drivers/clk/Kconfig 
    2220+++ b/drivers/clk/Kconfig 
     
    2624 source "drivers/clk/tegra/Kconfig" 
    2725+source "drivers/clk/mediatek/Kconfig" 
    28 diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig 
    29 new file mode 100644 
    30 index 0000000..dc224e6 
    3126--- /dev/null 
    3227+++ b/drivers/clk/mediatek/Kconfig 
     
    5550+       ---help--- 
    5651+         This driver supports Mediatek MT8173 clocks. 
    57 diff --git a/drivers/clk/mediatek/Makefile b/drivers/clk/mediatek/Makefile 
    58 index 95fdfac..32e7222 100644 
    5952--- a/drivers/clk/mediatek/Makefile 
    6053+++ b/drivers/clk/mediatek/Makefile 
     
    6760+obj-$(CONFIG_COMMON_CLK_MT8135) += clk-mt8135.o 
    6861+obj-$(CONFIG_COMMON_CLK_MT8173) += clk-mt8173.o 
    69 --  
    70 1.7.10.4 
    71  
  • trunk/target/linux/mediatek/patches-4.4/0007-dt-bindings-ARM-Mediatek-Document-bindings-for-MT270.patch

    r49132 r49176  
    2626 create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt 
    2727 
    28 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt 
    29 index 936166f..a701e19 100644 
    3028--- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt 
    3129+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt 
    32 @@ -6,6 +6,7 @@ The Mediatek apmixedsys controller provides the PLLs to the system. 
     30@@ -6,6 +6,7 @@ The Mediatek apmixedsys controller provi 
    3331 Required Properties: 
    3432  
     
    3836        - "mediatek,mt8173-apmixedsys" 
    3937 - #clock-cells: Must be 1 
    40 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,bdpsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,bdpsys.txt 
    41 new file mode 100644 
    42 index 0000000..4137196 
    4338--- /dev/null 
    4439+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,bdpsys.txt 
     
    6661+       #clock-cells = <1>; 
    6762+}; 
    68 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.txt 
    69 new file mode 100644 
    70 index 0000000..768f3a5 
    7163--- /dev/null 
    7264+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,ethsys.txt 
     
    9486+       #clock-cells = <1>; 
    9587+}; 
    96 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt 
    97 new file mode 100644 
    98 index 0000000..b7a39b6 
    9988--- /dev/null 
    10089+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt 
     
    122111+       #clock-cells = <1>; 
    123112+}; 
    124 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,imgsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,imgsys.txt 
    125 index b1f2ce1..9bda7f7 100644 
    126113--- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,imgsys.txt 
    127114+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,imgsys.txt 
    128 @@ -6,6 +6,7 @@ The Mediatek imgsys controller provides various clocks to the system. 
     115@@ -6,6 +6,7 @@ The Mediatek imgsys controller provides 
    129116 Required Properties: 
    130117  
     
    134121 - #clock-cells: Must be 1 
    135122  
    136 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt 
    137 index f6cd3e4..2f11a69 100644 
    138123--- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt 
    139124+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt 
     
    146131        - "mediatek,mt8173-infracfg", "syscon" 
    147132 - #clock-cells: Must be 1 
    148 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt 
    149 index 4385946..c9d9d43 100644 
    150133--- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt 
    151134+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt 
    152 @@ -6,6 +6,7 @@ The Mediatek mmsys controller provides various clocks to the system. 
     135@@ -6,6 +6,7 @@ The Mediatek mmsys controller provides v 
    153136 Required Properties: 
    154137  
     
    158141 - #clock-cells: Must be 1 
    159142  
    160 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt 
    161 index f25b854..d3454cd 100644 
    162143--- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt 
    163144+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt 
     
    170151        - "mediatek,mt8173-pericfg", "syscon" 
    171152 - #clock-cells: Must be 1 
    172 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt 
    173 index f9e9179..602e5bc 100644 
    174153--- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt 
    175154+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt 
    176 @@ -6,6 +6,7 @@ The Mediatek topckgen controller provides various clocks to the system. 
     155@@ -6,6 +6,7 @@ The Mediatek topckgen controller provide 
    177156 Required Properties: 
    178157  
     
    182161        - "mediatek,mt8173-topckgen" 
    183162 - #clock-cells: Must be 1 
    184 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,vdecsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,vdecsys.txt 
    185 index 1faacf1..f5b1e7d 100644 
    186163--- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,vdecsys.txt 
    187164+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,vdecsys.txt 
    188 @@ -6,6 +6,7 @@ The Mediatek vdecsys controller provides various clocks to the system. 
     165@@ -6,6 +6,7 @@ The Mediatek vdecsys controller provides 
    189166 Required Properties: 
    190167  
     
    194171 - #clock-cells: Must be 1 
    195172  
    196 --  
    197 1.7.10.4 
    198  
  • trunk/target/linux/mediatek/patches-4.4/0008-clk-mediatek-Add-dt-bindings-for-MT2701-clocks.patch

    r49132 r49176  
    1414 create mode 100644 include/dt-bindings/clock/mt2701-clk.h 
    1515 
    16 diff --git a/include/dt-bindings/clock/mt2701-clk.h b/include/dt-bindings/clock/mt2701-clk.h 
    17 new file mode 100644 
    18 index 0000000..50972d1 
    1916--- /dev/null 
    2017+++ b/include/dt-bindings/clock/mt2701-clk.h 
     
    501498+ 
    502499+#endif /* _DT_BINDINGS_CLK_MT2701_H */ 
    503 --  
    504 1.7.10.4 
    505  
  • trunk/target/linux/mediatek/patches-4.4/0009-clk-mediatek-Add-MT2701-clock-support.patch

    r49132 r49176  
    2020 create mode 100644 drivers/clk/mediatek/clk-mt2701.c 
    2121 
    22 diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig 
    23 index dc224e6..6c7cdc0 100644 
    2422--- a/drivers/clk/mediatek/Kconfig 
    2523+++ b/drivers/clk/mediatek/Kconfig 
     
    3937        bool "Clock driver for Mediatek MT8135" 
    4038        depends on COMMON_CLK 
    41 diff --git a/drivers/clk/mediatek/Makefile b/drivers/clk/mediatek/Makefile 
    42 index 32e7222..5b2b91b 100644 
    4339--- a/drivers/clk/mediatek/Makefile 
    4440+++ b/drivers/clk/mediatek/Makefile 
     
    4945 obj-$(CONFIG_COMMON_CLK_MT8135) += clk-mt8135.o 
    5046 obj-$(CONFIG_COMMON_CLK_MT8173) += clk-mt8173.o 
    51 diff --git a/drivers/clk/mediatek/clk-gate.c b/drivers/clk/mediatek/clk-gate.c 
    52 index 576bdb7..38badb4 100644 
    5347--- a/drivers/clk/mediatek/clk-gate.c 
    5448+++ b/drivers/clk/mediatek/clk-gate.c 
    55 @@ -61,6 +61,26 @@ static void mtk_cg_clr_bit(struct clk_hw *hw) 
     49@@ -61,6 +61,26 @@ static void mtk_cg_clr_bit(struct clk_hw 
    5650        regmap_write(cg->regmap, cg->clr_ofs, BIT(cg->bit)); 
    5751 } 
     
    8074 { 
    8175        mtk_cg_clr_bit(hw); 
    82 @@ -85,6 +105,30 @@ static void mtk_cg_disable_inv(struct clk_hw *hw) 
     76@@ -85,6 +105,30 @@ static void mtk_cg_disable_inv(struct cl 
    8377        mtk_cg_clr_bit(hw); 
    8478 } 
     
    111105        .is_enabled     = mtk_cg_bit_is_cleared, 
    112106        .enable         = mtk_cg_enable, 
    113 @@ -97,6 +141,18 @@ const struct clk_ops mtk_clk_gate_ops_setclr_inv = { 
     107@@ -97,6 +141,18 @@ const struct clk_ops mtk_clk_gate_ops_se 
    114108        .disable        = mtk_cg_disable_inv, 
    115109 }; 
     
    130124                const char *name, 
    131125                const char *parent_name, 
    132 diff --git a/drivers/clk/mediatek/clk-gate.h b/drivers/clk/mediatek/clk-gate.h 
    133 index 11e25c9..7f7ef34 100644 
    134126--- a/drivers/clk/mediatek/clk-gate.h 
    135127+++ b/drivers/clk/mediatek/clk-gate.h 
    136 @@ -36,6 +36,8 @@ static inline struct mtk_clk_gate *to_clk_gate(struct clk_hw *hw) 
     128@@ -36,6 +36,8 @@ static inline struct mtk_clk_gate *to_cl 
    137129  
    138130 extern const struct clk_ops mtk_clk_gate_ops_setclr; 
     
    143135 struct clk *mtk_clk_register_gate( 
    144136                const char *name, 
    145 diff --git a/drivers/clk/mediatek/clk-mt2701.c b/drivers/clk/mediatek/clk-mt2701.c 
    146 new file mode 100644 
    147 index 0000000..2f521f4 
    148137--- /dev/null 
    149138+++ b/drivers/clk/mediatek/clk-mt2701.c 
     
    13591348+CLK_OF_DECLARE(mtk_apmixedsys, "mediatek,mt2701-apmixedsys", 
    13601349+                                                       mtk_apmixedsys_init); 
    1361 diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c 
    1362 index cf08db6..be19a41 100644 
    13631350--- a/drivers/clk/mediatek/clk-mtk.c 
    13641351+++ b/drivers/clk/mediatek/clk-mtk.c 
    1365 @@ -242,3 +242,28 @@ void __init mtk_clk_register_composites(const struct mtk_composite *mcs, 
     1352@@ -242,3 +242,28 @@ void __init mtk_clk_register_composites( 
    13661353                        clk_data->clks[mc->id] = clk; 
    13671354        } 
     
    13921379+       } 
    13931380+} 
    1394 diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mtk.h 
    1395 index 32d2e45..60701e8 100644 
    13961381--- a/drivers/clk/mediatek/clk-mtk.h 
    13971382+++ b/drivers/clk/mediatek/clk-mtk.h 
     
    14451430 struct clk_onecell_data *mtk_alloc_clk_data(unsigned int clk_num); 
    14461431  
    1447 --  
    1448 1.7.10.4 
    1449  
  • trunk/target/linux/mediatek/patches-4.4/0010-reset-mediatek-mt2701-reset-controller-dt-binding-fi.patch

    r49132 r49176  
    1515 create mode 100644 include/dt-bindings/reset-controller/mt2701-resets.h 
    1616 
    17 diff --git a/include/dt-bindings/reset-controller/mt2701-resets.h b/include/dt-bindings/reset-controller/mt2701-resets.h 
    18 new file mode 100644 
    19 index 0000000..00efeb0 
    2017--- /dev/null 
    2118+++ b/include/dt-bindings/reset-controller/mt2701-resets.h 
     
    9592+ 
    9693+#endif  /* _DT_BINDINGS_RESET_CONTROLLER_MT2701 */ 
    97 --  
    98 1.7.10.4 
    99  
  • trunk/target/linux/mediatek/patches-4.4/0011-reset-mediatek-mt2701-reset-driver.patch

    r49132 r49176  
    1515 1 file changed, 4 insertions(+) 
    1616 
    17 diff --git a/drivers/clk/mediatek/clk-mt2701.c b/drivers/clk/mediatek/clk-mt2701.c 
    18 index 2f521f4..39472e4 100644 
    1917--- a/drivers/clk/mediatek/clk-mt2701.c 
    2018+++ b/drivers/clk/mediatek/clk-mt2701.c 
    21 @@ -665,6 +665,8 @@ static void __init mtk_infrasys_init(struct device_node *node) 
     19@@ -665,6 +665,8 @@ static void __init mtk_infrasys_init(str 
    2220        if (r) 
    2321                pr_err("%s(): could not register clock provider: %d\n", 
     
    2826 CLK_OF_DECLARE(mtk_infrasys, "mediatek,mt2701-infracfg", mtk_infrasys_init); 
    2927  
    30 @@ -782,6 +784,8 @@ static void __init mtk_pericfg_init(struct device_node *node) 
     28@@ -782,6 +784,8 @@ static void __init mtk_pericfg_init(stru 
    3129        if (r) 
    3230                pr_err("%s(): could not register clock provider: %d\n", 
     
    3735 CLK_OF_DECLARE(mtk_pericfg, "mediatek,mt2701-pericfg", mtk_pericfg_init); 
    3836  
    39 --  
    40 1.7.10.4 
    41  
  • trunk/target/linux/mediatek/patches-4.4/0012-ARM-mediatek-Add-MT2701-config-options-for-mediatek-.patch

    r49132 r49176  
    1515 1 file changed, 4 insertions(+) 
    1616 
    17 diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig 
    18 index aeece17..37dd438 100644 
    1917--- a/arch/arm/mach-mediatek/Kconfig 
    2018+++ b/arch/arm/mach-mediatek/Kconfig 
     
    3028        bool "MediaTek MT6589 SoCs support" 
    3129        default ARCH_MEDIATEK 
    32 --  
    33 1.7.10.4 
    34  
  • trunk/target/linux/mediatek/patches-4.4/0013-dt-bindings-mediatek-Modify-pinctrl-bindings-for-mt2.patch

    r49132 r49176  
    1212 1 file changed, 5 insertions(+), 4 deletions(-) 
    1313 
    14 diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt 
    15 index 0480bc3..9ffb0b2 100644 
    1614--- a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt 
    1715+++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt 
    18 @@ -4,10 +4,11 @@ The Mediatek's Pin controller is used to control SoC pins. 
     16@@ -4,10 +4,11 @@ The Mediatek's Pin controller is used to 
    1917  
    2018 Required properties: 
     
    3230   specify pins. 
    3331 - gpio-controller : Marks the device node as a gpio controller. 
    34 --  
    35 1.7.10.4 
    36  
  • trunk/target/linux/mediatek/patches-4.4/0014-pinctrl-dt-bindings-Add-pinfunc-header-file-for-mt27.patch

    r49132 r49176  
    2222 create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt2701.h 
    2323 
    24 diff --git a/arch/arm/boot/dts/mt2701-pinfunc.h b/arch/arm/boot/dts/mt2701-pinfunc.h 
    25 new file mode 100644 
    26 index 0000000..e24ebc8 
    2724--- /dev/null 
    2825+++ b/arch/arm/boot/dts/mt2701-pinfunc.h 
     
    763760+ 
    764761+#endif /* __DTS_MT2701_PINFUNC_H */ 
    765 diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig 
    766 index 02f6f92..13e9939 100644 
    767762--- a/drivers/pinctrl/mediatek/Kconfig 
    768763+++ b/drivers/pinctrl/mediatek/Kconfig 
     
    780775        bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135 
    781776        depends on OF 
    782 diff --git a/drivers/pinctrl/mediatek/Makefile b/drivers/pinctrl/mediatek/Makefile 
    783 index eb923d6..da30314 100644 
    784777--- a/drivers/pinctrl/mediatek/Makefile 
    785778+++ b/drivers/pinctrl/mediatek/Makefile 
     
    792785 obj-$(CONFIG_PINCTRL_MT8127)           += pinctrl-mt8127.o 
    793786 obj-$(CONFIG_PINCTRL_MT8173)           += pinctrl-mt8173.o 
    794 diff --git a/drivers/pinctrl/mediatek/pinctrl-mt2701.c b/drivers/pinctrl/mediatek/pinctrl-mt2701.c 
    795 new file mode 100644 
    796 index 0000000..4861b5d 
    797787--- /dev/null 
    798788+++ b/drivers/pinctrl/mediatek/pinctrl-mt2701.c 
     
    13841374+ 
    13851375+arch_initcall(mtk_pinctrl_init); 
    1386 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c 
    1387 index 5c71727..05ba7a8 100644 
    13881376--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c 
    13891377+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c 
     
    13971385  
    13981386 /* 
    1399 @@ -81,6 +83,9 @@ static int mtk_pmx_gpio_set_direction(struct pinctrl_dev *pctldev, 
     1387@@ -81,6 +83,9 @@ static int mtk_pmx_gpio_set_direction(st 
    14001388        reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; 
    14011389        bit = BIT(offset & 0xf); 
     
    14071395                /* Different SoC has different alignment offset. */ 
    14081396                reg_addr = CLR_ADDR(reg_addr, pctl); 
    1409 @@ -347,6 +352,7 @@ static int mtk_pconf_parse_conf(struct pinctrl_dev *pctldev, 
     1397@@ -347,6 +352,7 @@ static int mtk_pconf_parse_conf(struct p 
    14101398                ret = mtk_pconf_set_pull_select(pctl, pin, true, false, arg); 
    14111399                break; 
     
    14151403                break; 
    14161404        case PIN_CONFIG_OUTPUT: 
    1417 @@ -354,6 +360,7 @@ static int mtk_pconf_parse_conf(struct pinctrl_dev *pctldev, 
     1405@@ -354,6 +360,7 @@ static int mtk_pconf_parse_conf(struct p 
    14181406                ret = mtk_pmx_gpio_set_direction(pctldev, NULL, pin, false); 
    14191407                break; 
     
    14231411                break; 
    14241412        case PIN_CONFIG_DRIVE_STRENGTH: 
    1425 @@ -667,9 +674,14 @@ static int mtk_pmx_set_mode(struct pinctrl_dev *pctldev, 
     1413@@ -667,9 +674,14 @@ static int mtk_pmx_set_mode(struct pinct 
    14261414        unsigned int mask = (1L << GPIO_MODE_BITS) - 1; 
    14271415        struct mtk_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); 
     
    14381426        mask <<= (GPIO_MODE_BITS * bit); 
    14391427        val = (mode << (GPIO_MODE_BITS * bit)); 
    1440 @@ -746,6 +758,10 @@ static int mtk_gpio_get_direction(struct gpio_chip *chip, unsigned offset) 
     1428@@ -746,6 +758,10 @@ static int mtk_gpio_get_direction(struct 
    14411429  
    14421430        reg_addr =  mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; 
     
    14491437        return !(read_val & bit); 
    14501438 } 
    1451 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
    1452 index 55a5343..8543bc4 100644 
    14531439--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
    14541440+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
     
    14791465        unsigned int ies_offset; 
    14801466        unsigned int smt_offset; 
    1481 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-mt2701.h b/drivers/pinctrl/mediatek/pinctrl-mtk-mt2701.h 
    1482 new file mode 100644 
    1483 index 0000000..f906420 
    14841467--- /dev/null 
    14851468+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt2701.h 
     
    38083791+ 
    38093792+#endif /* __PINCTRL_MTK_MT2701_H */ 
    3810 --  
    3811 1.7.10.4 
    3812  
  • trunk/target/linux/mediatek/patches-4.4/0015-dt-bindings-mediatek-Modify-pinctrl-bindings-for-mt7.patch

    r49132 r49176  
    1212 create mode 100644 include/dt-bindings/pinctrl/mt7623-pinfunc.h 
    1313 
    14 diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt 
    15 index 9ffb0b2..17631d0 100644 
    1614--- a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt 
    1715+++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt 
     
    2422        "mediatek,mt8135-pinctrl", compatible with mt8135 pinctrl. 
    2523        "mediatek,mt8173-pinctrl", compatible with mt8173 pinctrl. 
    26 diff --git a/include/dt-bindings/pinctrl/mt7623-pinfunc.h b/include/dt-bindings/pinctrl/mt7623-pinfunc.h 
    27 new file mode 100644 
    28 index 0000000..891b173 
    2924--- /dev/null 
    3025+++ b/include/dt-bindings/pinctrl/mt7623-pinfunc.h 
     
    551546+#endif /* __DTS_MT7623_PINFUNC_H */ 
    552547+ 
    553 --  
    554 1.7.10.4 
    555  
  • trunk/target/linux/mediatek/patches-4.4/0016-pinctrl-dt-bindings-Add-pinctrl-file-for-mt7623.patch

    r49132 r49176  
    1818 create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h 
    1919 
    20 diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig 
    21 index 13e9939..78654a8 100644 
    2220--- a/drivers/pinctrl/mediatek/Kconfig 
    2321+++ b/drivers/pinctrl/mediatek/Kconfig 
     
    3533        bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135 
    3634        depends on OF 
    37 diff --git a/drivers/pinctrl/mediatek/Makefile b/drivers/pinctrl/mediatek/Makefile 
    38 index da30314..1be2f3f 100644 
    3935--- a/drivers/pinctrl/mediatek/Makefile 
    4036+++ b/drivers/pinctrl/mediatek/Makefile 
    41 @@ -3,6 +3,7 @@ obj-$(CONFIG_PINCTRL_MTK_COMMON)        += pinctrl-mtk-common.o 
     37@@ -3,6 +3,7 @@ obj-$(CONFIG_PINCTRL_MTK_COMMON)        += pinc 
    4238  
    4339 # SoC Drivers 
     
    4743 obj-$(CONFIG_PINCTRL_MT8127)           += pinctrl-mt8127.o 
    4844 obj-$(CONFIG_PINCTRL_MT8173)           += pinctrl-mt8173.o 
    49 diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7623.c b/drivers/pinctrl/mediatek/pinctrl-mt7623.c 
    50 new file mode 100644 
    51 index 0000000..bf0d05b 
    5245--- /dev/null 
    5346+++ b/drivers/pinctrl/mediatek/pinctrl-mt7623.c 
     
    433426+ 
    434427+arch_initcall(mtk_pinctrl_init); 
    435 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h b/drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h 
    436 new file mode 100644 
    437 index 0000000..fb63c01 
    438428--- /dev/null 
    439429+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h 
     
    23762366+ 
    23772367+#endif /* __PINCTRL_MTK_MT7623_H */ 
    2378 diff --git a/include/dt-bindings/pinctrl/mt7623-pinfunc.h b/include/dt-bindings/pinctrl/mt7623-pinfunc.h 
    2379 index 891b173..eeb2380 100644 
    23802368--- a/include/dt-bindings/pinctrl/mt7623-pinfunc.h 
    23812369+++ b/include/dt-bindings/pinctrl/mt7623-pinfunc.h 
     
    23902378 #define MT7623_PIN_274_G2_RXDV_FUNC_G2_RXDV (MTK_PIN_NO(274) | 1) 
    23912379  
    2392 --  
    2393 1.7.10.4 
    2394  
  • trunk/target/linux/mediatek/patches-4.4/0017-clk-add-hifsys-reset.patch

    r49132 r49176  
    1919 2 files changed, 11 insertions(+) 
    2020 
    21 diff --git a/drivers/clk/mediatek/clk-mt2701.c b/drivers/clk/mediatek/clk-mt2701.c 
    22 index 39472e4..0e40bb8 100644 
    2321--- a/drivers/clk/mediatek/clk-mt2701.c 
    2422+++ b/drivers/clk/mediatek/clk-mt2701.c 
    25 @@ -1000,6 +1000,8 @@ static void __init mtk_hifsys_init(struct device_node *node) 
     23@@ -1000,6 +1000,8 @@ static void __init mtk_hifsys_init(struc 
    2624        if (r) 
    2725                pr_err("%s(): could not register clock provider: %d\n", 
     
    3230 CLK_OF_DECLARE(mtk_hifsys, "mediatek,mt2701-hifsys", mtk_hifsys_init); 
    3331  
    34 diff --git a/include/dt-bindings/reset-controller/mt2701-resets.h b/include/dt-bindings/reset-controller/mt2701-resets.h 
    35 index 00efeb0..aaf0305 100644 
    3632--- a/include/dt-bindings/reset-controller/mt2701-resets.h 
    3733+++ b/include/dt-bindings/reset-controller/mt2701-resets.h 
     
    5046+ 
    5147 #endif  /* _DT_BINDINGS_RESET_CONTROLLER_MT2701 */ 
    52 --  
    53 1.7.10.4 
    54  
  • trunk/target/linux/mediatek/patches-4.4/0018-dt-bindings-Add-a-binding-for-Mediatek-xHCI-host-con.patch

    r49132 r49176  
    1414 create mode 100644 Documentation/devicetree/bindings/usb/mt8173-xhci.txt 
    1515 
    16 diff --git a/Documentation/devicetree/bindings/usb/mt8173-xhci.txt b/Documentation/devicetree/bindings/usb/mt8173-xhci.txt 
    17 new file mode 100644 
    18 index 0000000..a78f20b 
    1916--- /dev/null 
    2017+++ b/Documentation/devicetree/bindings/usb/mt8173-xhci.txt 
     
    7168+       mediatek,wakeup-src = <1>; 
    7269+}; 
    73 --  
    74 1.7.10.4 
    75  
  • trunk/target/linux/mediatek/patches-4.4/0019-xhci-mediatek-support-MTK-xHCI-host-controller.patch

    r49132 r49176  
    3232 create mode 100644 drivers/usb/host/xhci-mtk.h 
    3333 
    34 diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig 
    35 index 3bb0887..daa563f 100644 
    3634--- a/drivers/usb/host/Kconfig 
    3735+++ b/drivers/usb/host/Kconfig 
     
    5250        tristate "xHCI support for Marvell Armada 375/38x" 
    5351        select USB_XHCI_PLATFORM 
    54 diff --git a/drivers/usb/host/Makefile b/drivers/usb/host/Makefile 
    55 index e7558ab..65a06b4 100644 
    5652--- a/drivers/usb/host/Makefile 
    5753+++ b/drivers/usb/host/Makefile 
     
    7470 obj-$(CONFIG_USB_SL811_CS)     += sl811_cs.o 
    7571 obj-$(CONFIG_USB_U132_HCD)     += u132-hcd.o 
    76 diff --git a/drivers/usb/host/xhci-mtk-sch.c b/drivers/usb/host/xhci-mtk-sch.c 
    77 new file mode 100644 
    78 index 0000000..c30de7c 
    7972--- /dev/null 
    8073+++ b/drivers/usb/host/xhci-mtk-sch.c 
     
    495488+} 
    496489+EXPORT_SYMBOL_GPL(xhci_mtk_drop_ep_quirk); 
    497 diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c 
    498 new file mode 100644 
    499 index 0000000..c9ab6a4 
    500490--- /dev/null 
    501491+++ b/drivers/usb/host/xhci-mtk.c 
     
    12641254+MODULE_DESCRIPTION("MediaTek xHCI Host Controller Driver"); 
    12651255+MODULE_LICENSE("GPL v2"); 
    1266 diff --git a/drivers/usb/host/xhci-mtk.h b/drivers/usb/host/xhci-mtk.h 
    1267 new file mode 100644 
    1268 index 0000000..7da677c 
    12691256--- /dev/null 
    12701257+++ b/drivers/usb/host/xhci-mtk.h 
     
    14321419+ 
    14331420+#endif         /* _XHCI_MTK_H_ */ 
    1434 diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c 
    1435 index eeaa6c6..f1c21c4 100644 
    14361421--- a/drivers/usb/host/xhci-ring.c 
    14371422+++ b/drivers/usb/host/xhci-ring.c 
     
    14441429 /* 
    14451430  * Returns zero if the TRB isn't in this segment, otherwise it returns the DMA 
    1446 @@ -3075,17 +3076,22 @@ static u32 xhci_td_remainder(struct xhci_hcd *xhci, int transferred, 
     1431@@ -3065,17 +3066,22 @@ static u32 xhci_td_remainder(struct xhci 
    14471432 { 
    14481433        u32 maxp, total_packet_count; 
     
    14711456        return (total_packet_count - ((transferred + trb_buff_len) / maxp)); 
    14721457 } 
    1473 @@ -3473,7 +3479,7 @@ int xhci_queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, 
     1458@@ -3463,7 +3469,7 @@ int xhci_queue_ctrl_tx(struct xhci_hcd * 
    14741459                field |= 0x1; 
    14751460  
     
    14801465                        if (setup->bRequestType & USB_DIR_IN) 
    14811466                                field |= TRB_TX_TYPE(TRB_DATA_IN); 
    1482 diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c 
    1483 index 3f91270..15fedb2 100644 
    14841467--- a/drivers/usb/host/xhci.c 
    14851468+++ b/drivers/usb/host/xhci.c 
     
    15051488  
    15061489        /* Set the HCD state before we enable the irqs */ 
    1507 @@ -1698,6 +1703,9 @@ int xhci_drop_endpoint(struct usb_hcd *hcd, struct usb_device *udev, 
     1490@@ -1700,6 +1705,9 @@ int xhci_drop_endpoint(struct usb_hcd *h 
    15081491  
    15091492        xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep); 
     
    15151498                        (unsigned int) ep->desc.bEndpointAddress, 
    15161499                        udev->slot_id, 
    1517 @@ -1793,6 +1801,15 @@ int xhci_add_endpoint(struct usb_hcd *hcd, struct usb_device *udev, 
     1500@@ -1795,6 +1803,15 @@ int xhci_add_endpoint(struct usb_hcd *hc 
    15181501                return -ENOMEM; 
    15191502        } 
     
    15311514        new_add_flags = le32_to_cpu(ctrl_ctx->add_flags); 
    15321515  
    1533 diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h 
    1534 index 0b94512..40cf36e 100644 
    15351516--- a/drivers/usb/host/xhci.h 
    15361517+++ b/drivers/usb/host/xhci.h 
     
    15431524        unsigned int            limit_active_eps; 
    15441525        /* There are two roothubs to keep track of bus suspend info for */ 
    1545 --  
    1546 1.7.10.4 
    1547  
  • trunk/target/linux/mediatek/patches-4.4/0020-arm64-dts-mediatek-add-xHCI-usb-phy-for-mt8173.patch

    r49132 r49176  
    1212 2 files changed, 58 insertions(+) 
    1313 
    14 diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts 
    15 index 811cb76..9b1482a 100644 
    1614--- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts 
    1715+++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts 
     
    5048+       mediatek,wakeup-src = <1>; 
    5149+}; 
    52 diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi 
    53 index 4dd5f93..c1fd275 100644 
    5450--- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi 
    5551+++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi 
     
    110106                        compatible = "mediatek,mt8173-mmsys", "syscon"; 
    111107                        reg = <0 0x14000000 0 0x1000>; 
    112 --  
    113 1.7.10.4 
    114  
  • trunk/target/linux/mediatek/patches-4.4/0021-Document-DT-Add-bindings-for-mediatek-MT7623-SoC-Pla.patch

    r49132 r49176  
    1414 3 files changed, 6 insertions(+) 
    1515 
    16 diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt b/Documentation/devicetree/bindings/arm/mediatek.txt 
    17 index 618a9199..40e9d32 100644 
    1816--- a/Documentation/devicetree/bindings/arm/mediatek.txt 
    1917+++ b/Documentation/devicetree/bindings/arm/mediatek.txt 
     
    3634     Required root node properties: 
    3735       - compatible = "mediatek,mt8127-moose", "mediatek,mt8127"; 
    38 diff --git a/Documentation/devicetree/bindings/serial/mtk-uart.txt b/Documentation/devicetree/bindings/serial/mtk-uart.txt 
    39 index 2d47add..474f0cf 100644 
    4036--- a/Documentation/devicetree/bindings/serial/mtk-uart.txt 
    4137+++ b/Documentation/devicetree/bindings/serial/mtk-uart.txt 
     
    4844   * "mediatek,mt8127-uart" for MT8127 compatible UARTS 
    4945   * "mediatek,mt8173-uart" for MT8173 compatible UARTS 
    50 diff --git a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt b/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt 
    51 index 64083bc..6bacda1b3 100644 
    5246--- a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt 
    5347+++ b/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt 
     
    6054        * "mediatek,mt8135-timer" for MT8135 compatible timers 
    6155        * "mediatek,mt8173-timer" for MT8173 compatible timers 
    62 --  
    63 1.7.10.4 
    64  
  • trunk/target/linux/mediatek/patches-4.4/0022-soc-mediatek-add-compat-string-for-mt7623-to-scpsys.patch

    r49132 r49176  
    99 1 file changed, 2 insertions(+) 
    1010 
    11 diff --git a/drivers/soc/mediatek/mtk-scpsys-mt2701.c b/drivers/soc/mediatek/mtk-scpsys-mt2701.c 
    12 index 339d5b8..3a31946 100644 
    1311--- a/drivers/soc/mediatek/mtk-scpsys-mt2701.c 
    1412+++ b/drivers/soc/mediatek/mtk-scpsys-mt2701.c 
    15 @@ -136,6 +136,8 @@ static const struct of_device_id of_scpsys_match_tbl[] = { 
     13@@ -136,6 +136,8 @@ static const struct of_device_id of_scps 
    1614        { 
    1715                .compatible = "mediatek,mt2701-scpsys", 
     
    2220        } 
    2321 }; 
    24 --  
    25 1.7.10.4 
    26  
  • trunk/target/linux/mediatek/patches-4.4/0023-ARM-dts-mediatek-add-MT7623-basic-support.patch

    r49132 r49176  
    1717 create mode 100644 arch/arm/boot/dts/mt7623.dtsi 
    1818 
    19 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile 
    20 index 30bbc37..2bce370 100644 
    2119--- a/arch/arm/boot/dts/Makefile 
    2220+++ b/arch/arm/boot/dts/Makefile 
     
    2927        mt8135-evbp1.dtb 
    3028 dtb-$(CONFIG_ARCH_ZX) += zx296702-ad1.dtb 
    31 diff --git a/arch/arm/boot/dts/mt7623-evb.dts b/arch/arm/boot/dts/mt7623-evb.dts 
    32 new file mode 100644 
    33 index 0000000..5e9381d 
    3429--- /dev/null 
    3530+++ b/arch/arm/boot/dts/mt7623-evb.dts 
     
    494489+       status = "okay"; 
    495490+}; 
    496 diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi 
    497 new file mode 100644 
    498 index 0000000..c53c10d 
    499491--- /dev/null 
    500492+++ b/arch/arm/boot/dts/mt7623.dtsi 
     
    10101002+       }; 
    10111003+}; 
    1012 diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig 
    1013 index 37dd438..7fb605e 100644 
    10141004--- a/arch/arm/mach-mediatek/Kconfig 
    10151005+++ b/arch/arm/mach-mediatek/Kconfig 
     
    10251015        bool "MediaTek MT8127 SoCs support" 
    10261016        default ARCH_MEDIATEK 
    1027 diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c 
    1028 index d019a08..bcfca37 100644 
    10291017--- a/arch/arm/mach-mediatek/mediatek.c 
    10301018+++ b/arch/arm/mach-mediatek/mediatek.c 
    1031 @@ -46,6 +46,7 @@ static void __init mediatek_timer_init(void) 
     1019@@ -46,6 +46,7 @@ static void __init mediatek_timer_init(v 
    10321020 static const char * const mediatek_board_dt_compat[] = { 
    10331021        "mediatek,mt6589", 
     
    10371025        "mediatek,mt8135", 
    10381026        NULL, 
    1039 --  
    1040 1.7.10.4 
    1041  
  • trunk/target/linux/mediatek/patches-4.4/0024-dt-bindings-add-MediaTek-PCIe-binding-documentation.patch

    r49132 r49176  
    1111 create mode 100644 Documentation/devicetree/bindings/pci/mediatek-pcie.txt 
    1212 
    13 diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie.txt b/Documentation/devicetree/bindings/pci/mediatek-pcie.txt 
    14 new file mode 100644 
    15 index 0000000..8fea3ed 
    1613--- /dev/null 
    1714+++ b/Documentation/devicetree/bindings/pci/mediatek-pcie.txt 
     
    157154+               }; 
    158155+       }; 
    159 diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi 
    160 index c53c10d..c8c802d 100644 
    161156--- a/arch/arm/boot/dts/mt7623.dtsi 
    162157+++ b/arch/arm/boot/dts/mt7623.dtsi 
     
    180175                compatible = "mediatek,mt7623-mmc", 
    181176                             "mediatek,mt8135-mmc"; 
    182 --  
    183 1.7.10.4 
    184  
  • trunk/target/linux/mediatek/patches-4.4/0025-PCI-mediatek-add-support-for-PCIe-found-on-MT7623-MT.patch

    r49132 r49176  
    1818 create mode 100644 drivers/pci/host/pcie-mediatek.c 
    1919 
    20 diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig 
    21 index 7fb605e..a7fef77 100644 
    2220--- a/arch/arm/mach-mediatek/Kconfig 
    2321+++ b/arch/arm/mach-mediatek/Kconfig 
     
    3028 config MACH_MT8127 
    3129        bool "MediaTek MT8127 SoCs support" 
    32 diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig 
    33 index f131ba9..912f0e1 100644 
    3430--- a/drivers/pci/host/Kconfig 
    3531+++ b/drivers/pci/host/Kconfig 
    36 @@ -172,4 +172,15 @@ config PCI_HISI 
     32@@ -173,4 +173,15 @@ config PCI_HISI 
    3733        help 
    3834          Say Y here if you want PCIe controller support on HiSilicon HIP05 SoC 
     
    5046+ 
    5147 endmenu 
    52 diff --git a/drivers/pci/host/Makefile b/drivers/pci/host/Makefile 
    53 index 9d4d3c6..3b53374 100644 
    5448--- a/drivers/pci/host/Makefile 
    5549+++ b/drivers/pci/host/Makefile 
    56 @@ -20,3 +20,4 @@ obj-$(CONFIG_PCIE_IPROC_BCMA) += pcie-iproc-bcma.o 
     50@@ -20,3 +20,4 @@ obj-$(CONFIG_PCIE_IPROC_BCMA) += pcie-ip 
    5751 obj-$(CONFIG_PCIE_ALTERA) += pcie-altera.o 
    5852 obj-$(CONFIG_PCIE_ALTERA_MSI) += pcie-altera-msi.o 
    5953 obj-$(CONFIG_PCI_HISI) += pcie-hisi.o 
    6054+obj-$(CONFIG_PCIE_MTK) += pcie-mediatek.o 
    61 diff --git a/drivers/pci/host/pcie-mediatek.c b/drivers/pci/host/pcie-mediatek.c 
    62 new file mode 100644 
    63 index 0000000..ef03952 
    6455--- /dev/null 
    6556+++ b/drivers/pci/host/pcie-mediatek.c 
     
    706697+ 
    707698+module_init(mtk_pcie_init); 
    708 --  
    709 1.7.10.4 
    710  
  • trunk/target/linux/mediatek/patches-4.4/0026-scpsys-various-fixes.patch

    r49132 r49176  
    1010 3 files changed, 4 insertions(+), 10 deletions(-) 
    1111 
    12 diff --git a/drivers/clk/mediatek/clk-mt2701.c b/drivers/clk/mediatek/clk-mt2701.c 
    13 index 0e40bb8..812b347 100644 
    1412--- a/drivers/clk/mediatek/clk-mt2701.c 
    1513+++ b/drivers/clk/mediatek/clk-mt2701.c 
    16 @@ -1043,6 +1043,8 @@ static void __init mtk_ethsys_init(struct device_node *node) 
     14@@ -1043,6 +1043,8 @@ static void __init mtk_ethsys_init(struc 
    1715        if (r) 
    1816                pr_err("%s(): could not register clock provider: %d\n", 
     
    2321 CLK_OF_DECLARE(mtk_ethsys, "mediatek,mt2701-ethsys", mtk_ethsys_init); 
    2422  
    25 diff --git a/drivers/soc/mediatek/mtk-scpsys-mt2701.c b/drivers/soc/mediatek/mtk-scpsys-mt2701.c 
    26 index 3a31946..19489bc 100644 
    2723--- a/drivers/soc/mediatek/mtk-scpsys-mt2701.c 
    2824+++ b/drivers/soc/mediatek/mtk-scpsys-mt2701.c 
    29 @@ -61,14 +61,6 @@ static const struct scp_domain_data scp_domain_data[] = { 
     25@@ -61,14 +61,6 @@ static const struct scp_domain_data scp_ 
    3026                .bus_prot_mask = MT2701_TOP_AXI_PROT_EN_DISP, 
    3127                .active_wakeup = true, 
     
    4238                .name = "vdec", 
    4339                .sta_mask = VDE_PWR_STA_MASK, 
    44 diff --git a/include/dt-bindings/power/mt2701-power.h b/include/dt-bindings/power/mt2701-power.h 
    45 index 64cc826..c168597 100644 
    4640--- a/include/dt-bindings/power/mt2701-power.h 
    4741+++ b/include/dt-bindings/power/mt2701-power.h 
     
    6155  
    6256 #endif /* _DT_BINDINGS_POWER_MT2701_POWER_H */ 
    63 --  
    64 1.7.10.4 
    65  
  • trunk/target/linux/mediatek/patches-4.4/0027-soc-mediatek-PMIC-wrap-Clear-the-vldclr-if-state-mac.patch

    r49132 r49176  
    2121 1 file changed, 20 insertions(+), 2 deletions(-) 
    2222 
    23 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    24 index 105597a..696071b 100644 
    2523--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    2624+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    27 @@ -412,6 +412,20 @@ static bool pwrap_is_fsm_vldclr(struct pmic_wrapper *wrp) 
     25@@ -412,6 +412,20 @@ static bool pwrap_is_fsm_vldclr(struct p 
    2826        return PWRAP_GET_WACS_FSM(val) == PWRAP_WACS_FSM_WFVLDCLR; 
    2927 } 
     
    4644 { 
    4745        return pwrap_readl(wrp, PWRAP_WACS2_RDATA) & PWRAP_STATE_SYNC_IDLE0; 
    48 @@ -445,8 +459,10 @@ static int pwrap_write(struct pmic_wrapper *wrp, u32 adr, u32 wdata) 
     46@@ -445,8 +459,10 @@ static int pwrap_write(struct pmic_wrapp 
    4947        int ret; 
    5048  
     
    5856        pwrap_writel(wrp, (1 << 31) | ((adr >> 1) << 16) | wdata, 
    5957                        PWRAP_WACS2_CMD); 
    60 @@ -459,8 +475,10 @@ static int pwrap_read(struct pmic_wrapper *wrp, u32 adr, u32 *rdata) 
     58@@ -459,8 +475,10 @@ static int pwrap_read(struct pmic_wrappe 
    6159        int ret; 
    6260  
     
    7068        pwrap_writel(wrp, (adr >> 1) << 16, PWRAP_WACS2_CMD); 
    7169  
    72 --  
    73 1.7.10.4 
    74  
  • trunk/target/linux/mediatek/patches-4.4/0028-ARM-mediatek-add-MT7623-smp-bringup-code.patch

    r49132 r49176  
    1212 1 file changed, 7 insertions(+) 
    1313 
    14 diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c 
    15 index 8141f3f..8151400 100644 
    1614--- a/arch/arm/mach-mediatek/platsmp.c 
    1715+++ b/arch/arm/mach-mediatek/platsmp.c 
    18 @@ -44,6 +44,12 @@ static const struct mtk_smp_boot_info mtk_mt6589_boot = { 
     16@@ -44,6 +44,12 @@ static const struct mtk_smp_boot_info mt 
    1917        { 0x38, 0x3c, 0x40 }, 
    2018 }; 
     
    2927        { .compatible   = "mediatek,mt8135", .data = &mtk_mt8135_tz_boot }, 
    3028        { .compatible   = "mediatek,mt8127", .data = &mtk_mt8135_tz_boot }, 
    31 @@ -51,6 +57,7 @@ static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = { 
     29@@ -51,6 +57,7 @@ static const struct of_device_id mtk_tz_ 
    3230  
    3331 static const struct of_device_id mtk_smp_boot_infos[] __initconst = { 
     
    3735  
    3836 static void __iomem *mtk_smp_base; 
    39 --  
    40 1.7.10.4 
    41  
  • trunk/target/linux/mediatek/patches-4.4/0029-soc-mediatek-PMIC-wrap-clear-the-STAUPD_TRIG-bit-of-.patch

    r49132 r49176  
    1515 1 file changed, 17 insertions(+), 2 deletions(-) 
    1616 
    17 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    18 index 696071b..0d9b19a 100644 
    1917--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    2018+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
     
    3533 #define PWRAP_DEW_BASE                 0xbc00 
    3634 #define PWRAP_DEW_EVENT_OUT_EN         (PWRAP_DEW_BASE + 0x0) 
    37 @@ -822,7 +831,7 @@ MODULE_DEVICE_TABLE(of, of_pwrap_match_tbl); 
     35@@ -822,7 +831,7 @@ MODULE_DEVICE_TABLE(of, of_pwrap_match_t 
    3836  
    3937 static int pwrap_probe(struct platform_device *pdev) 
     
    4442        struct device_node *np = pdev->dev.of_node; 
    4543        const struct of_device_id *of_id = 
    46 @@ -912,7 +921,13 @@ static int pwrap_probe(struct platform_device *pdev) 
     44@@ -912,7 +921,13 @@ static int pwrap_probe(struct platform_d 
    4745  
    4846        /* Initialize watchdog, may not be done by the bootloader */ 
     
    5957        pwrap_writel(wrp, ~((1 << 31) | (1 << 1)), PWRAP_INT_EN); 
    6058  
    61 --  
    62 1.7.10.4 
    63  
  • trunk/target/linux/mediatek/patches-4.4/0030-ARM-mediatek-add-mt2701-smp-bringup-code.patch

    r49132 r49176  
    1212 1 file changed, 1 insertion(+) 
    1313 
    14 diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c 
    15 index 8151400..2078f92d5 100644 
    1614--- a/arch/arm/mach-mediatek/platsmp.c 
    1715+++ b/arch/arm/mach-mediatek/platsmp.c 
    18 @@ -53,6 +53,7 @@ static const struct mtk_smp_boot_info mtk_mt7623_boot = { 
     16@@ -53,6 +53,7 @@ static const struct mtk_smp_boot_info mt 
    1917 static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = { 
    2018        { .compatible   = "mediatek,mt8135", .data = &mtk_mt8135_tz_boot }, 
     
    2422  
    2523 static const struct of_device_id mtk_smp_boot_infos[] __initconst = { 
    26 --  
    27 1.7.10.4 
    28  
  • trunk/target/linux/mediatek/patches-4.4/0031-dt-bindings-ARM-Mediatek-add-MT2701-7623-string-to-t.patch

    r49132 r49176  
    1212 1 file changed, 1 insertion(+) 
    1313 
    14 diff --git a/Documentation/devicetree/bindings/soc/mediatek/pwrap.txt b/Documentation/devicetree/bindings/soc/mediatek/pwrap.txt 
    15 index ddeb5b6..107700d 100644 
    1614--- a/Documentation/devicetree/bindings/soc/mediatek/pwrap.txt 
    1715+++ b/Documentation/devicetree/bindings/soc/mediatek/pwrap.txt 
     
    2422        "mediatek,mt8173-pwrap" for MT8173 SoCs 
    2523 - interrupts: IRQ for pwrap in SOC 
    26 --  
    27 1.7.10.4 
    28  
  • trunk/target/linux/mediatek/patches-4.4/0032-soc-mediatek-PMIC-wrap-don-t-duplicate-the-wrapper-d.patch

    r49132 r49176  
    1414 1 file changed, 8 insertions(+), 14 deletions(-) 
    1515 
    16 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    17 index 0d9b19a..340c4b5 100644 
    1816--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    1917+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
     
    5654  
    5755 static bool pwrap_is_fsm_idle(struct pmic_wrapper *wrp) 
    58 @@ -697,7 +695,7 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     56@@ -697,7 +695,7 @@ static int pwrap_init(struct pmic_wrappe 
    5957  
    6058        pwrap_writel(wrp, 1, PWRAP_WRAP_EN); 
     
    6563        pwrap_writel(wrp, 1, PWRAP_WACS2_EN); 
    6664  
    67 @@ -742,7 +740,7 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     65@@ -742,7 +740,7 @@ static int pwrap_init(struct pmic_wrappe 
    6866        pwrap_writel(wrp, 0x1, PWRAP_CRC_EN); 
    6967        pwrap_writel(wrp, 0x0, PWRAP_SIG_MODE); 
     
    7472        if (pwrap_is_mt8135(wrp)) 
    7573                pwrap_writel(wrp, 0x7, PWRAP_RRARB_EN); 
    76 @@ -836,7 +834,6 @@ static int pwrap_probe(struct platform_device *pdev) 
     74@@ -836,7 +834,6 @@ static int pwrap_probe(struct platform_d 
    7775        struct device_node *np = pdev->dev.of_node; 
    7876        const struct of_device_id *of_id = 
     
    8280  
    8381        wrp = devm_kzalloc(&pdev->dev, sizeof(*wrp), GFP_KERNEL); 
    84 @@ -845,10 +842,7 @@ static int pwrap_probe(struct platform_device *pdev) 
     82@@ -845,10 +842,7 @@ static int pwrap_probe(struct platform_d 
    8583  
    8684        platform_set_drvdata(pdev, wrp); 
     
    9492  
    9593        res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pwrap"); 
    96 --  
    97 1.7.10.4 
    98  
  • trunk/target/linux/mediatek/patches-4.4/0033-soc-mediatek-PMIC-wrap-add-wrapper-callbacks-for-ini.patch

    r49132 r49176  
    1313 1 file changed, 38 insertions(+), 32 deletions(-) 
    1414 
    15 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    16 index 340c4b5..b22b664 100644 
    1715--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    1816+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
     
    5654 { 
    5755        return wrp->master->type == PWRAP_MT8135; 
    58 @@ -578,20 +567,23 @@ static int pwrap_init_sidly(struct pmic_wrapper *wrp) 
     56@@ -578,20 +567,23 @@ static int pwrap_init_sidly(struct pmic_ 
    5957        return 0; 
    6058 } 
     
    9391        return 0; 
    9492 } 
    95 @@ -699,7 +691,7 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     93@@ -699,7 +691,7 @@ static int pwrap_init(struct pmic_wrappe 
    9694  
    9795        pwrap_writel(wrp, 1, PWRAP_WACS2_EN); 
     
    102100                return ret; 
    103101  
    104 @@ -814,6 +806,20 @@ static const struct regmap_config pwrap_regmap_config = { 
     102@@ -814,6 +806,20 @@ static const struct regmap_config pwrap_ 
    105103        .max_register = 0xffff, 
    106104 }; 
     
    123121        { 
    124122                .compatible = "mediatek,mt8135-pwrap", 
    125 --  
    126 1.7.10.4 
    127  
  • trunk/target/linux/mediatek/patches-4.4/0034-soc-mediatek-PMIC-wrap-split-SoC-specific-init-into-.patch

    r49132 r49176  
    1717 1 file changed, 42 insertions(+), 25 deletions(-) 
    1818 
    19 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    20 index b22b664..22c89e9 100644 
    2119--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    2220+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
     
    2927  
    3028 static inline int pwrap_is_mt8135(struct pmic_wrapper *wrp) 
    31 @@ -665,6 +666,41 @@ static int pwrap_init_cipher(struct pmic_wrapper *wrp) 
     29@@ -665,6 +666,41 @@ static int pwrap_init_cipher(struct pmic 
    3230        return 0; 
    3331 } 
     
    7169 { 
    7270        int ret; 
    73 @@ -743,31 +779,10 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     71@@ -743,31 +779,10 @@ static int pwrap_init(struct pmic_wrappe 
    7472        pwrap_writel(wrp, 0x5, PWRAP_STAUPD_PRD); 
    7573        pwrap_writel(wrp, 0xff, PWRAP_STAUPD_GRPEN); 
     
    107105  
    108106        /* Setup the init done registers */ 
    109 @@ -811,6 +826,7 @@ static struct pmic_wrapper_type pwrap_mt8135 = { 
     107@@ -811,6 +826,7 @@ static struct pmic_wrapper_type pwrap_mt 
    110108        .type = PWRAP_MT8135, 
    111109        .arb_en_all = 0x1ff, 
     
    115113  
    116114 static struct pmic_wrapper_type pwrap_mt8173 = { 
    117 @@ -818,6 +834,7 @@ static struct pmic_wrapper_type pwrap_mt8173 = { 
     115@@ -818,6 +834,7 @@ static struct pmic_wrapper_type pwrap_mt 
    118116        .type = PWRAP_MT8173, 
    119117        .arb_en_all = 0x3f, 
     
    123121  
    124122 static struct of_device_id of_pwrap_match_tbl[] = { 
    125 --  
    126 1.7.10.4 
    127  
  • trunk/target/linux/mediatek/patches-4.4/0035-soc-mediatek-PMIC-wrap-WRAP_INT_EN-needs-a-different.patch

    r49132 r49176  
    1212 1 file changed, 4 insertions(+), 1 deletion(-) 
    1313 
    14 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    15 index 22c89e9..9df1135 100644 
    1614--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    1715+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
     
    2422        int (*init_soc_specific)(struct pmic_wrapper *wrp); 
    2523 }; 
    26 @@ -825,6 +826,7 @@ static struct pmic_wrapper_type pwrap_mt8135 = { 
     24@@ -825,6 +826,7 @@ static struct pmic_wrapper_type pwrap_mt 
    2725        .regs = mt8135_regs, 
    2826        .type = PWRAP_MT8135, 
     
    3230        .init_soc_specific = pwrap_mt8135_init_soc_specific, 
    3331 }; 
    34 @@ -833,6 +835,7 @@ static struct pmic_wrapper_type pwrap_mt8173 = { 
     32@@ -833,6 +835,7 @@ static struct pmic_wrapper_type pwrap_mt 
    3533        .regs = mt8173_regs, 
    3634        .type = PWRAP_MT8173, 
     
    4038        .init_soc_specific = pwrap_mt8173_init_soc_specific, 
    4139 }; 
    42 @@ -946,7 +949,7 @@ static int pwrap_probe(struct platform_device *pdev) 
     40@@ -946,7 +949,7 @@ static int pwrap_probe(struct platform_d 
    4341                        PWRAP_WDT_SRC_MASK_NO_STAUPD : PWRAP_WDT_SRC_MASK_ALL; 
    4442        pwrap_writel(wrp, wdt_src, PWRAP_WDT_SRC_EN); 
     
    4947        irq = platform_get_irq(pdev, 0); 
    5048        ret = devm_request_irq(wrp->dev, irq, pwrap_interrupt, IRQF_TRIGGER_HIGH, 
    51 --  
    52 1.7.10.4 
    53  
  • trunk/target/linux/mediatek/patches-4.4/0036-soc-mediatek-PMIC-wrap-SPI_WRITE-needs-a-different-b.patch

    r49132 r49176  
    1414 1 file changed, 7 insertions(+), 4 deletions(-) 
    1515 
    16 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    17 index 9df1135..8ce1bad 100644 
    1816--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    1917+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
     
    2624        int (*init_soc_specific)(struct pmic_wrapper *wrp); 
    2725 }; 
    28 @@ -511,15 +512,15 @@ static int pwrap_reset_spislave(struct pmic_wrapper *wrp) 
     26@@ -511,15 +512,15 @@ static int pwrap_reset_spislave(struct p 
    2927        pwrap_writel(wrp, 1, PWRAP_MAN_EN); 
    3028        pwrap_writel(wrp, 0, PWRAP_DIO_EN); 
     
    4644  
    4745        ret = pwrap_wait_for_state(wrp, pwrap_is_sync_idle); 
    48 @@ -827,6 +828,7 @@ static struct pmic_wrapper_type pwrap_mt8135 = { 
     46@@ -827,6 +828,7 @@ static struct pmic_wrapper_type pwrap_mt 
    4947        .type = PWRAP_MT8135, 
    5048        .arb_en_all = 0x1ff, 
     
    5452        .init_soc_specific = pwrap_mt8135_init_soc_specific, 
    5553 }; 
    56 @@ -836,6 +838,7 @@ static struct pmic_wrapper_type pwrap_mt8173 = { 
     54@@ -836,6 +838,7 @@ static struct pmic_wrapper_type pwrap_mt 
    5755        .type = PWRAP_MT8173, 
    5856        .arb_en_all = 0x3f, 
     
    6260        .init_soc_specific = pwrap_mt8173_init_soc_specific, 
    6361 }; 
    64 --  
    65 1.7.10.4 
    66  
  • trunk/target/linux/mediatek/patches-4.4/0037-soc-mediatek-PMIC-wrap-move-wdt_src-into-the-pmic_wr.patch

    r49132 r49176  
    1414 1 file changed, 5 insertions(+), 4 deletions(-) 
    1515 
    16 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    17 index 8ce1bad..aa54df3 100644 
    1816--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    1917+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
     
    2624        int (*init_soc_specific)(struct pmic_wrapper *wrp); 
    2725 }; 
    28 @@ -829,6 +830,7 @@ static struct pmic_wrapper_type pwrap_mt8135 = { 
     26@@ -829,6 +830,7 @@ static struct pmic_wrapper_type pwrap_mt 
    2927        .arb_en_all = 0x1ff, 
    3028        .int_en_all = ~(BIT(31) | BIT(1)), 
     
    3432        .init_soc_specific = pwrap_mt8135_init_soc_specific, 
    3533 }; 
    36 @@ -839,6 +841,7 @@ static struct pmic_wrapper_type pwrap_mt8173 = { 
     34@@ -839,6 +841,7 @@ static struct pmic_wrapper_type pwrap_mt 
    3735        .arb_en_all = 0x3f, 
    3836        .int_en_all = ~(BIT(31) | BIT(1)), 
     
    4240        .init_soc_specific = pwrap_mt8173_init_soc_specific, 
    4341 }; 
    44 @@ -858,7 +861,7 @@ MODULE_DEVICE_TABLE(of, of_pwrap_match_tbl); 
     42@@ -858,7 +861,7 @@ MODULE_DEVICE_TABLE(of, of_pwrap_match_t 
    4543  
    4644 static int pwrap_probe(struct platform_device *pdev) 
     
    5149        struct device_node *np = pdev->dev.of_node; 
    5250        const struct of_device_id *of_id = 
    53 @@ -948,9 +951,7 @@ static int pwrap_probe(struct platform_device *pdev) 
     51@@ -948,9 +951,7 @@ static int pwrap_probe(struct platform_d 
    5452         * Since STAUPD was not used on mt8173 platform, 
    5553         * so STAUPD of WDT_SRC which should be turned off 
     
    6260        pwrap_writel(wrp, wrp->master->int_en_all, PWRAP_INT_EN); 
    6361  
    64 --  
    65 1.7.10.4 
    66  
  • trunk/target/linux/mediatek/patches-4.4/0038-soc-mediatek-PMIC-wrap-remove-pwrap_is_mt8135-and-pw.patch

    r49132 r49176  
    1919 1 file changed, 12 insertions(+), 16 deletions(-) 
    2020 
    21 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    22 index aa54df3..a2bacda 100644 
    2321--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    2422+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
     
    4543 { 
    4644        return readl(wrp->base + wrp->master->regs[reg]); 
    47 @@ -619,11 +610,14 @@ static int pwrap_init_cipher(struct pmic_wrapper *wrp) 
     45@@ -619,11 +610,14 @@ static int pwrap_init_cipher(struct pmic 
    4846        pwrap_writel(wrp, 0x1, PWRAP_CIPHER_KEY_SEL); 
    4947        pwrap_writel(wrp, 0x2, PWRAP_CIPHER_IV_SEL); 
     
    6260  
    6361        /* Config cipher mode @PMIC */ 
    64 @@ -713,7 +707,7 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     62@@ -713,7 +707,7 @@ static int pwrap_init(struct pmic_wrappe 
    6563        if (wrp->rstc_bridge) 
    6664                reset_control_reset(wrp->rstc_bridge); 
     
    7169                pwrap_writel(wrp, 3, PWRAP_DCM_EN); 
    7270                pwrap_writel(wrp, 0, PWRAP_DCM_DBC_PRD); 
    73 @@ -773,7 +767,7 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     71@@ -773,7 +767,7 @@ static int pwrap_init(struct pmic_wrappe 
    7472        pwrap_writel(wrp, PWRAP_DEW_CRC_VAL, PWRAP_SIG_ADR); 
    7573        pwrap_writel(wrp, wrp->master->arb_en_all, PWRAP_HIPRIO_ARB_EN); 
     
    8078  
    8179        pwrap_writel(wrp, 0x1, PWRAP_WACS0_EN); 
    82 @@ -793,7 +787,7 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     80@@ -793,7 +787,7 @@ static int pwrap_init(struct pmic_wrappe 
    8381        pwrap_writel(wrp, 1, PWRAP_INIT_DONE0); 
    8482        pwrap_writel(wrp, 1, PWRAP_INIT_DONE1); 
     
    8987                writel(1, wrp->bridge_base + PWRAP_MT8135_BRIDGE_INIT_DONE4); 
    9088        } 
    91 @@ -831,6 +825,7 @@ static struct pmic_wrapper_type pwrap_mt8135 = { 
     89@@ -831,6 +825,7 @@ static struct pmic_wrapper_type pwrap_mt 
    9290        .int_en_all = ~(BIT(31) | BIT(1)), 
    9391        .spi_w = PWRAP_MAN_CMD_SPI_WRITE, 
     
    9795        .init_soc_specific = pwrap_mt8135_init_soc_specific, 
    9896 }; 
    99 @@ -842,6 +837,7 @@ static struct pmic_wrapper_type pwrap_mt8173 = { 
     97@@ -842,6 +837,7 @@ static struct pmic_wrapper_type pwrap_mt 
    10098        .int_en_all = ~(BIT(31) | BIT(1)), 
    10199        .spi_w = PWRAP_MAN_CMD_SPI_WRITE, 
     
    105103        .init_soc_specific = pwrap_mt8173_init_soc_specific, 
    106104 }; 
    107 @@ -889,7 +885,7 @@ static int pwrap_probe(struct platform_device *pdev) 
     105@@ -889,7 +885,7 @@ static int pwrap_probe(struct platform_d 
    108106                return ret; 
    109107        } 
     
    114112                                "pwrap-bridge"); 
    115113                wrp->bridge_base = devm_ioremap_resource(wrp->dev, res); 
    116 --  
    117 1.7.10.4 
    118  
  • trunk/target/linux/mediatek/patches-4.4/0039-soc-mediatek-PMIC-wrap-add-a-slave-specific-struct.patch

    r49132 r49176  
    1313 1 file changed, 112 insertions(+), 47 deletions(-) 
    1414 
    15 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    16 index a2bacda..bcc841e 100644 
    1715--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    1816+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
     
    126124        struct clk *clk_wrap; 
    127125        struct reset_control *rstc; 
    128 @@ -544,7 +575,8 @@ static int pwrap_init_sidly(struct pmic_wrapper *wrp) 
     126@@ -544,7 +575,8 @@ static int pwrap_init_sidly(struct pmic_ 
    129127  
    130128        for (i = 0; i < 4; i++) { 
     
    136134                        dev_dbg(wrp->dev, "[Read Test] pass, SIDLY=%x\n", i); 
    137135                        pass |= 1 << i; 
    138 @@ -593,7 +625,8 @@ static bool pwrap_is_pmic_cipher_ready(struct pmic_wrapper *wrp) 
     136@@ -593,7 +625,8 @@ static bool pwrap_is_pmic_cipher_ready(s 
    139137        u32 rdata; 
    140138        int ret; 
     
    146144                return 0; 
    147145  
    148 @@ -621,12 +654,12 @@ static int pwrap_init_cipher(struct pmic_wrapper *wrp) 
     146@@ -621,12 +654,12 @@ static int pwrap_init_cipher(struct pmic 
    149147        } 
    150148  
     
    165163        /* wait for cipher data ready@AP */ 
    166164        ret = pwrap_wait_for_state(wrp, pwrap_is_cipher_ready); 
    167 @@ -643,7 +676,7 @@ static int pwrap_init_cipher(struct pmic_wrapper *wrp) 
     165@@ -643,7 +676,7 @@ static int pwrap_init_cipher(struct pmic 
    168166        } 
    169167  
     
    174172        if (ret) { 
    175173                dev_err(wrp->dev, "cipher mode idle fail, ret=%d\n", ret); 
    176 @@ -653,9 +686,11 @@ static int pwrap_init_cipher(struct pmic_wrapper *wrp) 
     174@@ -653,9 +686,11 @@ static int pwrap_init_cipher(struct pmic 
    177175        pwrap_writel(wrp, 1, PWRAP_CIPHER_MODE); 
    178176  
     
    189187                return -EFAULT; 
    190188        } 
    191 @@ -677,8 +712,10 @@ static int pwrap_mt8135_init_soc_specific(struct pmic_wrapper *wrp) 
     189@@ -677,8 +712,10 @@ static int pwrap_mt8135_init_soc_specifi 
    192190        writel(0x7ff, wrp->bridge_base + PWRAP_MT8135_BRIDGE_INT_EN); 
    193191  
     
    202200                return -EFAULT; 
    203201        } 
    204 @@ -689,8 +726,10 @@ static int pwrap_mt8135_init_soc_specific(struct pmic_wrapper *wrp) 
     202@@ -689,8 +726,10 @@ static int pwrap_mt8135_init_soc_specifi 
    205203 static int pwrap_mt8173_init_soc_specific(struct pmic_wrapper *wrp) 
    206204 { 
     
    215213                return -EFAULT; 
    216214        } 
    217 @@ -734,7 +773,7 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     215@@ -734,7 +773,7 @@ static int pwrap_init(struct pmic_wrappe 
    218216                return ret; 
    219217  
     
    224222        /* Check IDLE & INIT_DONE in advance */ 
    225223        ret = pwrap_wait_for_state(wrp, pwrap_is_fsm_idle_and_sync_idle); 
    226 @@ -746,7 +785,7 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     224@@ -746,7 +785,7 @@ static int pwrap_init(struct pmic_wrappe 
    227225        pwrap_writel(wrp, 1, PWRAP_DIO_EN); 
    228226  
     
    233231                dev_err(wrp->dev, "Read test failed after switch to DIO mode: 0x%04x != 0x%04x\n", 
    234232                                PWRAP_DEW_READ_TEST_VAL, rdata); 
    235 @@ -759,12 +798,13 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     233@@ -759,12 +798,13 @@ static int pwrap_init(struct pmic_wrappe 
    236234                return ret; 
    237235  
     
    249247  
    250248        if (wrp->master->type == PWRAP_MT8135) 
    251 @@ -818,6 +858,21 @@ static const struct regmap_config pwrap_regmap_config = { 
     249@@ -818,6 +858,21 @@ static const struct regmap_config pwrap_ 
    252250        .max_register = 0xffff, 
    253251 }; 
     
    271269        .regs = mt8135_regs, 
    272270        .type = PWRAP_MT8135, 
    273 @@ -862,8 +917,17 @@ static int pwrap_probe(struct platform_device *pdev) 
     271@@ -862,8 +917,17 @@ static int pwrap_probe(struct platform_d 
    274272        struct device_node *np = pdev->dev.of_node; 
    275273        const struct of_device_id *of_id = 
     
    289287        if (!wrp) 
    290288                return -ENOMEM; 
    291 @@ -871,6 +935,7 @@ static int pwrap_probe(struct platform_device *pdev) 
     289@@ -871,6 +935,7 @@ static int pwrap_probe(struct platform_d 
    292290        platform_set_drvdata(pdev, wrp); 
    293291  
     
    297295  
    298296        res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pwrap"); 
    299 --  
    300 1.7.10.4 
    301  
  • trunk/target/linux/mediatek/patches-4.4/0040-soc-mediatek-PMIC-wrap-add-mt6323-slave-support.patch

    r49132 r49176  
    1212 1 file changed, 43 insertions(+) 
    1313 
    14 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    15 index bcc841e..0e4ebb8 100644 
    1614--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    1715+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
     
    5250 }; 
    5351  
    54 @@ -661,6 +683,19 @@ static int pwrap_init_cipher(struct pmic_wrapper *wrp) 
     52@@ -661,6 +683,19 @@ static int pwrap_init_cipher(struct pmic 
    5553        pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_LOAD], 0x1); 
    5654        pwrap_write(wrp, wrp->slave->dew_regs[PWRAP_DEW_CIPHER_START], 0x1); 
     
    7270        ret = pwrap_wait_for_state(wrp, pwrap_is_cipher_ready); 
    7371        if (ret) { 
    74 @@ -858,6 +893,11 @@ static const struct regmap_config pwrap_regmap_config = { 
     72@@ -858,6 +893,11 @@ static const struct regmap_config pwrap_ 
    7573        .max_register = 0xffff, 
    7674 }; 
     
    8482        .dew_regs = mt6397_regs, 
    8583        .type = PMIC_MT6397, 
    86 @@ -865,6 +905,9 @@ static const struct pwrap_slv_type pmic_mt6397 = { 
     84@@ -865,6 +905,9 @@ static const struct pwrap_slv_type pmic_ 
    8785  
    8886 static const struct of_device_id of_slave_match_tbl[] = { 
     
    9492                .data = &pmic_mt6397, 
    9593        }, { 
    96 --  
    97 1.7.10.4 
    98  
  • trunk/target/linux/mediatek/patches-4.4/0041-soc-mediatek-PMIC-wrap-add-MT2701-7623-support.patch

    r49132 r49176  
    1212 1 file changed, 154 insertions(+) 
    1313 
    14 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    15 index 0e4ebb8..3c3e56d 100644 
    1614--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    1715+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
     
    139137        PWRAP_MT8173, 
    140138 }; 
    141 @@ -637,6 +732,31 @@ static int pwrap_mt8173_init_reg_clock(struct pmic_wrapper *wrp) 
     139@@ -637,6 +732,31 @@ static int pwrap_mt8173_init_reg_clock(s 
    142140        return 0; 
    143141 } 
     
    171169 { 
    172170        return pwrap_readl(wrp, PWRAP_CIPHER_RDY) & 1; 
    173 @@ -670,6 +790,7 @@ static int pwrap_init_cipher(struct pmic_wrapper *wrp) 
     171@@ -670,6 +790,7 @@ static int pwrap_init_cipher(struct pmic 
    174172                pwrap_writel(wrp, 1, PWRAP_CIPHER_LOAD); 
    175173                pwrap_writel(wrp, 1, PWRAP_CIPHER_START); 
     
    179177                pwrap_writel(wrp, 1, PWRAP_CIPHER_EN); 
    180178                break; 
    181 @@ -772,6 +893,24 @@ static int pwrap_mt8173_init_soc_specific(struct pmic_wrapper *wrp) 
     179@@ -772,6 +893,24 @@ static int pwrap_mt8173_init_soc_specifi 
    182180        return 0; 
    183181 } 
     
    204202 { 
    205203        int ret; 
    206 @@ -916,6 +1055,18 @@ static const struct of_device_id of_slave_match_tbl[] = { 
     204@@ -916,6 +1055,18 @@ static const struct of_device_id of_slav 
    207205 }; 
    208206 MODULE_DEVICE_TABLE(of, of_slave_match_tbl); 
     
    223221        .regs = mt8135_regs, 
    224222        .type = PWRAP_MT8135, 
    225 @@ -942,6 +1093,9 @@ static struct pmic_wrapper_type pwrap_mt8173 = { 
     223@@ -942,6 +1093,9 @@ static struct pmic_wrapper_type pwrap_mt 
    226224  
    227225 static struct of_device_id of_pwrap_match_tbl[] = { 
     
    233231                .data = &pwrap_mt8135, 
    234232        }, { 
    235 --  
    236 1.7.10.4 
    237  
  • trunk/target/linux/mediatek/patches-4.4/0042-dt-bindings-mfd-Add-bindings-for-the-MediaTek-MT6323.patch

    r49132 r49176  
    1212 1 file changed, 6 insertions(+), 4 deletions(-) 
    1313 
    14 diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt b/Documentation/devicetree/bindings/mfd/mt6397.txt 
    15 index 15043e6..949c85f 100644 
    1614--- a/Documentation/devicetree/bindings/mfd/mt6397.txt 
    1715+++ b/Documentation/devicetree/bindings/mfd/mt6397.txt 
     
    2523 - RTC 
    2624 - Audio codec 
    27 @@ -8,14 +8,14 @@ MT6397 is a multifunction device with the following sub modules: 
     25@@ -8,14 +8,14 @@ MT6397 is a multifunction device with th 
    2826 - Clock 
    2927  
     
    5149        Required properties: 
    5250                - compatible: "mediatek,mt6397-codec" 
    53 --  
    54 1.7.10.4 
    55  
  • trunk/target/linux/mediatek/patches-4.4/0043-mfd-mt6397-int_con-and-int_status-may-vary-in-locati.patch

    r49132 r49176  
    1414 2 files changed, 19 insertions(+), 10 deletions(-) 
    1515 
    16 diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c 
    17 index 1749c1c..75ad0fe 100644 
    1816--- a/drivers/mfd/mt6397-core.c 
    1917+++ b/drivers/mfd/mt6397-core.c 
    20 @@ -69,8 +69,10 @@ static void mt6397_irq_sync_unlock(struct irq_data *data) 
     18@@ -69,8 +69,10 @@ static void mt6397_irq_sync_unlock(struc 
    2119 { 
    2220        struct mt6397_chip *mt6397 = irq_data_get_irq_chip_data(data); 
     
    3129        mutex_unlock(&mt6397->irqlock); 
    3230 } 
    33 @@ -147,8 +149,8 @@ static irqreturn_t mt6397_irq_thread(int irq, void *data) 
     31@@ -147,8 +149,8 @@ static irqreturn_t mt6397_irq_thread(int 
    3432 { 
    3533        struct mt6397_chip *mt6397 = data; 
     
    4240        return IRQ_HANDLED; 
    4341 } 
    44 @@ -177,8 +179,8 @@ static int mt6397_irq_init(struct mt6397_chip *mt6397) 
     42@@ -177,8 +179,8 @@ static int mt6397_irq_init(struct mt6397 
    4543        mutex_init(&mt6397->irqlock); 
    4644  
     
    5351        mt6397->irq_domain = irq_domain_add_linear(mt6397->dev->of_node, 
    5452                MT6397_IRQ_NR, &mt6397_irq_domain_ops, mt6397); 
    55 @@ -203,8 +205,8 @@ static int mt6397_irq_suspend(struct device *dev) 
     53@@ -203,8 +205,8 @@ static int mt6397_irq_suspend(struct dev 
    5654 { 
    5755        struct mt6397_chip *chip = dev_get_drvdata(dev); 
     
    6462        enable_irq_wake(chip->irq); 
    6563  
    66 @@ -215,8 +217,8 @@ static int mt6397_irq_resume(struct device *dev) 
     64@@ -215,8 +217,8 @@ static int mt6397_irq_resume(struct devi 
    6765 { 
    6866        struct mt6397_chip *chip = dev_get_drvdata(dev); 
     
    7573        disable_irq_wake(chip->irq); 
    7674  
    77 @@ -237,6 +239,11 @@ static int mt6397_probe(struct platform_device *pdev) 
     75@@ -237,6 +239,11 @@ static int mt6397_probe(struct platform_ 
    7876                return -ENOMEM; 
    7977  
     
    8785         * mt6397 MFD is child device of soc pmic wrapper. 
    8886         * Regmap is set from its parent. 
    89 diff --git a/include/linux/mfd/mt6397/core.h b/include/linux/mfd/mt6397/core.h 
    90 index 45b8e8a..d678f52 100644 
    9187--- a/include/linux/mfd/mt6397/core.h 
    9288+++ b/include/linux/mfd/mt6397/core.h 
     
    10096  
    10197 #endif /* __MFD_MT6397_CORE_H__ */ 
    102 --  
    103 1.7.10.4 
    104  
  • trunk/target/linux/mediatek/patches-4.4/0044-mfd-mt6397-add-support-for-different-Slave-types.patch

    r49132 r49176  
    99 1 file changed, 41 insertions(+), 17 deletions(-) 
    1010 
    11 diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c 
    12 index 75ad0fe..aa91606 100644 
    1311--- a/drivers/mfd/mt6397-core.c 
    1412+++ b/drivers/mfd/mt6397-core.c 
     
    2321        { 
    2422                .start = MT6397_RTC_BASE, 
    25 @@ -232,39 +235,60 @@ static SIMPLE_DEV_PM_OPS(mt6397_pm_ops, mt6397_irq_suspend, 
     23@@ -232,39 +235,60 @@ static SIMPLE_DEV_PM_OPS(mt6397_pm_ops, 
    2624 static int mt6397_probe(struct platform_device *pdev) 
    2725 { 
     
    10199        return ret; 
    102100 } 
    103 --  
    104 1.7.10.4 
    105  
  • trunk/target/linux/mediatek/patches-4.4/0045-mfd-mt6397-add-MT6323-support-to-MT6397-driver.patch

    r49132 r49176  
    1313 create mode 100644 include/linux/mfd/mt6323/registers.h 
    1414 
    15 diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c 
    16 index aa91606..8234cd3 100644 
    1715--- a/drivers/mfd/mt6397-core.c 
    1816+++ b/drivers/mfd/mt6397-core.c 
     
    3230 #define MT6397_CID_CODE                0x97 
    3331  
    34 @@ -40,6 +43,13 @@ static const struct resource mt6397_rtc_resources[] = { 
     32@@ -40,6 +43,13 @@ static const struct resource mt6397_rtc_ 
    3533        }, 
    3634 }; 
     
    4644        { 
    4745                .name = "mt6397-rtc", 
    48 @@ -261,6 +271,15 @@ static int mt6397_probe(struct platform_device *pdev) 
     46@@ -261,6 +271,15 @@ static int mt6397_probe(struct platform_ 
    4947        } 
    5048  
     
    6260        case MT6391_CID_CODE: 
    6361                pmic->int_con[0] = MT6397_INT_CON0; 
    64 @@ -302,6 +321,7 @@ static int mt6397_remove(struct platform_device *pdev) 
     62@@ -302,6 +321,7 @@ static int mt6397_remove(struct platform 
    6563  
    6664 static const struct of_device_id mt6397_of_match[] = { 
     
    7068 }; 
    7169 MODULE_DEVICE_TABLE(of, mt6397_of_match); 
    72 diff --git a/include/linux/mfd/mt6323/core.h b/include/linux/mfd/mt6323/core.h 
    73 new file mode 100644 
    74 index 0000000..06d0ec3 
    7570--- /dev/null 
    7671+++ b/include/linux/mfd/mt6323/core.h 
     
    112107+ 
    113108+#endif /* __MFD_MT6323_CORE_H__ */ 
    114 diff --git a/include/linux/mfd/mt6323/registers.h b/include/linux/mfd/mt6323/registers.h 
    115 new file mode 100644 
    116 index 0000000..160f3c0 
    117109--- /dev/null 
    118110+++ b/include/linux/mfd/mt6323/registers.h 
     
    526518+ 
    527519+#endif /* __MFD_MT6323_REGISTERS_H__ */ 
    528 --  
    529 1.7.10.4 
    530  
  • trunk/target/linux/mediatek/patches-4.4/0046-regulator-Add-document-for-MT6323-regulator.patch

    r49132 r49176  
    1111 create mode 100644 Documentation/devicetree/bindings/regulator/mt6323-regulator.txt 
    1212 
    13 diff --git a/Documentation/devicetree/bindings/regulator/mt6323-regulator.txt b/Documentation/devicetree/bindings/regulator/mt6323-regulator.txt 
    14 new file mode 100644 
    15 index 0000000..9fd95e7 
    1613--- /dev/null 
    1714+++ b/Documentation/devicetree/bindings/regulator/mt6323-regulator.txt 
     
    256253+               }; 
    257254+       }; 
    258 --  
    259 1.7.10.4 
    260  
  • trunk/target/linux/mediatek/patches-4.4/0047-regulator-mt6323-Add-support-for-MT6323-regulator.patch

    r49132 r49176  
    1919 create mode 100644 include/linux/regulator/mt6323-regulator.h 
    2020 
    21 diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig 
    22 index 8df0b0e..4aec931 100644 
    2321--- a/drivers/regulator/Kconfig 
    2422+++ b/drivers/regulator/Kconfig 
    25 @@ -452,6 +452,15 @@ config REGULATOR_MT6311 
     23@@ -453,6 +453,15 @@ config REGULATOR_MT6311 
    2624          This driver supports the control of different power rails of device 
    2725          through regulator interface. 
     
    3937        tristate "MediaTek MT6397 PMIC" 
    4038        depends on MFD_MT6397 
    41 diff --git a/drivers/regulator/Makefile b/drivers/regulator/Makefile 
    42 index 0f81749..b42a84e 100644 
    4339--- a/drivers/regulator/Makefile 
    4440+++ b/drivers/regulator/Makefile 
    45 @@ -60,6 +60,7 @@ obj-$(CONFIG_REGULATOR_MC13783) += mc13783-regulator.o 
     41@@ -60,6 +60,7 @@ obj-$(CONFIG_REGULATOR_MC13783) += mc137 
    4642 obj-$(CONFIG_REGULATOR_MC13892) += mc13892-regulator.o 
    4743 obj-$(CONFIG_REGULATOR_MC13XXX_CORE) +=  mc13xxx-regulator-core.o 
     
    5147 obj-$(CONFIG_REGULATOR_QCOM_RPM) += qcom_rpm-regulator.o 
    5248 obj-$(CONFIG_REGULATOR_QCOM_SMD_RPM) += qcom_smd-regulator.o 
    53 diff --git a/drivers/regulator/mt6323-regulator.c b/drivers/regulator/mt6323-regulator.c 
    54 new file mode 100644 
    55 index 0000000..28ebbda 
    5649--- /dev/null 
    5750+++ b/drivers/regulator/mt6323-regulator.c 
     
    489482+MODULE_DESCRIPTION("Regulator Driver for MediaTek MT6397 PMIC"); 
    490483+MODULE_LICENSE("GPL v2"); 
    491 diff --git a/include/linux/regulator/mt6323-regulator.h b/include/linux/regulator/mt6323-regulator.h 
    492 new file mode 100644 
    493 index 0000000..67011cd 
    494484--- /dev/null 
    495485+++ b/include/linux/regulator/mt6323-regulator.h 
     
    547537+ 
    548538+#endif /* __LINUX_REGULATOR_MT6323_H */ 
    549 --  
    550 1.7.10.4 
    551  
  • trunk/target/linux/mediatek/patches-4.4/0048-net-next-mediatek-document-MediaTek-SoC-ethernet-bin.patch

    r49132 r49176  
    1616 create mode 100644 Documentation/devicetree/bindings/net/mediatek-net.txt 
    1717 
    18 diff --git a/Documentation/devicetree/bindings/net/mediatek-net.txt b/Documentation/devicetree/bindings/net/mediatek-net.txt 
    19 new file mode 100644 
    20 index 0000000..5ca7929 
    2118--- /dev/null 
    2219+++ b/Documentation/devicetree/bindings/net/mediatek-net.txt 
     
    9996+       }; 
    10097+}; 
    101 --  
    102 1.7.10.4 
    103  
  • trunk/target/linux/mediatek/patches-4.4/0049-net-next-mediatek-add-support-for-MT7623-ethernet.patch

    r49132 r49176  
    2727 create mode 100644 drivers/net/ethernet/mediatek/mtk_eth_soc.h 
    2828 
    29 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    30 new file mode 100644 
    31 index 0000000..ba3afa5 
    3229--- /dev/null 
    3330+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
     
    18401837+MODULE_AUTHOR("John Crispin <blogic@openwrt.org>"); 
    18411838+MODULE_DESCRIPTION("Ethernet driver for MediaTek SoC"); 
    1842 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/drivers/net/ethernet/mediatek/mtk_eth_soc.h 
    1843 new file mode 100644 
    1844 index 0000000..48a5292 
    18451839--- /dev/null 
    18461840+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h 
     
    22672261+ 
    22682262+#endif /* MTK_ETH_H */ 
    2269 --  
    2270 1.7.10.4 
    2271  
  • trunk/target/linux/mediatek/patches-4.4/0050-net-next-mediatek-add-Kconfig-and-Makefile.patch

    r49132 r49176  
    1616 create mode 100644 drivers/net/ethernet/mediatek/Makefile 
    1717 
    18 diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig 
    19 index 31c5e47..cd28b95 100644 
    2018--- a/drivers/net/ethernet/Kconfig 
    2119+++ b/drivers/net/ethernet/Kconfig 
     
    2826 source "drivers/net/ethernet/micrel/Kconfig" 
    2927 source "drivers/net/ethernet/microchip/Kconfig" 
    30 diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile 
    31 index 071f84e..c62191f 100644 
    3228--- a/drivers/net/ethernet/Makefile 
    3329+++ b/drivers/net/ethernet/Makefile 
     
    4036 obj-$(CONFIG_NET_VENDOR_MICREL) += micrel/ 
    4137 obj-$(CONFIG_NET_VENDOR_MICROCHIP) += microchip/ 
    42 diff --git a/drivers/net/ethernet/mediatek/Kconfig b/drivers/net/ethernet/mediatek/Kconfig 
    43 new file mode 100644 
    44 index 0000000..b0229f4 
    4538--- /dev/null 
    4639+++ b/drivers/net/ethernet/mediatek/Kconfig 
     
    6356+ 
    6457+endif #NET_VENDOR_MEDIATEK 
    65 diff --git a/drivers/net/ethernet/mediatek/Makefile b/drivers/net/ethernet/mediatek/Makefile 
    66 new file mode 100644 
    67 index 0000000..aa3f1c8 
    6858--- /dev/null 
    6959+++ b/drivers/net/ethernet/mediatek/Makefile 
     
    7464+ 
    7565+obj-$(CONFIG_NET_MEDIATEK_SOC)                 += mtk_eth_soc.o 
    76 --  
    77 1.7.10.4 
    78  
  • trunk/target/linux/mediatek/patches-4.4/0051-net-next-mediatek-add-an-entry-to-MAINTAINERS.patch

    r49132 r49176  
    1212 1 file changed, 7 insertions(+) 
    1313 
    14 diff --git a/MAINTAINERS b/MAINTAINERS 
    15 index 156e1d3..7737042 100644 
    1614--- a/MAINTAINERS 
    1715+++ b/MAINTAINERS 
    18 @@ -6908,6 +6908,13 @@ F:       include/uapi/linux/meye.h 
     16@@ -6907,6 +6907,13 @@ F:       include/uapi/linux/meye.h 
    1917 F:     include/uapi/linux/ivtv* 
    2018 F:     include/uapi/linux/uvcvideo.h 
     
    3028 M:     Jakub Kicinski <kubakici@wp.pl> 
    3129 L:     linux-wireless@vger.kernel.org 
    32 --  
    33 1.7.10.4 
    34  
  • trunk/target/linux/mediatek/patches-4.4/0052-mtd-nand-add-an-mtd_to_nand-helper.patch

    r49132 r49176  
    1515 1 file changed, 5 insertions(+) 
    1616 
    17 diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h 
    18 index 5a9d1d4..a4839b3 100644 
    1917--- a/include/linux/mtd/nand.h 
    2018+++ b/include/linux/mtd/nand.h 
     
    3129  * NAND Flash Manufacturer ID Codes 
    3230  */ 
    33 --  
    34 1.7.10.4 
    35  
  • trunk/target/linux/mediatek/patches-4.4/0053-mtd-nand-add-nand_to_mtd-helper.patch

    r49132 r49176  
    1212 1 file changed, 5 insertions(+) 
    1313 
    14 diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h 
    15 index a4839b3..c75424f 100644 
    1614--- a/include/linux/mtd/nand.h 
    1715+++ b/include/linux/mtd/nand.h 
    18 @@ -724,6 +724,11 @@ static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd) 
     16@@ -724,6 +724,11 @@ static inline struct nand_chip *mtd_to_n 
    1917        return mtd->priv; 
    2018 } 
     
    2826  * NAND Flash Manufacturer ID Codes 
    2927  */ 
    30 --  
    31 1.7.10.4 
    32  
  • trunk/target/linux/mediatek/patches-4.4/0054-mtd-nand-add-helpers-to-access-priv.patch

    r49132 r49176  
    1414 1 file changed, 10 insertions(+) 
    1515 
    16 diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h 
    17 index c75424f..345f864 100644 
    1816--- a/include/linux/mtd/nand.h 
    1917+++ b/include/linux/mtd/nand.h 
    20 @@ -729,6 +729,16 @@ static inline struct mtd_info *nand_to_mtd(struct nand_chip *chip) 
     18@@ -729,6 +729,16 @@ static inline struct mtd_info *nand_to_m 
    2119        return &chip->mtd; 
    2220 } 
     
    3533  * NAND Flash Manufacturer ID Codes 
    3634  */ 
    37 --  
    38 1.7.10.4 
    39  
  • trunk/target/linux/mediatek/patches-4.4/0055-mtd-nand-embed-an-mtd_info-structure-into-nand_chip.patch

    r49132 r49176  
    1818 1 file changed, 2 insertions(+) 
    1919 
    20 diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h 
    21 index 345f864..1ded588 100644 
    2220--- a/include/linux/mtd/nand.h 
    2321+++ b/include/linux/mtd/nand.h 
     
    3836        void __iomem *IO_ADDR_W; 
    3937  
    40 --  
    41 1.7.10.4 
    42  
  • trunk/target/linux/mediatek/patches-4.4/0056-mtd-add-get-set-of_node-flash_node-helpers.patch

    r49132 r49176  
    1717 3 files changed, 33 insertions(+) 
    1818 
    19 diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h 
    20 index f17fa75..cc84923 100644 
    2119--- a/include/linux/mtd/mtd.h 
    2220+++ b/include/linux/mtd/mtd.h 
    23 @@ -254,6 +254,17 @@ struct mtd_info { 
     21@@ -258,6 +258,17 @@ struct mtd_info { 
    2422        int usecount; 
    2523 }; 
     
    3937 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, 
    4038              void **virt, resource_size_t *phys); 
    41 diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h 
    42 index 1ded588..3c34ca4 100644 
    4339--- a/include/linux/mtd/nand.h 
    4440+++ b/include/linux/mtd/nand.h 
    45 @@ -741,6 +741,17 @@ static inline void nand_set_controller_data(struct nand_chip *chip, void *priv) 
     41@@ -741,6 +741,17 @@ static inline void nand_set_controller_d 
    4642        chip->priv = priv; 
    4743 } 
     
    6157  * NAND Flash Manufacturer ID Codes 
    6258  */ 
    63 diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h 
    64 index c8723b6..6d991df 100644 
    6559--- a/include/linux/mtd/spi-nor.h 
    6660+++ b/include/linux/mtd/spi-nor.h 
    67 @@ -185,6 +185,17 @@ struct spi_nor { 
     61@@ -184,6 +184,17 @@ struct spi_nor { 
    6862        void *priv; 
    6963 }; 
     
    8377  * spi_nor_scan() - scan the SPI NOR 
    8478  * @nor:       the spi_nor structure 
    85 --  
    86 1.7.10.4 
    87  
  • trunk/target/linux/mediatek/patches-4.4/0057-mtd-mediatek-device-tree-docs-for-MTK-Smart-Device-G.patch

    r49132 r49176  
    1616 create mode 100644 Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt 
    1717 
    18 diff --git a/Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt b/Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt 
    19 new file mode 100644 
    20 index 0000000..129d17b 
    2118--- /dev/null 
    2219+++ b/Documentation/devicetree/bindings/mtd/mtksdg1-nand.txt 
     
    6057+               ... 
    6158+       }; 
    62 --  
    63 1.7.10.4 
    64  
  • trunk/target/linux/mediatek/patches-4.4/0058-mtd-mediatek-driver-for-MTK-Smart-Device-Gen1-NAND.patch

    r49132 r49176  
    2121 create mode 100644 drivers/mtd/nand/mtksdg1_nand_nfi.h 
    2222 
    23 diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig 
    24 index 2896640..5ec072a 100644 
    2523--- a/drivers/mtd/nand/Kconfig 
    2624+++ b/drivers/mtd/nand/Kconfig 
     
    3634+ 
    3735 endif # MTD_NAND 
    38 diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile 
    39 index 2c7f014..2a2620c 100644 
    4036--- a/drivers/mtd/nand/Makefile 
    4137+++ b/drivers/mtd/nand/Makefile 
    42 @@ -55,5 +55,6 @@ obj-$(CONFIG_MTD_NAND_BCM47XXNFLASH)  += bcm47xxnflash/ 
     38@@ -55,5 +55,6 @@ obj-$(CONFIG_MTD_NAND_BCM47XXNFLASH)  += 
    4339 obj-$(CONFIG_MTD_NAND_SUNXI)           += sunxi_nand.o 
    4440 obj-$(CONFIG_MTD_NAND_HISI504)         += hisi504_nand.o 
     
    4743  
    4844 nand-objs := nand_base.o nand_bbt.o nand_timings.o 
    49 diff --git a/drivers/mtd/nand/mtksdg1_nand.c b/drivers/mtd/nand/mtksdg1_nand.c 
    50 new file mode 100644 
    51 index 0000000..55dd17d 
    5245--- /dev/null 
    5346+++ b/drivers/mtd/nand/mtksdg1_nand.c 
     
    15881581+MODULE_DESCRIPTION("MTK Nand Flash Controller Driver"); 
    15891582+ 
    1590 diff --git a/drivers/mtd/nand/mtksdg1_nand_ecc.h b/drivers/mtd/nand/mtksdg1_nand_ecc.h 
    1591 new file mode 100644 
    1592 index 0000000..d90b196 
    15931583--- /dev/null 
    15941584+++ b/drivers/mtd/nand/mtksdg1_nand_ecc.h 
     
    16691659+#define                DECFSM_IDLE             (0x01010101) 
    16701660+#endif 
    1671 diff --git a/drivers/mtd/nand/mtksdg1_nand_nfi.h b/drivers/mtd/nand/mtksdg1_nand_nfi.h 
    1672 new file mode 100644 
    1673 index 0000000..a9aa6f6 
    16741661--- /dev/null 
    16751662+++ b/drivers/mtd/nand/mtksdg1_nand_nfi.h 
     
    17941781+#endif 
    17951782+ 
    1796 --  
    1797 1.7.10.4 
    1798  
  • trunk/target/linux/mediatek/patches-4.4/0059-mtd-nand-backport-fixes.patch

    r49132 r49176  
    88 1 file changed, 8 insertions(+), 1 deletion(-) 
    99 
    10 diff --git a/drivers/mtd/nand/mtksdg1_nand.c b/drivers/mtd/nand/mtksdg1_nand.c 
    11 index 55dd17d..f92b949 100644 
    1210--- a/drivers/mtd/nand/mtksdg1_nand.c 
    1311+++ b/drivers/mtd/nand/mtksdg1_nand.c 
    14 @@ -107,6 +107,9 @@ static struct nand_ecclayout nand_4k_128 = { 
     12@@ -107,6 +107,9 @@ static struct nand_ecclayout nand_4k_128 
    1513        .oobfree = { {0, 32} }, 
    1614 }; 
     
    2220 static inline void mtk_nfi_writel(struct mtk_nfc_host *host, u32 val, u32 reg) 
    2321 { 
    24 @@ -1298,6 +1301,7 @@ static int mtk_nfc_probe(struct platform_device *pdev) 
     22@@ -1298,6 +1301,7 @@ static int mtk_nfc_probe(struct platform 
    2523  
    2624        chip = &host->chip; 
     
    3028  
    3129        res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 
    32 @@ -1428,7 +1432,10 @@ static int mtk_nfc_probe(struct platform_device *pdev) 
     30@@ -1428,7 +1432,10 @@ static int mtk_nfc_probe(struct platform 
    3331        } 
    3432        host->switch_oob = false; 
     
    4240                dev_err(dev, "mtd parse partition error\n"); 
    4341                goto nand_free; 
    44 --  
    45 1.7.10.4 
    46  
  • trunk/target/linux/mediatek/patches-4.4/0060-net-mediatek-checking-for-IS_ERR-instead-of-NULL.patch

    r49132 r49176  
    1212 1 file changed, 2 insertions(+), 2 deletions(-) 
    1313 
    14 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    15 index ba3afa5..9759fe5 100644 
    1614--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    1715+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    18 @@ -186,9 +186,9 @@ static int mtk_phy_connect_node(struct mtk_eth *eth, struct mtk_mac *mac, 
     16@@ -186,9 +186,9 @@ static int mtk_phy_connect_node(struct m 
    1917  
    2018        phydev = of_phy_connect(eth->netdev[mac->id], phy_node, 
     
    2826  
    2927        dev_info(eth->dev, 
    30 --  
    31 1.7.10.4 
    32  
  • trunk/target/linux/mediatek/patches-4.4/0061-net-mediatek-unlock-on-error-in-mtk_tx_map.patch

    r49132 r49176  
    1212 1 file changed, 2 insertions(+) 
    1313 
    14 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    15 index 9759fe5..c2c2e206 100644 
    1614--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    1715+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
     
    2523 } 
    2624  
    27 --  
    28 1.7.10.4 
    29  
  • trunk/target/linux/mediatek/patches-4.4/0062-net-mediatek-use-dma_addr_t-correctly.patch

    r49132 r49176  
    1818 1 file changed, 1 insertion(+), 1 deletion(-) 
    1919 
    20 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    21 index c2c2e206..a005bc4 100644 
    2220--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    2321+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    24 @@ -453,7 +453,7 @@ static inline void mtk_rx_get_desc(struct mtk_rx_dma *rxd, 
     22@@ -453,7 +453,7 @@ static inline void mtk_rx_get_desc(struc 
    2523 /* the qdma core needs scratch memory to be setup */ 
    2624 static int mtk_init_fq_dma(struct mtk_eth *eth) 
     
    3129        dma_addr_t dma_addr; 
    3230        int i; 
    33 --  
    34 1.7.10.4 
    35  
  • trunk/target/linux/mediatek/patches-4.4/0063-net-mediatek-remove-incorrect-dma_mask-assignment.patch

    r49132 r49176  
    1818 1 file changed, 3 deletions(-) 
    1919 
    20 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    21 index a005bc4..fcd4ed7 100644 
    2220--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    2321+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    24 @@ -1678,9 +1678,6 @@ static int mtk_probe(struct platform_device *pdev) 
     22@@ -1678,9 +1678,6 @@ static int mtk_probe(struct platform_dev 
    2523        struct mtk_eth *eth; 
    2624        int err; 
     
    3230  
    3331        match = of_match_device(of_mtk_match, &pdev->dev); 
    34 --  
    35 1.7.10.4 
    36  
  • trunk/target/linux/mediatek/patches-4.4/0064-net-mediatek-check-device_reset-return-code.patch

    r49132 r49176  
    1919 1 file changed, 3 insertions(+), 1 deletion(-) 
    2020 
    21 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    22 index fcd4ed7..7f2126b 100644 
    2321--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    2422+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    25 @@ -1678,7 +1678,9 @@ static int mtk_probe(struct platform_device *pdev) 
     23@@ -1678,7 +1678,9 @@ static int mtk_probe(struct platform_dev 
    2624        struct mtk_eth *eth; 
    2725        int err; 
     
    3432        match = of_match_device(of_mtk_match, &pdev->dev); 
    3533        soc = (struct mtk_soc_data *)match->data; 
    36 --  
    37 1.7.10.4 
    38  
  • trunk/target/linux/mediatek/patches-4.4/0065-net-mediatek-watchdog_timeo-was-not-set.patch

    r49132 r49176  
    1212 1 file changed, 1 insertion(+) 
    1313 
    14 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    15 index 7f2126b..7e6d2e2 100644 
    1614--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    1715+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    18 @@ -1645,6 +1645,7 @@ static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np) 
     16@@ -1645,6 +1645,7 @@ static int mtk_add_mac(struct mtk_eth *e 
    1917        mac->hw_stats->reg_offset = id * MTK_STAT_OFFSET; 
    2018  
     
    2422        eth->netdev[id]->base_addr = (unsigned long)eth->base; 
    2523        eth->netdev[id]->vlan_features = MTK_HW_FEATURES & 
    26 --  
    27 1.7.10.4 
    28  
  • trunk/target/linux/mediatek/patches-4.4/0066-net-mediatek-mtk_cal_txd_req-returns-bad-value.patch

    r49132 r49176  
    1313 1 file changed, 1 insertion(+), 1 deletion(-) 
    1414 
    15 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    16 index 7e6d2e2..4d8d0a3 100644 
    1715--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    1816+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    19 @@ -681,7 +681,7 @@ static inline int mtk_cal_txd_req(struct sk_buff *skb) 
     17@@ -681,7 +681,7 @@ static inline int mtk_cal_txd_req(struct 
    2018                nfrags += skb_shinfo(skb)->nr_frags; 
    2119        } 
     
    2624  
    2725 static int mtk_start_xmit(struct sk_buff *skb, struct net_device *dev) 
    28 --  
    29 1.7.10.4 
    30  
  • trunk/target/linux/mediatek/patches-4.4/0067-net-mediatek-update-the-IRQ-part-of-the-binding-docu.patch

    r49132 r49176  
    1717 1 file changed, 4 insertions(+), 2 deletions(-) 
    1818 
    19 diff --git a/Documentation/devicetree/bindings/net/mediatek-net.txt b/Documentation/devicetree/bindings/net/mediatek-net.txt 
    20 index 5ca7929..2f142be 100644 
    2119--- a/Documentation/devicetree/bindings/net/mediatek-net.txt 
    2220+++ b/Documentation/devicetree/bindings/net/mediatek-net.txt 
    23 @@ -9,7 +9,7 @@ have dual GMAC each represented by a child node.. 
     21@@ -9,7 +9,7 @@ have dual GMAC each represented by a chi 
    2422 Required properties: 
    2523 - compatible: Should be "mediatek,mt7623-eth" 
     
    4139        resets = <&ethsys MT2701_ETHSYS_ETH_RST>; 
    4240        reset-names = "eth"; 
    43 --  
    44 1.7.10.4 
    45  
  • trunk/target/linux/mediatek/patches-4.4/0068-net-mediatek-remove-superflous-reset-call.patch

    r49132 r49176  
    1212 1 file changed, 4 deletions(-) 
    1313 
    14 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    15 index 4d8d0a3..293ea59 100644 
    1614--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    1715+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    18 @@ -1679,10 +1679,6 @@ static int mtk_probe(struct platform_device *pdev) 
     16@@ -1679,10 +1679,6 @@ static int mtk_probe(struct platform_dev 
    1917        struct mtk_eth *eth; 
    2018        int err; 
     
    2725        soc = (struct mtk_soc_data *)match->data; 
    2826  
    29 --  
    30 1.7.10.4 
    31  
  • trunk/target/linux/mediatek/patches-4.4/0069-net-mediatek-fix-stop-and-wakeup-of-queue.patch

    r49132 r49176  
    1414 1 file changed, 27 insertions(+), 10 deletions(-) 
    1515 
    16 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    17 index 293ea59..04bdb9d 100644 
    1816--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    1917+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    20 @@ -684,6 +684,28 @@ static inline int mtk_cal_txd_req(struct sk_buff *skb) 
     18@@ -684,6 +684,28 @@ static inline int mtk_cal_txd_req(struct 
    2119        return nfrags; 
    2220 } 
     
    4745 { 
    4846        struct mtk_mac *mac = netdev_priv(dev); 
    49 @@ -695,7 +717,7 @@ static int mtk_start_xmit(struct sk_buff *skb, struct net_device *dev) 
     47@@ -695,7 +717,7 @@ static int mtk_start_xmit(struct sk_buff 
    5048  
    5149        tx_num = mtk_cal_txd_req(skb); 
     
    5654                          "Tx Ring full when queue awake!\n"); 
    5755                return NETDEV_TX_BUSY; 
    58 @@ -720,10 +742,10 @@ static int mtk_start_xmit(struct sk_buff *skb, struct net_device *dev) 
     56@@ -720,10 +742,10 @@ static int mtk_start_xmit(struct sk_buff 
    5957                goto drop; 
    6058  
     
    6967  
    7068        return NETDEV_TX_OK; 
    71 @@ -897,13 +919,8 @@ static int mtk_poll_tx(struct mtk_eth *eth, int budget, bool *tx_again) 
     69@@ -897,13 +919,8 @@ static int mtk_poll_tx(struct mtk_eth *e 
    7270        if (!total) 
    7371                return 0; 
     
    8583        return total; 
    8684 } 
    87 --  
    88 1.7.10.4 
    89  
  • trunk/target/linux/mediatek/patches-4.4/0070-net-mediatek-fix-mtk_pending_work.patch

    r49132 r49176  
    1414 1 file changed, 21 insertions(+), 9 deletions(-) 
    1515 
    16 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    17 index 04bdb9d..26eeb1a 100644 
    1816--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    1917+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    20 @@ -1430,19 +1430,31 @@ static int mtk_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) 
     18@@ -1430,19 +1430,31 @@ static int mtk_do_ioctl(struct net_devic 
    2119  
    2220 static void mtk_pending_work(struct work_struct *work) 
     
    5957        rtnl_unlock(); 
    6058 } 
    61 --  
    62 1.7.10.4 
    63  
  • trunk/target/linux/mediatek/patches-4.4/0071-net-mediatek-fix-TX-locking.patch

    r49132 r49176  
    1616 1 file changed, 10 insertions(+), 10 deletions(-) 
    1717 
    18 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    19 index 26eeb1a..67b18f9 100644 
    2018--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    2119+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    22 @@ -536,7 +536,6 @@ static int mtk_tx_map(struct sk_buff *skb, struct net_device *dev, 
     20@@ -536,7 +536,6 @@ static int mtk_tx_map(struct sk_buff *sk 
    2321        struct mtk_eth *eth = mac->hw; 
    2422        struct mtk_tx_dma *itxd, *txd; 
     
    2826        unsigned int nr_frags; 
    2927        int i, n_desc = 1; 
    30 @@ -568,11 +567,6 @@ static int mtk_tx_map(struct sk_buff *skb, struct net_device *dev, 
     28@@ -568,11 +567,6 @@ static int mtk_tx_map(struct sk_buff *sk 
    3129        if (unlikely(dma_mapping_error(&dev->dev, mapped_addr))) 
    3230                return -ENOMEM; 
     
    4038        tx_buf->flags |= MTK_TX_FLAGS_SINGLE0; 
    4139        dma_unmap_addr_set(tx_buf, dma_addr0, mapped_addr); 
    42 @@ -632,8 +626,6 @@ static int mtk_tx_map(struct sk_buff *skb, struct net_device *dev, 
     40@@ -632,8 +626,6 @@ static int mtk_tx_map(struct sk_buff *sk 
    4341        WRITE_ONCE(itxd->txd3, (TX_DMA_SWC | TX_DMA_PLEN0(skb_headlen(skb)) | 
    4442                                (!nr_frags * TX_DMA_LS0))); 
     
    5856 } 
    5957  
    60 @@ -712,14 +702,22 @@ static int mtk_start_xmit(struct sk_buff *skb, struct net_device *dev) 
     58@@ -712,14 +702,22 @@ static int mtk_start_xmit(struct sk_buff 
    6159        struct mtk_eth *eth = mac->hw; 
    6260        struct mtk_tx_ring *ring = &eth->tx_ring; 
     
    8179        } 
    8280  
    83 @@ -747,10 +745,12 @@ static int mtk_start_xmit(struct sk_buff *skb, struct net_device *dev) 
     81@@ -747,10 +745,12 @@ static int mtk_start_xmit(struct sk_buff 
    8482                             ring->thresh)) 
    8583                        mtk_wake_queue(eth); 
     
    9492        dev_kfree_skb(skb); 
    9593        return NETDEV_TX_OK; 
    96 --  
    97 1.7.10.4 
    98  
  • trunk/target/linux/mediatek/patches-4.4/0072-net-mediatek-move-the-pending_work-struct-to-the-dev.patch

    r49132 r49176  
    1414 2 files changed, 6 insertions(+), 8 deletions(-) 
    1515 
    16 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    17 index 67b18f9..bbcd607 100644 
    1816--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    1917+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c 
    20 @@ -1193,7 +1193,7 @@ static void mtk_tx_timeout(struct net_device *dev) 
     18@@ -1193,7 +1193,7 @@ static void mtk_tx_timeout(struct net_de 
    2119        eth->netdev[mac->id]->stats.tx_errors++; 
    2220        netif_err(eth, tx_err, dev, 
     
    2725  
    2826 static irqreturn_t mtk_handle_irq(int irq, void *_eth) 
    29 @@ -1438,7 +1438,7 @@ static void mtk_pending_work(struct work_struct *work) 
     27@@ -1438,7 +1438,7 @@ static void mtk_pending_work(struct work 
    3028  
    3129        /* stop all devices to make sure that dma is properly shut down */ 
     
    3634                mtk_stop(eth->netdev[i]); 
    3735                __set_bit(i, &restart); 
    38 @@ -1464,15 +1464,13 @@ static int mtk_cleanup(struct mtk_eth *eth) 
     36@@ -1464,15 +1464,13 @@ static int mtk_cleanup(struct mtk_eth *e 
    3937        int i; 
    4038  
     
    5351        return 0; 
    5452 } 
    55 @@ -1660,7 +1658,6 @@ static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np) 
     53@@ -1660,7 +1658,6 @@ static int mtk_add_mac(struct mtk_eth *e 
    5654        mac->id = id; 
    5755        mac->hw = eth; 
     
    6159        mac->hw_stats = devm_kzalloc(eth->dev, 
    6260                                     sizeof(*mac->hw_stats), 
    63 @@ -1762,6 +1759,7 @@ static int mtk_probe(struct platform_device *pdev) 
     61@@ -1762,6 +1759,7 @@ static int mtk_probe(struct platform_dev 
    6462  
    6563        eth->dev = &pdev->dev; 
     
    6967        err = mtk_hw_init(eth); 
    7068        if (err) 
    71 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/drivers/net/ethernet/mediatek/mtk_eth_soc.h 
    72 index 48a5292..eed626d 100644 
    7369--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h 
    7470+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h 
     
    105101  
    106102 /* the struct describing the SoC. these are declared in the soc_xyz.c files */ 
    107 --  
    108 1.7.10.4 
    109  
  • trunk/target/linux/mediatek/patches-4.4/0100-block2mtd.patch

    r49067 r49176  
    1010 struct block2mtd_dev { 
    1111        struct list_head list; 
    12 @@ -227,6 +229,7 @@ 
     12@@ -227,6 +229,7 @@ static struct block2mtd_dev *add_device( 
    1313 #endif 
    1414        const fmode_t mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; 
     
    1818        struct mtd_partition *part; 
    1919        char *name; 
    20 @@ -307,11 +310,7 @@ 
     20@@ -307,11 +310,7 @@ static struct block2mtd_dev *add_device( 
    2121        dev->mtd.priv = dev; 
    2222        dev->mtd.owner = THIS_MODULE; 
  • trunk/target/linux/ramips/patches-4.4/0054-mtd-add-chunked-read-io-to-m25p80.patch

    r48951 r49176  
    11--- a/drivers/mtd/spi-nor/spi-nor.c 
    22+++ b/drivers/mtd/spi-nor/spi-nor.c 
    3 @@ -1011,6 +1011,66 @@ write_err: 
     3@@ -1008,6 +1008,66 @@ write_err: 
    44        return ret; 
    55 } 
     
    6868 { 
    6969        int ret, val; 
    70 @@ -1232,10 +1292,12 @@ int spi_nor_scan(struct spi_nor *nor, co 
     70@@ -1229,10 +1289,12 @@ int spi_nor_scan(struct spi_nor *nor, co 
    7171        } 
    7272  
     
    8383        if (info->flags & USE_FSR) 
    8484                nor->flags |= SNOR_F_USE_FSR; 
    85 @@ -1263,11 +1325,20 @@ int spi_nor_scan(struct spi_nor *nor, co 
     85@@ -1260,11 +1322,20 @@ int spi_nor_scan(struct spi_nor *nor, co 
    8686        mtd->writebufsize = nor->page_size; 
    8787  
Note: See TracChangeset for help on using the changeset viewer.