Changeset 47694


Ignore:
Timestamp:
2015-12-02T22:52:41+01:00 (22 months ago)
Author:
hauke
Message:

kernel: update 4.1 to 4.1.13

  • two upstreamed patches removed
  • compile tested all targets using 4.1
  • run tested ar71xx

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

Location:
trunk
Files:
2 deleted
91 edited

Legend:

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

    r47384 r47694  
    55LINUX_VERSION-3.18 = .23 
    66LINUX_VERSION-4.0 = .9 
    7 LINUX_VERSION-4.1 = .11 
     7LINUX_VERSION-4.1 = .13 
    88LINUX_VERSION-4.3 = 
    99 
    1010LINUX_KERNEL_MD5SUM-3.18.23 = dc6d265ab38716be3676ac294b481ad8 
    1111LINUX_KERNEL_MD5SUM-4.0.9 = 40fc5f6e2d718e539b45e6601c71985b 
    12 LINUX_KERNEL_MD5SUM-4.1.11 = 63e5981e38f935772a5309289fe76972 
     12LINUX_KERNEL_MD5SUM-4.1.13 = af9dd5d8f71185a64a8eccface15fc00 
    1313LINUX_KERNEL_MD5SUM-4.3 = 58b35794eee3b6d52ce7be39357801e7 
    1414 
  • trunk/target/linux/ar71xx/patches-4.1/911-MIPS-ath79-add-gl_ar150.patch

    r47620 r47694  
    11--- a/arch/mips/ath79/Kconfig 
    22+++ b/arch/mips/ath79/Kconfig 
    3 @@ -577,6 +577,16 @@ config ATH79_MACH_EL_MINI 
     3@@ -586,6 +586,16 @@ config ATH79_MACH_EL_MINI 
    44        select ATH79_DEV_USB 
    55        select ATH79_DEV_WMAC 
     
    2020--- a/arch/mips/ath79/Makefile 
    2121+++ b/arch/mips/ath79/Makefile 
    22 @@ -83,6 +83,7 @@ obj-$(CONFIG_ATH79_MACH_EL_MINI)      += mach 
     22@@ -84,6 +84,7 @@ obj-$(CONFIG_ATH79_MACH_EL_MINI)      += mach 
    2323 obj-$(CONFIG_ATH79_MACH_EPG5000)       += mach-epg5000.o 
    2424 obj-$(CONFIG_ATH79_MACH_ESR1750)       += mach-esr1750.o 
     
    3030--- a/arch/mips/ath79/machtypes.h 
    3131+++ b/arch/mips/ath79/machtypes.h 
    32 @@ -72,6 +72,7 @@ enum ath79_mach_type { 
     32@@ -73,6 +73,7 @@ enum ath79_mach_type { 
    3333        ATH79_MACH_ESR1750,             /* EnGenius ESR1750 */ 
    3434        ATH79_MACH_EPG5000,             /* EnGenius EPG5000 */ 
  • trunk/target/linux/ar71xx/patches-4.1/912-MIPS-ath79-add-gl_ar300.patch

    r47621 r47694  
    11--- a/arch/mips/ath79/Kconfig 
    22+++ b/arch/mips/ath79/Kconfig 
    3 @@ -587,6 +587,16 @@ config ATH79_MACH_GL_AR150 
     3@@ -596,6 +596,16 @@ config ATH79_MACH_GL_AR150 
    44        select ATH79_DEV_USB 
    55        select ATH79_DEV_WMAC 
     
    2020--- a/arch/mips/ath79/Makefile 
    2121+++ b/arch/mips/ath79/Makefile 
    22 @@ -84,6 +84,7 @@ obj-$(CONFIG_ATH79_MACH_EPG5000)      += mach 
     22@@ -85,6 +85,7 @@ obj-$(CONFIG_ATH79_MACH_EPG5000)      += mach 
    2323 obj-$(CONFIG_ATH79_MACH_ESR1750)       += mach-esr1750.o 
    2424 obj-$(CONFIG_ATH79_MACH_F9K1115V2)     += mach-f9k1115v2.o 
     
    3030--- a/arch/mips/ath79/machtypes.h 
    3131+++ b/arch/mips/ath79/machtypes.h 
    32 @@ -73,6 +73,7 @@ enum ath79_mach_type { 
     32@@ -74,6 +74,7 @@ enum ath79_mach_type { 
    3333        ATH79_MACH_EPG5000,             /* EnGenius EPG5000 */ 
    3434        ATH79_MACH_F9K1115V2,           /* Belkin AC1750DB */ 
  • trunk/target/linux/ar71xx/patches-4.1/913-MIPS-ath79-add-domino-support.patch

    r47622 r47694  
    11--- a/arch/mips/ath79/Kconfig 
    22+++ b/arch/mips/ath79/Kconfig 
    3 @@ -597,6 +597,16 @@ config ATH79_MACH_GL_AR300 
     3@@ -606,6 +606,16 @@ config ATH79_MACH_GL_AR300 
    44        select ATH79_DEV_USB 
    55        select ATH79_DEV_WMAC 
     
    2020--- a/arch/mips/ath79/Makefile 
    2121+++ b/arch/mips/ath79/Makefile 
    22 @@ -85,6 +85,7 @@ obj-$(CONFIG_ATH79_MACH_ESR1750)      += mach 
     22@@ -86,6 +86,7 @@ obj-$(CONFIG_ATH79_MACH_ESR1750)      += mach 
    2323 obj-$(CONFIG_ATH79_MACH_F9K1115V2)     += mach-f9k1115v2.o 
    2424 obj-$(CONFIG_ATH79_MACH_GL_AR150)   += mach-gl-ar150.o 
     
    3030--- a/arch/mips/ath79/machtypes.h 
    3131+++ b/arch/mips/ath79/machtypes.h 
    32 @@ -74,6 +74,7 @@ enum ath79_mach_type { 
     32@@ -75,6 +75,7 @@ enum ath79_mach_type { 
    3333        ATH79_MACH_F9K1115V2,           /* Belkin AC1750DB */ 
    3434        ATH79_MACH_GL_AR150,    /* GL-AR150 support */ 
  • trunk/target/linux/brcm2708/patches-4.1/0032-Added-Device-IDs-for-August-DVB-T-205.patch

    r47258 r47694  
    1010--- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c 
    1111+++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c 
    12 @@ -1744,6 +1744,10 @@ static const struct usb_device_id rtl28x 
     12@@ -1755,6 +1755,10 @@ static const struct usb_device_id rtl28x 
    1313                &rtl28xxu_props, "Compro VideoMate U620F", NULL) }, 
    1414        { DVB_USB_DEVICE(USB_VID_KWORLD_2, 0xd394, 
  • trunk/target/linux/brcm2708/patches-4.1/0033-config-Enable-CONFIG_MEMCG-but-leave-it-disabled-due.patch

    r47258 r47694  
    4444--- a/mm/memcontrol.c 
    4545+++ b/mm/memcontrol.c 
    46 @@ -5388,6 +5388,7 @@ struct cgroup_subsys memory_cgrp_subsys 
     46@@ -5389,6 +5389,7 @@ struct cgroup_subsys memory_cgrp_subsys 
    4747        .dfl_cftypes = memory_files, 
    4848        .legacy_cftypes = mem_cgroup_legacy_files, 
  • trunk/target/linux/brcm47xx/patches-4.1/031-11-MIPS-BCM47xx-Simplify-handling-SPROM-revisions.patch

    r47484 r47694  
    2222 1 file changed, 9 insertions(+), 44 deletions(-) 
    2323 
    24 diff --git a/arch/mips/bcm47xx/sprom.c b/arch/mips/bcm47xx/sprom.c 
    25 index b0d62e7..2d5c7a7 100644 
    2624--- a/arch/mips/bcm47xx/sprom.c 
    2725+++ b/arch/mips/bcm47xx/sprom.c 
    28 @@ -200,6 +200,9 @@ static void bcm47xx_sprom_fill_auto(struct ssb_sprom *sprom, 
     26@@ -200,6 +200,9 @@ static void bcm47xx_sprom_fill_auto(stru 
    2927        const char *pre = prefix; 
    3028        bool fb = fallback; 
     
    3634        ENTRY(0xfffffffe, u32, pre, "boardflags", boardflags, 0, fb); 
    3735        ENTRY(0xfffffff0, u32, pre, "boardflags2", boardflags2, 0, fb); 
    38 @@ -412,27 +415,6 @@ static void bcm47xx_sprom_fill_auto(struct ssb_sprom *sprom, 
     36@@ -412,27 +415,6 @@ static void bcm47xx_sprom_fill_auto(stru 
    3937 } 
    4038 #undef ENTRY /* It's specififc, uses local variable, don't use it (again). */ 
     
    6462                                          const char *prefix, bool fallback) 
    6563 { 
    66 @@ -589,39 +571,22 @@ void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix, 
     64@@ -589,39 +571,22 @@ void bcm47xx_fill_sprom(struct ssb_sprom 
    6765  
    6866        nvram_read_u8(prefix, NULL, "sromrev", &sprom->revision, 0, fallback); 
     
    110108  
    111109        bcm47xx_sprom_fill_auto(sprom, prefix, fallback); 
    112 --  
    113 1.8.4.5 
    114  
  • trunk/target/linux/brcm47xx/patches-4.1/032-01-MIPS-BCM47xx-Use-kmemdup-rather-than-duplicating-its.patch

    r47484 r47694  
    2828 1 file changed, 1 insertion(+), 2 deletions(-) 
    2929 
    30 diff --git a/arch/mips/bcm47xx/buttons.c b/arch/mips/bcm47xx/buttons.c 
    31 index 08a4abf..52caa75 100644 
    3230--- a/arch/mips/bcm47xx/buttons.c 
    3331+++ b/arch/mips/bcm47xx/buttons.c 
    34 @@ -396,10 +396,9 @@ static int __init bcm47xx_buttons_copy(const struct gpio_keys_button *buttons, 
     32@@ -396,10 +396,9 @@ static int __init bcm47xx_buttons_copy(c 
    3533 { 
    3634        size_t size = nbuttons * sizeof(*buttons); 
     
    4442  
    4543        return 0; 
    46 --  
    47 1.8.4.5 
    48  
  • trunk/target/linux/brcm47xx/patches-4.1/033-01-MIPS-BCM47xx-Support-on-SoC-bus-in-SPROM-reading-fun.patch

    r47484 r47694  
    2222 1 file changed, 6 insertions(+), 2 deletions(-) 
    2323 
    24 diff --git a/arch/mips/bcm47xx/sprom.c b/arch/mips/bcm47xx/sprom.c 
    25 index 2d5c7a7..e19c1b9 100644 
    2624--- a/arch/mips/bcm47xx/sprom.c 
    2725+++ b/arch/mips/bcm47xx/sprom.c 
    28 @@ -610,14 +610,18 @@ static int bcm47xx_get_sprom_ssb(struct ssb_bus *bus, struct ssb_sprom *out) 
     26@@ -610,14 +610,18 @@ static int bcm47xx_get_sprom_ssb(struct 
    2927 { 
    3028        char prefix[10]; 
     
    4745                return -EINVAL; 
    4846        } 
    49 --  
    50 1.8.4.5 
    51  
  • trunk/target/linux/brcm47xx/patches-4.1/033-02-MIPS-BCM47xx-Fix-some-WARNINGs-pointed-in-sprom.c-by.patch

    r47484 r47694  
    2121 1 file changed, 16 insertions(+), 9 deletions(-) 
    2222 
    23 diff --git a/arch/mips/bcm47xx/sprom.c b/arch/mips/bcm47xx/sprom.c 
    24 index e19c1b9..43353db 100644 
    2523--- a/arch/mips/bcm47xx/sprom.c 
    2624+++ b/arch/mips/bcm47xx/sprom.c 
    27 @@ -60,9 +60,9 @@ static int get_nvram_var(const char *prefix, const char *postfix, 
     25@@ -60,9 +60,9 @@ static int get_nvram_var(const char *pre 
    2826 } 
    2927  
     
    3836        char buf[100];                                                  \ 
    3937        int err;                                                        \ 
    40 @@ -422,7 +422,10 @@ static void bcm47xx_fill_sprom_path_r4589(struct ssb_sprom *sprom, 
     38@@ -422,7 +422,10 @@ static void bcm47xx_fill_sprom_path_r458 
    4139        int i; 
    4240  
     
    5048                nvram_read_u8(prefix, postfix, "maxp2ga", 
    5149                              &pwr_info->maxpwr_2g, 0, fallback); 
    52 @@ -470,7 +473,10 @@ static void bcm47xx_fill_sprom_path_r45(struct ssb_sprom *sprom, 
     50@@ -470,7 +473,10 @@ static void bcm47xx_fill_sprom_path_r45( 
    5351        int i; 
    5452  
     
    6260                nvram_read_u16(prefix, postfix, "pa2gw3a", 
    6361                               &pwr_info->pa_2g[3], 0, fallback); 
    64 @@ -535,10 +541,11 @@ static void bcm47xx_fill_sprom_ethernet(struct ssb_sprom *sprom, 
     62@@ -535,10 +541,11 @@ static void bcm47xx_fill_sprom_ethernet( 
    6563        nvram_read_macaddr(prefix, "il0macaddr", sprom->il0mac, fallback); 
    6664  
     
    7876                u8 mac[6]; 
    7977  
    80 --  
    81 1.8.4.5 
    82  
  • trunk/target/linux/brcm47xx/patches-4.1/033-03-MIPS-BCM47xx-Fetch-board-info-directly-in-callback-f.patch

    r47484 r47694  
    2424 3 files changed, 18 insertions(+), 19 deletions(-) 
    2525 
    26 diff --git a/arch/mips/bcm47xx/setup.c b/arch/mips/bcm47xx/setup.c 
    27 index 17503a0..6d38948 100644 
    2826--- a/arch/mips/bcm47xx/setup.c 
    2927+++ b/arch/mips/bcm47xx/setup.c 
    30 @@ -105,11 +105,28 @@ static int bcm47xx_get_invariants(struct ssb_bus *bus, 
     28@@ -105,11 +105,28 @@ static int bcm47xx_get_invariants(struct 
    3129                                  struct ssb_init_invariants *iv) 
    3230 { 
     
    5856        memset(&iv->sprom, 0, sizeof(struct ssb_sprom)); 
    5957        bcm47xx_fill_sprom(&iv->sprom, NULL, false); 
    60 diff --git a/arch/mips/bcm47xx/sprom.c b/arch/mips/bcm47xx/sprom.c 
    61 index 43353db..a7e569c 100644 
    6258--- a/arch/mips/bcm47xx/sprom.c 
    6359+++ b/arch/mips/bcm47xx/sprom.c 
    64 @@ -599,19 +599,6 @@ void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix, 
     60@@ -599,19 +599,6 @@ void bcm47xx_fill_sprom(struct ssb_sprom 
    6561        bcm47xx_sprom_fill_auto(sprom, prefix, fallback); 
    6662 } 
     
    8278 static int bcm47xx_get_sprom_ssb(struct ssb_bus *bus, struct ssb_sprom *out) 
    8379 { 
    84 diff --git a/arch/mips/include/asm/mach-bcm47xx/bcm47xx.h b/arch/mips/include/asm/mach-bcm47xx/bcm47xx.h 
    85 index 1461c10..71e4096 100644 
    8680--- a/arch/mips/include/asm/mach-bcm47xx/bcm47xx.h 
    8781+++ b/arch/mips/include/asm/mach-bcm47xx/bcm47xx.h 
    88 @@ -48,11 +48,6 @@ extern enum bcm47xx_bus_type bcm47xx_bus_type; 
     82@@ -48,11 +48,6 @@ extern enum bcm47xx_bus_type bcm47xx_bus 
    8983 void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix, 
    9084                        bool fallback); 
     
    9892  
    9993 #endif /* __ASM_BCM47XX_H */ 
    100 --  
    101 1.8.4.5 
    102  
  • trunk/target/linux/generic/patches-4.1/142-mtd-spi-nor-include-mtd.h-header-for-struct-mtd_info.patch

    r47665 r47694  
    1818 1 file changed, 1 insertion(+), 2 deletions(-) 
    1919 
    20 diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h 
    21 index 7bed974..fac3f6f 100644 
    2220--- a/include/linux/mtd/spi-nor.h 
    2321+++ b/include/linux/mtd/spi-nor.h 
  • trunk/target/linux/generic/patches-4.1/192-USB-qcserial-Add-support-for-Quectel-EC20-Mini-PCIe-.patch

    r47624 r47694  
    6262 enum qcserial_layouts { 
    6363        QCSERIAL_G2K = 0,       /* Gobi 2000 */ 
    64 @@ -167,6 +169,38 @@ static const struct usb_device_id id_tab 
     64@@ -169,6 +171,38 @@ static const struct usb_device_id id_tab 
    6565 }; 
    6666 MODULE_DEVICE_TABLE(usb, id_table); 
     
    101101 { 
    102102        struct usb_host_interface *intf = serial->interface->cur_altsetting; 
    103 @@ -235,6 +269,11 @@ static int qcprobe(struct usb_serial *se 
     103@@ -237,6 +271,11 @@ static int qcprobe(struct usb_serial *se 
    104104                        altsetting = -1; 
    105105                break; 
  • trunk/target/linux/generic/patches-4.1/204-module_strip.patch

    r46112 r47694  
    110110--- a/kernel/module.c 
    111111+++ b/kernel/module.c 
    112 @@ -2681,6 +2681,7 @@ static struct module *setup_load_info(st 
     112@@ -2685,6 +2685,7 @@ static struct module *setup_load_info(st 
    113113  
    114114 static int check_modinfo(struct module *mod, struct load_info *info, int flags) 
     
    118118        int err; 
    119119  
    120 @@ -2706,6 +2707,7 @@ static int check_modinfo(struct module * 
     120@@ -2710,6 +2711,7 @@ static int check_modinfo(struct module * 
    121121                pr_warn("%s: module is from the staging directory, the quality " 
    122122                        "is unknown, you have been warned.\n", mod->name); 
  • trunk/target/linux/generic/patches-4.1/902-debloat_proc.patch

    r47252 r47694  
    11--- a/fs/locks.c 
    22+++ b/fs/locks.c 
    3 @@ -2676,6 +2676,8 @@ static const struct file_operations proc 
     3@@ -2674,6 +2674,8 @@ static const struct file_operations proc 
    44  
    55 static int __init proc_locks_init(void) 
  • trunk/target/linux/generic/patches-4.1/903-debloat_direct_io.patch

    r47252 r47694  
    2727--- a/include/linux/fs.h 
    2828+++ b/include/linux/fs.h 
    29 @@ -2647,6 +2647,7 @@ enum { 
     29@@ -2657,6 +2657,7 @@ enum { 
    3030        DIO_SKIP_DIO_COUNT = 0x08, 
    3131 }; 
     
    3535  
    3636 ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, 
    37 @@ -2654,6 +2655,18 @@ ssize_t __blockdev_direct_IO(struct kioc 
     37@@ -2664,6 +2665,18 @@ ssize_t __blockdev_direct_IO(struct kioc 
    3838                             loff_t offset, get_block_t get_block, 
    3939                             dio_iodone_t end_io, dio_submit_t submit_io, 
  • trunk/target/linux/mediatek/patches/0001-clk-make-strings-in-parent-name-arrays-const.patch

    r47354 r47694  
    2424 3 files changed, 7 insertions(+), 7 deletions(-) 
    2525 
    26 diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c 
    27 index 956b7e5..077f4c7 100644 
    2826--- a/drivers/clk/clk-composite.c 
    2927+++ b/drivers/clk/clk-composite.c 
    30 @@ -188,7 +188,7 @@ static void clk_composite_disable(struct clk_hw *hw) 
     28@@ -188,7 +188,7 @@ static void clk_composite_disable(struct 
    3129 } 
    3230  
     
    3735                        struct clk_hw *rate_hw, const struct clk_ops *rate_ops, 
    3836                        struct clk_hw *gate_hw, const struct clk_ops *gate_ops, 
    39 diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c 
    40 index 69a094c..1fa2a8d 100644 
    4137--- a/drivers/clk/clk-mux.c 
    4238+++ b/drivers/clk/clk-mux.c 
     
    5046                u8 clk_mux_flags, u32 *table, spinlock_t *lock) 
    5147 { 
    52 @@ -166,7 +166,7 @@ struct clk *clk_register_mux_table(struct device *dev, const char *name, 
     48@@ -166,7 +166,7 @@ struct clk *clk_register_mux_table(struc 
    5349 EXPORT_SYMBOL_GPL(clk_register_mux_table); 
    5450  
     
    5955                u8 clk_mux_flags, spinlock_t *lock) 
    6056 { 
    61 diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h 
    62 index df69531..ec609e5 100644 
    6357--- a/include/linux/clk-provider.h 
    6458+++ b/include/linux/clk-provider.h 
     
    9690                struct clk_hw *rate_hw, const struct clk_ops *rate_ops, 
    9791                struct clk_hw *gate_hw, const struct clk_ops *gate_ops, 
    98 --  
    99 1.7.10.4 
    100  
  • trunk/target/linux/mediatek/patches/0002-clk-mediatek-Add-initial-common-clock-support-for-Me.patch

    r47354 r47694  
    2727 create mode 100644 drivers/clk/mediatek/clk-pll.c 
    2828 
    29 diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile 
    30 index 3d00c25..d965b3f 100644 
    3129--- a/drivers/clk/Makefile 
    3230+++ b/drivers/clk/Makefile 
     
    3937 obj-$(CONFIG_ARCH_MMP)                 += mmp/ 
    4038 endif 
    41 diff --git a/drivers/clk/mediatek/Makefile b/drivers/clk/mediatek/Makefile 
    42 new file mode 100644 
    43 index 0000000..c384e97 
    4439--- /dev/null 
    4540+++ b/drivers/clk/mediatek/Makefile 
    4641@@ -0,0 +1 @@ 
    4742+obj-y += clk-mtk.o clk-pll.o clk-gate.o 
    48 diff --git a/drivers/clk/mediatek/clk-gate.c b/drivers/clk/mediatek/clk-gate.c 
    49 new file mode 100644 
    50 index 0000000..9d77ee3 
    5143--- /dev/null 
    5244+++ b/drivers/clk/mediatek/clk-gate.c 
     
    189181+       return clk; 
    190182+} 
    191 diff --git a/drivers/clk/mediatek/clk-gate.h b/drivers/clk/mediatek/clk-gate.h 
    192 new file mode 100644 
    193 index 0000000..6b6780b 
    194183--- /dev/null 
    195184+++ b/drivers/clk/mediatek/clk-gate.h 
     
    244233+ 
    245234+#endif /* __DRV_CLK_GATE_H */ 
    246 diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c 
    247 new file mode 100644 
    248 index 0000000..18444ae 
    249235--- /dev/null 
    250236+++ b/drivers/clk/mediatek/clk-mtk.c 
     
    470456+       } 
    471457+} 
    472 diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mtk.h 
    473 new file mode 100644 
    474 index 0000000..694fc39 
    475458--- /dev/null 
    476459+++ b/drivers/clk/mediatek/clk-mtk.h 
     
    635618+ 
    636619+#endif /* __DRV_CLK_MTK_H */ 
    637 diff --git a/drivers/clk/mediatek/clk-pll.c b/drivers/clk/mediatek/clk-pll.c 
    638 new file mode 100644 
    639 index 0000000..66154ca 
    640620--- /dev/null 
    641621+++ b/drivers/clk/mediatek/clk-pll.c 
     
    973953+                       __func__, r); 
    974954+} 
    975 --  
    976 1.7.10.4 
    977  
  • trunk/target/linux/mediatek/patches/0003-clk-mediatek-Add-reset-controller-support.patch

    r47354 r47694  
    2222 create mode 100644 drivers/clk/mediatek/reset.c 
    2323 
    24 diff --git a/drivers/clk/mediatek/Makefile b/drivers/clk/mediatek/Makefile 
    25 index c384e97..0b6f1c3 100644 
    2624--- a/drivers/clk/mediatek/Makefile 
    2725+++ b/drivers/clk/mediatek/Makefile 
     
    2927 obj-y += clk-mtk.o clk-pll.o clk-gate.o 
    3028+obj-$(CONFIG_RESET_CONTROLLER) += reset.o 
    31 diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mtk.h 
    32 index 694fc39..61035b9 100644 
    3329--- a/drivers/clk/mediatek/clk-mtk.h 
    3430+++ b/drivers/clk/mediatek/clk-mtk.h 
    35 @@ -156,4 +156,14 @@ void __init mtk_clk_register_plls(struct device_node *node, 
     31@@ -156,4 +156,14 @@ void __init mtk_clk_register_plls(struct 
    3632                const struct mtk_pll_data *plls, int num_plls, 
    3733                struct clk_onecell_data *clk_data); 
     
    4844+ 
    4945 #endif /* __DRV_CLK_MTK_H */ 
    50 diff --git a/drivers/clk/mediatek/reset.c b/drivers/clk/mediatek/reset.c 
    51 new file mode 100644 
    52 index 0000000..9e9fe4b 
    5346--- /dev/null 
    5447+++ b/drivers/clk/mediatek/reset.c 
     
    151144+       } 
    152145+} 
    153 --  
    154 1.7.10.4 
    155  
  • trunk/target/linux/mediatek/patches/0004-clk-mediatek-Add-basic-clocks-for-Mediatek-MT8135.patch

    r47354 r47694  
    2020 create mode 100644 include/dt-bindings/reset-controller/mt8135-resets.h 
    2121 
    22 diff --git a/drivers/clk/mediatek/Makefile b/drivers/clk/mediatek/Makefile 
    23 index 0b6f1c3..12ce576 100644 
    2422--- a/drivers/clk/mediatek/Makefile 
    2523+++ b/drivers/clk/mediatek/Makefile 
     
    2826 obj-$(CONFIG_RESET_CONTROLLER) += reset.o 
    2927+obj-y += clk-mt8135.o 
    30 diff --git a/drivers/clk/mediatek/clk-mt8135.c b/drivers/clk/mediatek/clk-mt8135.c 
    31 new file mode 100644 
    32 index 0000000..a63435b 
    3328--- /dev/null 
    3429+++ b/drivers/clk/mediatek/clk-mt8135.c 
     
    678673+CLK_OF_DECLARE(mtk_apmixedsys, "mediatek,mt8135-apmixedsys", 
    679674+               mtk_apmixedsys_init); 
    680 diff --git a/include/dt-bindings/clock/mt8135-clk.h b/include/dt-bindings/clock/mt8135-clk.h 
    681 new file mode 100644 
    682 index 0000000..6dac6c0 
    683675--- /dev/null 
    684676+++ b/include/dt-bindings/clock/mt8135-clk.h 
     
    878870+ 
    879871+#endif /* _DT_BINDINGS_CLK_MT8135_H */ 
    880 diff --git a/include/dt-bindings/reset-controller/mt8135-resets.h b/include/dt-bindings/reset-controller/mt8135-resets.h 
    881 new file mode 100644 
    882 index 0000000..1fb6295 
    883872--- /dev/null 
    884873+++ b/include/dt-bindings/reset-controller/mt8135-resets.h 
     
    948937+ 
    949938+#endif  /* _DT_BINDINGS_RESET_CONTROLLER_MT8135 */ 
    950 --  
    951 1.7.10.4 
    952  
  • trunk/target/linux/mediatek/patches/0005-clk-mediatek-Add-basic-clocks-for-Mediatek-MT8173.patch

    r47354 r47694  
    2020 create mode 100644 include/dt-bindings/reset-controller/mt8173-resets.h 
    2121 
    22 diff --git a/drivers/clk/mediatek/Makefile b/drivers/clk/mediatek/Makefile 
    23 index 12ce576..8e4b2a4 100644 
    2422--- a/drivers/clk/mediatek/Makefile 
    2523+++ b/drivers/clk/mediatek/Makefile 
     
    2927 obj-y += clk-mt8135.o 
    3028+obj-y += clk-mt8173.o 
    31 diff --git a/drivers/clk/mediatek/clk-mt8173.c b/drivers/clk/mediatek/clk-mt8173.c 
    32 new file mode 100644 
    33 index 0000000..357b080 
    3429--- /dev/null 
    3530+++ b/drivers/clk/mediatek/clk-mt8173.c 
     
    865860+CLK_OF_DECLARE(mtk_apmixedsys, "mediatek,mt8173-apmixedsys", 
    866861+               mtk_apmixedsys_init); 
    867 diff --git a/include/dt-bindings/clock/mt8173-clk.h b/include/dt-bindings/clock/mt8173-clk.h 
    868 new file mode 100644 
    869 index 0000000..4ad76ed 
    870862--- /dev/null 
    871863+++ b/include/dt-bindings/clock/mt8173-clk.h 
     
    11061098+ 
    11071099+#endif /* _DT_BINDINGS_CLK_MT8173_H */ 
    1108 diff --git a/include/dt-bindings/reset-controller/mt8173-resets.h b/include/dt-bindings/reset-controller/mt8173-resets.h 
    1109 new file mode 100644 
    1110 index 0000000..9464b37 
    11111100--- /dev/null 
    11121101+++ b/include/dt-bindings/reset-controller/mt8173-resets.h 
     
    11751164+ 
    11761165+#endif  /* _DT_BINDINGS_RESET_CONTROLLER_MT8173 */ 
    1177 --  
    1178 1.7.10.4 
    1179  
  • trunk/target/linux/mediatek/patches/0006-soc-mediatek-Add-infracfg-misc-driver-support.patch

    r47354 r47694  
    1919 create mode 100644 include/linux/soc/mediatek/infracfg.h 
    2020 
    21 diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig 
    22 index 3c18503..09da41e 100644 
    2321--- a/drivers/soc/mediatek/Kconfig 
    2422+++ b/drivers/soc/mediatek/Kconfig 
     
    3937        tristate "MediaTek PMIC Wrapper Support" 
    4038        depends on ARCH_MEDIATEK 
    41 diff --git a/drivers/soc/mediatek/Makefile b/drivers/soc/mediatek/Makefile 
    42 index ecaf4de..3fa940f 100644 
    4339--- a/drivers/soc/mediatek/Makefile 
    4440+++ b/drivers/soc/mediatek/Makefile 
     
    4642+obj-$(CONFIG_MTK_INFRACFG) += mtk-infracfg.o 
    4743 obj-$(CONFIG_MTK_PMIC_WRAP) += mtk-pmic-wrap.o 
    48 diff --git a/drivers/soc/mediatek/mtk-infracfg.c b/drivers/soc/mediatek/mtk-infracfg.c 
    49 new file mode 100644 
    50 index 0000000..ca786e0 
    5144--- /dev/null 
    5245+++ b/drivers/soc/mediatek/mtk-infracfg.c 
     
    143136+       return 0; 
    144137+} 
    145 diff --git a/include/linux/soc/mediatek/infracfg.h b/include/linux/soc/mediatek/infracfg.h 
    146 new file mode 100644 
    147 index 0000000..a5714e9 
    148138--- /dev/null 
    149139+++ b/include/linux/soc/mediatek/infracfg.h 
     
    175165+ 
    176166+#endif /* __SOC_MEDIATEK_INFRACFG_H */ 
    177 --  
    178 1.7.10.4 
    179  
  • trunk/target/linux/mediatek/patches/0007-dt-bindings-soc-Add-documentation-for-the-MediaTek-S.patch

    r47354 r47694  
    1313 create mode 100644 Documentation/devicetree/bindings/soc/mediatek/scpsys.txt 
    1414 
    15 diff --git a/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt b/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt 
    16 new file mode 100644 
    17 index 0000000..87f2091 
    1815--- /dev/null 
    1916+++ b/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt 
     
    5350+               power-domains = <&scpsys MT8173_POWER_DOMAIN_AUDIO>; 
    5451+       }; 
    55 --  
    56 1.7.10.4 
    57  
  • trunk/target/linux/mediatek/patches/0008-soc-Mediatek-Add-SCPSYS-power-domain-driver.patch

    r47354 r47694  
    2727 create mode 100644 include/dt-bindings/power/mt8173-power.h 
    2828 
    29 diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig 
    30 index 09da41e..2dc5d90 100644 
    3129--- a/drivers/soc/mediatek/Kconfig 
    3230+++ b/drivers/soc/mediatek/Kconfig 
     
    4442+         Say yes here to add support for the MediaTek SCPSYS power domain 
    4543+         driver. 
    46 diff --git a/drivers/soc/mediatek/Makefile b/drivers/soc/mediatek/Makefile 
    47 index 3fa940f..12998b0 100644 
    4844--- a/drivers/soc/mediatek/Makefile 
    4945+++ b/drivers/soc/mediatek/Makefile 
     
    5248 obj-$(CONFIG_MTK_PMIC_WRAP) += mtk-pmic-wrap.o 
    5349+obj-$(CONFIG_MTK_SCPSYS) += mtk-scpsys.o 
    54 diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c 
    55 new file mode 100644 
    56 index 0000000..b9eed37 
    5750--- /dev/null 
    5851+++ b/drivers/soc/mediatek/mtk-scpsys.c 
     
    548541+ 
    549542+module_platform_driver_probe(scpsys_drv, scpsys_probe); 
    550 diff --git a/include/dt-bindings/power/mt8173-power.h b/include/dt-bindings/power/mt8173-power.h 
    551 new file mode 100644 
    552 index 0000000..b34cee9 
    553543--- /dev/null 
    554544+++ b/include/dt-bindings/power/mt8173-power.h 
     
    569559+ 
    570560+#endif /* _DT_BINDINGS_POWER_MT8183_POWER_H */ 
    571 --  
    572 1.7.10.4 
    573  
  • trunk/target/linux/mediatek/patches/0009-dt-bindings-ARM-Mediatek-Document-devicetree-binding.patch

    r47354 r47694  
    2020 create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt 
    2121 
    22 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt 
    23 new file mode 100644 
    24 index 0000000..5af6d73 
    2522--- /dev/null 
    2623+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt 
     
    4946+       #clock-cells = <1>; 
    5047+}; 
    51 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt 
    52 new file mode 100644 
    53 index 0000000..684da473 
    5448--- /dev/null 
    5549+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt 
     
    8579+       #reset-cells = <1>; 
    8680+}; 
    87 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt 
    88 new file mode 100644 
    89 index 0000000..fdb45c6 
    9081--- /dev/null 
    9182+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt 
     
    121112+       #reset-cells = <1>; 
    122113+}; 
    123 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt 
    124 new file mode 100644 
    125 index 0000000..a425248 
    126114--- /dev/null 
    127115+++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt 
     
    150138+       #clock-cells = <1>; 
    151139+}; 
    152 --  
    153 1.7.10.4 
    154  
  • trunk/target/linux/mediatek/patches/0010-thermal-consistently-use-int-for-temperatures.patch

    r47354 r47694  
    4343 29 files changed, 120 insertions(+), 134 deletions(-) 
    4444 
    45 diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c 
    46 index d24fa19..68bff60 100644 
    4745--- a/drivers/acpi/thermal.c 
    4846+++ b/drivers/acpi/thermal.c 
    49 @@ -529,8 +529,7 @@ static void acpi_thermal_check(void *data) 
     47@@ -529,8 +529,7 @@ static void acpi_thermal_check(void *dat 
    5048  
    5149 /* sys I/F for generic thermal sysfs support */ 
     
    5755        struct acpi_thermal *tz = thermal->devdata; 
    5856        int result; 
    59 @@ -637,7 +636,7 @@ static int thermal_get_trip_type(struct thermal_zone_device *thermal, 
     57@@ -637,7 +636,7 @@ static int thermal_get_trip_type(struct 
    6058 } 
    6159  
     
    6664        struct acpi_thermal *tz = thermal->devdata; 
    6765        int i; 
    68 @@ -690,7 +689,8 @@ static int thermal_get_trip_temp(struct thermal_zone_device *thermal, 
     66@@ -690,7 +689,8 @@ static int thermal_get_trip_temp(struct 
    6967 } 
    7068  
     
    7674  
    7775        if (tz->trips.critical.flags.valid) { 
    78 @@ -713,8 +713,8 @@ static int thermal_get_trend(struct thermal_zone_device *thermal, 
     76@@ -713,8 +713,8 @@ static int thermal_get_trend(struct ther 
    7977                return -EINVAL; 
    8078  
     
    8785                if (thermal_get_trip_temp(thermal, trip, &trip_temp)) 
    8886                        return -EINVAL; 
    89 diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c 
    90 index fe41d5a..e4e57bb 100644 
    9187--- a/drivers/hwmon/lm75.c 
    9288+++ b/drivers/hwmon/lm75.c 
    93 @@ -104,7 +104,7 @@ static inline long lm75_reg_to_mc(s16 temp, u8 resolution) 
     89@@ -104,7 +104,7 @@ static inline long lm75_reg_to_mc(s16 te 
    9490  
    9591 /* sysfs attributes for hwmon */ 
     
    10096        struct lm75_data *data = lm75_update_device(dev); 
    10197  
    102 diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c 
    103 index 6880011..3d9eab9 100644 
    10498--- a/drivers/hwmon/ntc_thermistor.c 
    10599+++ b/drivers/hwmon/ntc_thermistor.c 
    106 @@ -439,7 +439,7 @@ static int ntc_thermistor_get_ohm(struct ntc_data *data) 
     100@@ -439,7 +439,7 @@ static int ntc_thermistor_get_ohm(struct 
    107101        return -EINVAL; 
    108102 } 
     
    113107        struct ntc_data *data = dev_get_drvdata(dev); 
    114108        int ohm; 
    115 diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c 
    116 index 9da2735..6548262 100644 
    117109--- a/drivers/hwmon/tmp102.c 
    118110+++ b/drivers/hwmon/tmp102.c 
    119 @@ -98,7 +98,7 @@ static struct tmp102 *tmp102_update_device(struct device *dev) 
     111@@ -98,7 +98,7 @@ static struct tmp102 *tmp102_update_devi 
    120112        return tmp102; 
    121113 } 
     
    126118        struct tmp102 *tmp102 = tmp102_update_device(dev); 
    127119  
    128 diff --git a/drivers/input/touchscreen/sun4i-ts.c b/drivers/input/touchscreen/sun4i-ts.c 
    129 index c011699..4857943 100644 
    130120--- a/drivers/input/touchscreen/sun4i-ts.c 
    131121+++ b/drivers/input/touchscreen/sun4i-ts.c 
    132 @@ -191,7 +191,7 @@ static void sun4i_ts_close(struct input_dev *dev) 
     122@@ -191,7 +191,7 @@ static void sun4i_ts_close(struct input_ 
    133123        writel(TEMP_IRQ_EN(1), ts->base + TP_INT_FIFOC); 
    134124 } 
     
    139129        /* No temp_data until the first irq */ 
    140130        if (ts->temp_data == -1) 
    141 @@ -202,7 +202,7 @@ static int sun4i_get_temp(const struct sun4i_ts_data *ts, long *temp) 
     131@@ -202,7 +202,7 @@ static int sun4i_get_temp(const struct s 
    142132        return 0; 
    143133 } 
     
    148138        return sun4i_get_temp(data, temp); 
    149139 } 
    150 @@ -215,14 +215,14 @@ static ssize_t show_temp(struct device *dev, struct device_attribute *devattr, 
     140@@ -215,14 +215,14 @@ static ssize_t show_temp(struct device * 
    151141                         char *buf) 
    152142 { 
     
    165155  
    166156 static ssize_t show_temp_label(struct device *dev, 
    167 diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c 
    168 index 594c918..f2ce63c 100644 
    169157--- a/drivers/platform/x86/acerhdf.c 
    170158+++ b/drivers/platform/x86/acerhdf.c 
    171 @@ -346,8 +346,7 @@ static void acerhdf_check_param(struct thermal_zone_device *thermal) 
     159@@ -346,8 +346,7 @@ static void acerhdf_check_param(struct t 
    172160  * as late as the polling interval is since we can't do that in the respective 
    173161  * accessors of the module parameters. 
     
    179167        int temp, err = 0; 
    180168  
    181 @@ -452,7 +451,7 @@ static int acerhdf_get_trip_type(struct thermal_zone_device *thermal, int trip, 
     169@@ -452,7 +451,7 @@ static int acerhdf_get_trip_type(struct 
    182170 } 
    183171  
     
    188176        if (trip != 0) 
    189177                return -EINVAL; 
    190 @@ -463,7 +462,7 @@ static int acerhdf_get_trip_hyst(struct thermal_zone_device *thermal, int trip, 
     178@@ -463,7 +462,7 @@ static int acerhdf_get_trip_hyst(struct 
    191179 } 
    192180  
     
    197185        if (trip == 0) 
    198186                *temp = fanon; 
    199 @@ -476,7 +475,7 @@ static int acerhdf_get_trip_temp(struct thermal_zone_device *thermal, int trip, 
     187@@ -476,7 +475,7 @@ static int acerhdf_get_trip_temp(struct 
    200188 } 
    201189  
     
    206194        *temperature = ACERHDF_TEMP_CRIT; 
    207195        return 0; 
    208 diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c 
    209 index 2ed4a4a..87e2fd1 100644 
    210196--- a/drivers/power/power_supply_core.c 
    211197+++ b/drivers/power/power_supply_core.c 
    212 @@ -492,7 +492,7 @@ EXPORT_SYMBOL_GPL(power_supply_unreg_notifier); 
     198@@ -518,7 +518,7 @@ EXPORT_SYMBOL_GPL(power_supply_unreg_not 
    213199  
    214200 #ifdef CONFIG_THERMAL 
     
    219205        struct power_supply *psy; 
    220206        union power_supply_propval val; 
    221 diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c 
    222 index 01255fd..26b8d32 100644 
    223207--- a/drivers/thermal/armada_thermal.c 
    224208+++ b/drivers/thermal/armada_thermal.c 
    225 @@ -155,7 +155,7 @@ static bool armada_is_valid(struct armada_thermal_priv *priv) 
     209@@ -155,7 +155,7 @@ static bool armada_is_valid(struct armad 
    226210 } 
    227211  
     
    232216        struct armada_thermal_priv *priv = thermal->devdata; 
    233217        unsigned long reg; 
    234 diff --git a/drivers/thermal/db8500_thermal.c b/drivers/thermal/db8500_thermal.c 
    235 index 20adfbe..b3eca71 100644 
    236218--- a/drivers/thermal/db8500_thermal.c 
    237219+++ b/drivers/thermal/db8500_thermal.c 
    238 @@ -107,8 +107,7 @@ static int db8500_cdev_unbind(struct thermal_zone_device *thermal, 
     220@@ -107,8 +107,7 @@ static int db8500_cdev_unbind(struct the 
    239221 } 
    240222  
     
    246228        struct db8500_thermal_zone *pzone = thermal->devdata; 
    247229  
    248 @@ -180,7 +179,7 @@ static int db8500_sys_get_trip_type(struct thermal_zone_device *thermal, 
     230@@ -180,7 +179,7 @@ static int db8500_sys_get_trip_type(stru 
    249231  
    250232 /* Callback to get trip point temperature */ 
     
    255237        struct db8500_thermal_zone *pzone = thermal->devdata; 
    256238        struct db8500_thsens_platform_data *ptrips = pzone->trip_tab; 
    257 @@ -195,7 +194,7 @@ static int db8500_sys_get_trip_temp(struct thermal_zone_device *thermal, 
     239@@ -195,7 +194,7 @@ static int db8500_sys_get_trip_temp(stru 
    258240  
    259241 /* Callback to get critical trip point temperature */ 
     
    264246        struct db8500_thermal_zone *pzone = thermal->devdata; 
    265247        struct db8500_thsens_platform_data *ptrips = pzone->trip_tab; 
    266 diff --git a/drivers/thermal/dove_thermal.c b/drivers/thermal/dove_thermal.c 
    267 index 09f6e30..a0bc9de 100644 
    268248--- a/drivers/thermal/dove_thermal.c 
    269249+++ b/drivers/thermal/dove_thermal.c 
    270 @@ -93,7 +93,7 @@ static int dove_init_sensor(const struct dove_thermal_priv *priv) 
     250@@ -93,7 +93,7 @@ static int dove_init_sensor(const struct 
    271251 } 
    272252  
     
    277257        unsigned long reg; 
    278258        struct dove_thermal_priv *priv = thermal->devdata; 
    279 diff --git a/drivers/thermal/fair_share.c b/drivers/thermal/fair_share.c 
    280 index 6e0a3fb..efad70e 100644 
    281259--- a/drivers/thermal/fair_share.c 
    282260+++ b/drivers/thermal/fair_share.c 
     
    290268  
    291269        if (tz->trips == 0 || !tz->ops->get_trip_temp) 
    292 diff --git a/drivers/thermal/gov_bang_bang.c b/drivers/thermal/gov_bang_bang.c 
    293 index c5dd76b..70836c5 100644 
    294270--- a/drivers/thermal/gov_bang_bang.c 
    295271+++ b/drivers/thermal/gov_bang_bang.c 
     
    311287                                trip_hyst); 
    312288  
    313 diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c 
    314 index 2ccbc07..f1424f0 100644 
    315289--- a/drivers/thermal/imx_thermal.c 
    316290+++ b/drivers/thermal/imx_thermal.c 
     
    339313        struct regmap *map = data->tempmon; 
    340314        int critical_value; 
    341 @@ -121,7 +121,7 @@ static void imx_set_panic_temp(struct imx_thermal_data *data, 
     315@@ -121,7 +121,7 @@ static void imx_set_panic_temp(struct im 
    342316 } 
    343317  
     
    348322        struct regmap *map = data->tempmon; 
    349323        int alarm_value; 
    350 @@ -133,7 +133,7 @@ static void imx_set_alarm_temp(struct imx_thermal_data *data, 
     324@@ -133,7 +133,7 @@ static void imx_set_alarm_temp(struct im 
    351325                        TEMPSENSE0_ALARM_VALUE_SHIFT); 
    352326 } 
     
    357331        struct imx_thermal_data *data = tz->devdata; 
    358332        struct regmap *map = data->tempmon; 
    359 @@ -189,13 +189,13 @@ static int imx_get_temp(struct thermal_zone_device *tz, unsigned long *temp) 
     333@@ -189,13 +189,13 @@ static int imx_get_temp(struct thermal_z 
    360334                if (data->alarm_temp == data->temp_critical && 
    361335                        *temp < data->temp_passive) { 
     
    373347        } 
    374348  
    375 @@ -262,8 +262,7 @@ static int imx_get_trip_type(struct thermal_zone_device *tz, int trip, 
     349@@ -262,8 +262,7 @@ static int imx_get_trip_type(struct ther 
    376350        return 0; 
    377351 } 
     
    383357        struct imx_thermal_data *data = tz->devdata; 
    384358  
    385 @@ -272,7 +271,7 @@ static int imx_get_crit_temp(struct thermal_zone_device *tz, 
     359@@ -272,7 +271,7 @@ static int imx_get_crit_temp(struct ther 
    386360 } 
    387361  
     
    392366        struct imx_thermal_data *data = tz->devdata; 
    393367  
    394 @@ -282,7 +281,7 @@ static int imx_get_trip_temp(struct thermal_zone_device *tz, int trip, 
     368@@ -282,7 +281,7 @@ static int imx_get_trip_temp(struct ther 
    395369 } 
    396370  
     
    401375        struct imx_thermal_data *data = tz->devdata; 
    402376  
    403 @@ -433,7 +432,7 @@ static irqreturn_t imx_thermal_alarm_irq_thread(int irq, void *dev) 
     377@@ -433,7 +432,7 @@ static irqreturn_t imx_thermal_alarm_irq 
    404378 { 
    405379        struct imx_thermal_data *data = dev; 
     
    410384  
    411385        thermal_zone_device_update(data->tz); 
    412 diff --git a/drivers/thermal/int340x_thermal/int340x_thermal_zone.c b/drivers/thermal/int340x_thermal/int340x_thermal_zone.c 
    413 index 1e25133..b9b2666 100644 
    414386--- a/drivers/thermal/int340x_thermal/int340x_thermal_zone.c 
    415387+++ b/drivers/thermal/int340x_thermal/int340x_thermal_zone.c 
     
    423395        struct int34x_thermal_zone *d = zone->devdata; 
    424396        unsigned long long tmp; 
    425 @@ -49,7 +49,7 @@ static int int340x_thermal_get_zone_temp(struct thermal_zone_device *zone, 
     397@@ -49,7 +49,7 @@ static int int340x_thermal_get_zone_temp 
    426398 } 
    427399  
     
    432404        struct int34x_thermal_zone *d = zone->devdata; 
    433405        int i; 
    434 @@ -114,7 +114,7 @@ static int int340x_thermal_get_trip_type(struct thermal_zone_device *zone, 
     406@@ -114,7 +114,7 @@ static int int340x_thermal_get_trip_type 
    435407 } 
    436408  
     
    441413        struct int34x_thermal_zone *d = zone->devdata; 
    442414        acpi_status status; 
    443 @@ -136,7 +136,7 @@ static int int340x_thermal_set_trip_temp(struct thermal_zone_device *zone, 
     415@@ -136,7 +136,7 @@ static int int340x_thermal_set_trip_temp 
    444416  
    445417  
     
    450422        struct int34x_thermal_zone *d = zone->devdata; 
    451423        acpi_status status; 
    452 @@ -163,7 +163,7 @@ static struct thermal_zone_device_ops int340x_thermal_zone_ops = { 
     424@@ -163,7 +163,7 @@ static struct thermal_zone_device_ops in 
    453425 }; 
    454426  
     
    459431        unsigned long long r; 
    460432        acpi_status status; 
    461 diff --git a/drivers/thermal/int340x_thermal/int340x_thermal_zone.h b/drivers/thermal/int340x_thermal/int340x_thermal_zone.h 
    462 index 9f38ab7..aaadf72 100644 
    463433--- a/drivers/thermal/int340x_thermal/int340x_thermal_zone.h 
    464434+++ b/drivers/thermal/int340x_thermal/int340x_thermal_zone.h 
     
    487457        struct thermal_zone_device *zone; 
    488458        struct thermal_zone_device_ops *override_ops; 
    489 diff --git a/drivers/thermal/intel_soc_dts_thermal.c b/drivers/thermal/intel_soc_dts_thermal.c 
    490 index 9013505..fd550b9 100644 
    491459--- a/drivers/thermal/intel_soc_dts_thermal.c 
    492460+++ b/drivers/thermal/intel_soc_dts_thermal.c 
     
    509477        struct soc_sensor_entry *aux_entry = tzd->devdata; 
    510478        int status; 
    511 @@ -250,8 +250,7 @@ static int sys_get_trip_type(struct thermal_zone_device *thermal, 
     479@@ -250,8 +250,7 @@ static int sys_get_trip_type(struct ther 
    512480        return 0; 
    513481 } 
     
    519487        int status; 
    520488        u32 out; 
    521 diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c 
    522 index 668fb1b..03839df 100644 
    523489--- a/drivers/thermal/of-thermal.c 
    524490+++ b/drivers/thermal/of-thermal.c 
     
    532498        struct __thermal_zone *data = tz->devdata; 
    533499  
    534 @@ -173,7 +173,7 @@ EXPORT_SYMBOL_GPL(of_thermal_get_trip_points); 
     500@@ -173,7 +173,7 @@ EXPORT_SYMBOL_GPL(of_thermal_get_trip_po 
    535501  * Return: zero on success, error code otherwise 
    536502  */ 
     
    541507        struct __thermal_zone *data = tz->devdata; 
    542508  
    543 @@ -306,7 +306,7 @@ static int of_thermal_get_trip_type(struct thermal_zone_device *tz, int trip, 
     509@@ -306,7 +306,7 @@ static int of_thermal_get_trip_type(stru 
    544510 } 
    545511  
     
    550516        struct __thermal_zone *data = tz->devdata; 
    551517  
    552 @@ -319,7 +319,7 @@ static int of_thermal_get_trip_temp(struct thermal_zone_device *tz, int trip, 
     518@@ -319,7 +319,7 @@ static int of_thermal_get_trip_temp(stru 
    553519 } 
    554520  
     
    559525        struct __thermal_zone *data = tz->devdata; 
    560526  
    561 @@ -333,7 +333,7 @@ static int of_thermal_set_trip_temp(struct thermal_zone_device *tz, int trip, 
     527@@ -333,7 +333,7 @@ static int of_thermal_set_trip_temp(stru 
    562528 } 
    563529  
     
    568534        struct __thermal_zone *data = tz->devdata; 
    569535  
    570 @@ -346,7 +346,7 @@ static int of_thermal_get_trip_hyst(struct thermal_zone_device *tz, int trip, 
     536@@ -346,7 +346,7 @@ static int of_thermal_get_trip_hyst(stru 
    571537 } 
    572538  
     
    577543        struct __thermal_zone *data = tz->devdata; 
    578544  
    579 @@ -360,7 +360,7 @@ static int of_thermal_set_trip_hyst(struct thermal_zone_device *tz, int trip, 
     545@@ -360,7 +360,7 @@ static int of_thermal_set_trip_hyst(stru 
    580546 } 
    581547  
     
    586552        struct __thermal_zone *data = tz->devdata; 
    587553        int i; 
    588 diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c 
    589 index fe4e767..5d4ae7d 100644 
    590554--- a/drivers/thermal/rcar_thermal.c 
    591555+++ b/drivers/thermal/rcar_thermal.c 
     
    600564        struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); 
    601565  
    602 @@ -235,7 +234,7 @@ static int rcar_thermal_get_trip_type(struct thermal_zone_device *zone, 
     566@@ -235,7 +234,7 @@ static int rcar_thermal_get_trip_type(st 
    603567 } 
    604568  
     
    609573        struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); 
    610574        struct device *dev = rcar_priv_to_dev(priv); 
    611 @@ -299,7 +298,7 @@ static void _rcar_thermal_irq_ctrl(struct rcar_thermal_priv *priv, int enable) 
     575@@ -299,7 +298,7 @@ static void _rcar_thermal_irq_ctrl(struc 
    612576 static void rcar_thermal_work(struct work_struct *work) 
    613577 { 
     
    618582        priv = container_of(work, struct rcar_thermal_priv, work.work); 
    619583  
    620 diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c 
    621 index cd8f5f93..c89ffb2 100644 
    622584--- a/drivers/thermal/rockchip_thermal.c 
    623585+++ b/drivers/thermal/rockchip_thermal.c 
     
    631593        void (*set_tshut_mode)(int chn, void __iomem *reg, enum tshut_mode m); 
    632594 }; 
    633 @@ -191,7 +191,7 @@ static u32 rk_tsadcv2_temp_to_code(long temp) 
     595@@ -191,7 +191,7 @@ static u32 rk_tsadcv2_temp_to_code(long 
    634596        return 0; 
    635597 } 
     
    640602        unsigned int low = 0; 
    641603        unsigned int high = ARRAY_SIZE(v2_code_table) - 1; 
    642 @@ -277,7 +277,7 @@ static void rk_tsadcv2_control(void __iomem *regs, bool enable) 
     604@@ -277,7 +277,7 @@ static void rk_tsadcv2_control(void __io 
    643605        writel_relaxed(val, regs + TSADCV2_AUTO_CON); 
    644606 } 
     
    649611        u32 val; 
    650612  
    651 @@ -366,7 +366,7 @@ static irqreturn_t rockchip_thermal_alarm_irq_thread(int irq, void *dev) 
     613@@ -366,7 +366,7 @@ static irqreturn_t rockchip_thermal_alar 
    652614        return IRQ_HANDLED; 
    653615 } 
     
    658620        struct rockchip_thermal_sensor *sensor = _sensor; 
    659621        struct rockchip_thermal_data *thermal = sensor->thermal; 
    660 @@ -374,7 +374,7 @@ static int rockchip_thermal_get_temp(void *_sensor, long *out_temp) 
     622@@ -374,7 +374,7 @@ static int rockchip_thermal_get_temp(voi 
    661623        int retval; 
    662624  
     
    667629  
    668630        return retval; 
    669 diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c 
    670 index 1d30b09..29eaf4d 100644 
    671631--- a/drivers/thermal/samsung/exynos_tmu.c 
    672632+++ b/drivers/thermal/samsung/exynos_tmu.c 
     
    681641 }; 
    682642  
    683 @@ -190,7 +189,7 @@ static void exynos_report_trigger(struct exynos_tmu_data *p) 
     643@@ -190,7 +189,7 @@ static void exynos_report_trigger(struct 
    684644 { 
    685645        char data[10], *envp[] = { data, NULL }; 
     
    690650  
    691651        if (!tz) { 
    692 @@ -489,7 +488,7 @@ static int exynos5440_tmu_initialize(struct platform_device *pdev) 
     652@@ -489,7 +488,7 @@ static int exynos5440_tmu_initialize(str 
    693653        struct exynos_tmu_data *data = platform_get_drvdata(pdev); 
    694654        unsigned int trim_info = 0, con, rising_threshold; 
     
    699659        /* 
    700660         * For exynos5440 soc triminfo value is swapped between TMU0 and 
    701 @@ -542,7 +541,7 @@ static int exynos7_tmu_initialize(struct platform_device *pdev) 
     661@@ -542,7 +541,7 @@ static int exynos7_tmu_initialize(struct 
    702662        unsigned int status, trim_info; 
    703663        unsigned int rising_threshold = 0, falling_threshold = 0; 
     
    708668  
    709669        status = readb(data->base + EXYNOS_TMU_REG_STATUS); 
    710 @@ -713,7 +712,7 @@ static void exynos7_tmu_control(struct platform_device *pdev, bool on) 
     670@@ -713,7 +712,7 @@ static void exynos7_tmu_control(struct p 
    711671        writel(con, data->base + EXYNOS_TMU_REG_CONTROL); 
    712672 } 
     
    717677        struct exynos_tmu_data *data = p; 
    718678  
    719 @@ -733,7 +732,7 @@ static int exynos_get_temp(void *p, long *temp) 
     679@@ -733,7 +732,7 @@ static int exynos_get_temp(void *p, long 
    720680  
    721681 #ifdef CONFIG_THERMAL_EMULATION 
     
    726686        if (temp) { 
    727687                temp /= MCELSIUS; 
    728 @@ -763,7 +762,7 @@ static u32 get_emul_con_reg(struct exynos_tmu_data *data, unsigned int val, 
     688@@ -763,7 +762,7 @@ static u32 get_emul_con_reg(struct exyno 
    729689 } 
    730690  
     
    735695        unsigned int val; 
    736696        u32 emul_con; 
    737 @@ -781,7 +780,7 @@ static void exynos4412_tmu_set_emulation(struct exynos_tmu_data *data, 
     697@@ -781,7 +780,7 @@ static void exynos4412_tmu_set_emulation 
    738698 } 
    739699  
     
    744704        unsigned int val; 
    745705  
    746 @@ -790,7 +789,7 @@ static void exynos5440_tmu_set_emulation(struct exynos_tmu_data *data, 
     706@@ -790,7 +789,7 @@ static void exynos5440_tmu_set_emulation 
    747707        writel(val, data->base + EXYNOS5440_TMU_S0_7_DEBUG); 
    748708 } 
     
    753713        struct exynos_tmu_data *data = drv_data; 
    754714        int ret = -EINVAL; 
    755 diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c 
    756 index bddb717..534dd91 100644 
    757715--- a/drivers/thermal/spear_thermal.c 
    758716+++ b/drivers/thermal/spear_thermal.c 
     
    766724        struct spear_thermal_dev *stdev = thermal->devdata; 
    767725  
    768 diff --git a/drivers/thermal/st/st_thermal.c b/drivers/thermal/st/st_thermal.c 
    769 index 76c515d..44cbba9 100644 
    770726--- a/drivers/thermal/st/st_thermal.c 
    771727+++ b/drivers/thermal/st/st_thermal.c 
    772 @@ -111,8 +111,7 @@ static int st_thermal_calibration(struct st_thermal_sensor *sensor) 
     728@@ -111,8 +111,7 @@ static int st_thermal_calibration(struct 
    773729 } 
    774730  
     
    780736        struct st_thermal_sensor *sensor = th->devdata; 
    781737        struct device *dev = sensor->dev; 
    782 @@ -159,7 +158,7 @@ static int st_thermal_get_trip_type(struct thermal_zone_device *th, 
     738@@ -159,7 +158,7 @@ static int st_thermal_get_trip_type(stru 
    783739 } 
    784740  
     
    789745        struct st_thermal_sensor *sensor = th->devdata; 
    790746        struct device *dev = sensor->dev; 
    791 diff --git a/drivers/thermal/step_wise.c b/drivers/thermal/step_wise.c 
    792 index 5a0f12d..2f9f708 100644 
    793747--- a/drivers/thermal/step_wise.c 
    794748+++ b/drivers/thermal/step_wise.c 
    795 @@ -113,7 +113,7 @@ static void update_passive_instance(struct thermal_zone_device *tz, 
     749@@ -113,7 +113,7 @@ static void update_passive_instance(stru 
    796750  
    797751 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) 
     
    802756        enum thermal_trend trend; 
    803757        struct thermal_instance *instance; 
    804 @@ -135,7 +135,7 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) 
     758@@ -135,7 +135,7 @@ static void thermal_zone_trip_update(str 
    805759                trace_thermal_zone_trip(tz, trip, trip_type); 
    806760        } 
     
    811765  
    812766        mutex_lock(&tz->lock); 
    813 diff --git a/drivers/thermal/tegra_soctherm.c b/drivers/thermal/tegra_soctherm.c 
    814 index 9197fc0..74ea576 100644 
    815767--- a/drivers/thermal/tegra_soctherm.c 
    816768+++ b/drivers/thermal/tegra_soctherm.c 
    817 @@ -293,7 +293,7 @@ static int enable_tsensor(struct tegra_soctherm *tegra, 
     769@@ -293,7 +293,7 @@ static int enable_tsensor(struct tegra_s 
    818770  * H denotes an addition of 0.5 Celsius and N denotes negation 
    819771  * of the final value. 
     
    833785        struct tegra_thermctl_zone *zone = data; 
    834786        u32 val; 
    835 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c 
    836 index 4108db7..62cc82a 100644 
    837787--- a/drivers/thermal/thermal_core.c 
    838788+++ b/drivers/thermal/thermal_core.c 
    839 @@ -363,7 +363,7 @@ static void handle_non_critical_trips(struct thermal_zone_device *tz, 
     789@@ -363,7 +363,7 @@ static void handle_non_critical_trips(st 
    840790 static void handle_critical_trips(struct thermal_zone_device *tz, 
    841791                                int trip, enum thermal_trip_type trip_type) 
     
    846796        tz->ops->get_trip_temp(tz, trip, &trip_temp); 
    847797  
    848 @@ -411,12 +411,12 @@ static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) 
     798@@ -411,12 +411,12 @@ static void handle_thermal_trip(struct t 
    849799  * 
    850800  * Return: On success returns 0, an error code otherwise 
     
    861811 #endif 
    862812  
    863 @@ -453,8 +453,7 @@ EXPORT_SYMBOL_GPL(thermal_zone_get_temp); 
     813@@ -453,8 +453,7 @@ EXPORT_SYMBOL_GPL(thermal_zone_get_temp) 
    864814  
    865815 static void update_temperature(struct thermal_zone_device *tz) 
     
    889839  
    890840 static ssize_t 
    891 @@ -626,7 +624,7 @@ trip_point_temp_show(struct device *dev, struct device_attribute *attr, 
     841@@ -626,7 +624,7 @@ trip_point_temp_show(struct device *dev, 
    892842 { 
    893843        struct thermal_zone_device *tz = to_thermal_zone(dev); 
     
    898848        if (!tz->ops->get_trip_temp) 
    899849                return -EPERM; 
    900 @@ -639,7 +637,7 @@ trip_point_temp_show(struct device *dev, struct device_attribute *attr, 
     850@@ -639,7 +637,7 @@ trip_point_temp_show(struct device *dev, 
    901851        if (ret) 
    902852                return ret; 
     
    907857  
    908858 static ssize_t 
    909 @@ -648,7 +646,7 @@ trip_point_hyst_store(struct device *dev, struct device_attribute *attr, 
     859@@ -648,7 +646,7 @@ trip_point_hyst_store(struct device *dev 
    910860 { 
    911861        struct thermal_zone_device *tz = to_thermal_zone(dev); 
     
    916866        if (!tz->ops->set_trip_hyst) 
    917867                return -EPERM; 
    918 @@ -656,7 +654,7 @@ trip_point_hyst_store(struct device *dev, struct device_attribute *attr, 
     868@@ -656,7 +654,7 @@ trip_point_hyst_store(struct device *dev 
    919869        if (!sscanf(attr->attr.name, "trip_point_%d_hyst", &trip)) 
    920870                return -EINVAL; 
     
    925875  
    926876        /* 
    927 @@ -675,7 +673,7 @@ trip_point_hyst_show(struct device *dev, struct device_attribute *attr, 
     877@@ -675,7 +673,7 @@ trip_point_hyst_show(struct device *dev, 
    928878 { 
    929879        struct thermal_zone_device *tz = to_thermal_zone(dev); 
     
    934884        if (!tz->ops->get_trip_hyst) 
    935885                return -EPERM; 
    936 @@ -685,7 +683,7 @@ trip_point_hyst_show(struct device *dev, struct device_attribute *attr, 
     886@@ -685,7 +683,7 @@ trip_point_hyst_show(struct device *dev, 
    937887  
    938888        ret = tz->ops->get_trip_hyst(tz, trip, &temperature); 
     
    943893  
    944894 static ssize_t 
    945 diff --git a/drivers/thermal/thermal_hwmon.c b/drivers/thermal/thermal_hwmon.c 
    946 index 1967bee..06fd2ed9 100644 
    947895--- a/drivers/thermal/thermal_hwmon.c 
    948896+++ b/drivers/thermal/thermal_hwmon.c 
    949 @@ -69,7 +69,7 @@ static DEVICE_ATTR(name, 0444, name_show, NULL); 
     897@@ -69,7 +69,7 @@ static DEVICE_ATTR(name, 0444, name_show 
    950898 static ssize_t 
    951899 temp_input_show(struct device *dev, struct device_attribute *attr, char *buf) 
     
    956904        struct thermal_hwmon_attr *hwmon_attr 
    957905                        = container_of(attr, struct thermal_hwmon_attr, attr); 
    958 @@ -83,7 +83,7 @@ temp_input_show(struct device *dev, struct device_attribute *attr, char *buf) 
     906@@ -83,7 +83,7 @@ temp_input_show(struct device *dev, stru 
    959907        if (ret) 
    960908                return ret; 
     
    965913  
    966914 static ssize_t 
    967 @@ -95,14 +95,14 @@ temp_crit_show(struct device *dev, struct device_attribute *attr, char *buf) 
     915@@ -95,14 +95,14 @@ temp_crit_show(struct device *dev, struc 
    968916                        = container_of(hwmon_attr, struct thermal_hwmon_temp, 
    969917                                       temp_crit); 
     
    982930  
    983931  
    984 @@ -142,7 +142,7 @@ thermal_hwmon_lookup_temp(const struct thermal_hwmon_device *hwmon, 
     932@@ -142,7 +142,7 @@ thermal_hwmon_lookup_temp(const struct t 
    985933  
    986934 static bool thermal_zone_crit_temp_valid(struct thermal_zone_device *tz) 
     
    991939 } 
    992940  
    993 diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c 
    994 index a38c175..d3a42bf 100644 
    995941--- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c 
    996942+++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c 
    997 @@ -76,14 +76,14 @@ static inline int ti_thermal_hotspot_temperature(int t, int s, int c) 
     943@@ -76,14 +76,14 @@ static inline int ti_thermal_hotspot_tem 
    998944  
    999945 /* thermal zone ops */ 
     
    1012958        if (!data) 
    1013959                return 0; 
    1014 @@ -119,7 +119,7 @@ static inline int __ti_thermal_get_temp(void *devdata, long *temp) 
     960@@ -119,7 +119,7 @@ static inline int __ti_thermal_get_temp( 
    1015961 } 
    1016962  
     
    1021967        struct ti_thermal_data *data = thermal->devdata; 
    1022968  
    1023 @@ -228,7 +228,7 @@ static int ti_thermal_get_trip_type(struct thermal_zone_device *thermal, 
     969@@ -228,7 +228,7 @@ static int ti_thermal_get_trip_type(stru 
    1024970  
    1025971 /* Get trip temperature callback functions for thermal zone */ 
     
    1030976        if (!ti_thermal_is_valid_trip(trip)) 
    1031977                return -EINVAL; 
    1032 @@ -279,7 +279,7 @@ static int ti_thermal_get_trend(struct thermal_zone_device *thermal, 
     978@@ -279,7 +279,7 @@ static int ti_thermal_get_trend(struct t 
    1033979  
    1034980 /* Get critical temperature callback functions for thermal zone */ 
     
    1039985        /* shutdown zone */ 
    1040986        return ti_thermal_get_trip_temp(thermal, OMAP_TRIP_NUMBER - 1, temp); 
    1041 diff --git a/drivers/thermal/x86_pkg_temp_thermal.c b/drivers/thermal/x86_pkg_temp_thermal.c 
    1042 index 9ea3d9d..054c6d45 100644 
    1043987--- a/drivers/thermal/x86_pkg_temp_thermal.c 
    1044988+++ b/drivers/thermal/x86_pkg_temp_thermal.c 
     
    1052996        u32 eax, edx; 
    1053997        struct phy_dev_entry *phy_dev_entry; 
    1054 @@ -175,7 +175,7 @@ static int sys_get_curr_temp(struct thermal_zone_device *tzd, unsigned long *tem 
     998@@ -175,7 +175,7 @@ static int sys_get_curr_temp(struct ther 
    1055999        if (eax & 0x80000000) { 
    10561000                *temp = phy_dev_entry->tj_max - 
     
    10611005        } 
    10621006  
    1063 @@ -183,7 +183,7 @@ static int sys_get_curr_temp(struct thermal_zone_device *tzd, unsigned long *tem 
     1007@@ -183,7 +183,7 @@ static int sys_get_curr_temp(struct ther 
    10641008 } 
    10651009  
     
    10701014        u32 eax, edx; 
    10711015        struct phy_dev_entry *phy_dev_entry; 
    1072 @@ -214,13 +214,13 @@ static int sys_get_trip_temp(struct thermal_zone_device *tzd, 
     1016@@ -214,13 +214,13 @@ static int sys_get_trip_temp(struct ther 
    10731017                *temp = phy_dev_entry->tj_max - thres_reg_value * 1000; 
    10741018        else 
     
    10861030        u32 l, h; 
    10871031        struct phy_dev_entry *phy_dev_entry; 
    1088 diff --git a/include/linux/thermal.h b/include/linux/thermal.h 
    1089 index 5eac316..e9f2863 100644 
    10901032--- a/include/linux/thermal.h 
    10911033+++ b/include/linux/thermal.h 
     
    11331075  
    11341076 /** 
    1135 @@ -335,7 +331,7 @@ thermal_of_cooling_device_register(struct device_node *np, char *, void *, 
     1077@@ -335,7 +331,7 @@ thermal_of_cooling_device_register(struc 
    11361078                                   const struct thermal_cooling_device_ops *); 
    11371079 void thermal_cooling_device_unregister(struct thermal_cooling_device *); 
     
    11421084 int get_tz_trend(struct thermal_zone_device *, int); 
    11431085 struct thermal_instance *get_thermal_instance(struct thermal_zone_device *, 
    1144 @@ -378,7 +374,7 @@ static inline struct thermal_zone_device *thermal_zone_get_zone_by_name( 
     1086@@ -378,7 +374,7 @@ static inline struct thermal_zone_device 
    11451087                const char *name) 
    11461088 { return ERR_PTR(-ENODEV); } 
     
    11511093 static inline int get_tz_trend(struct thermal_zone_device *tz, int trip) 
    11521094 { return -ENODEV; } 
    1153 --  
    1154 1.7.10.4 
    1155  
  • trunk/target/linux/mediatek/patches/0011-thermal-trivial-fix-typo-in-comment.patch

    r47354 r47694  
    1010 1 file changed, 1 insertion(+), 1 deletion(-) 
    1111 
    12 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c 
    13 index 62cc82a..244784f 100644 
    1412--- a/drivers/thermal/thermal_core.c 
    1513+++ b/drivers/thermal/thermal_core.c 
    16 @@ -402,7 +402,7 @@ static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) 
     14@@ -402,7 +402,7 @@ static void handle_thermal_trip(struct t 
    1715 } 
    1816  
     
    2321  * @temp: a valid pointer to where to store the resulting temperature. 
    2422  * 
    25 --  
    26 1.7.10.4 
    27  
  • trunk/target/linux/mediatek/patches/0012-thermal-remove-useless-call-to-thermal_zone_device_s.patch

    r47354 r47694  
    1616 1 file changed, 3 deletions(-) 
    1717 
    18 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c 
    19 index 244784f..1b68d20 100644 
    2018--- a/drivers/thermal/thermal_core.c 
    2119+++ b/drivers/thermal/thermal_core.c 
    22 @@ -1571,9 +1571,6 @@ struct thermal_zone_device *thermal_zone_device_register(const char *type, 
     20@@ -1571,9 +1571,6 @@ struct thermal_zone_device *thermal_zone 
    2321  
    2422        INIT_DELAYED_WORK(&(tz->poll_queue), thermal_zone_device_check); 
     
    3028  
    3129        return tz; 
    32 --  
    33 1.7.10.4 
    34  
  • trunk/target/linux/mediatek/patches/0013-thermal-Use-IS_ENABLED-instead-of-ifdef.patch

    r47354 r47694  
    1313 1 file changed, 19 insertions(+), 26 deletions(-) 
    1414 
    15 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c 
    16 index 1b68d20..3e0fe55 100644 
    1715--- a/drivers/thermal/thermal_core.c 
    1816+++ b/drivers/thermal/thermal_core.c 
    19 @@ -414,11 +414,9 @@ static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) 
     17@@ -414,11 +414,9 @@ static void handle_thermal_trip(struct t 
    2018 int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) 
    2119 { 
     
    2927        if (!tz || IS_ERR(tz) || !tz->ops->get_temp) 
    3028                goto exit; 
    31 @@ -426,25 +424,21 @@ int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) 
     29@@ -426,25 +424,21 @@ int thermal_zone_get_temp(struct thermal 
    3230        mutex_lock(&tz->lock); 
    3331  
     
    6866 exit: 
    6967        return ret; 
    70 @@ -780,7 +774,6 @@ policy_show(struct device *dev, struct device_attribute *devattr, char *buf) 
     68@@ -780,7 +774,6 @@ policy_show(struct device *dev, struct d 
    7169        return sprintf(buf, "%s\n", tz->governor->name); 
    7270 } 
     
    7674 emul_temp_store(struct device *dev, struct device_attribute *attr, 
    7775                     const char *buf, size_t count) 
    78 @@ -806,7 +799,6 @@ emul_temp_store(struct device *dev, struct device_attribute *attr, 
     76@@ -806,7 +799,6 @@ emul_temp_store(struct device *dev, stru 
    7977        return ret ? ret : count; 
    8078 } 
     
    8482 static DEVICE_ATTR(type, 0444, type_show, NULL); 
    8583 static DEVICE_ATTR(temp, 0444, temp_show, NULL); 
    86 @@ -1536,11 +1528,12 @@ struct thermal_zone_device *thermal_zone_device_register(const char *type, 
     84@@ -1536,11 +1528,12 @@ struct thermal_zone_device *thermal_zone 
    8785                        goto unregister; 
    8886        } 
     
    102100        result = device_create_file(&tz->device, &dev_attr_policy); 
    103101        if (result) 
    104 --  
    105 1.7.10.4 
    106  
  • trunk/target/linux/mediatek/patches/0014-thermal-Add-comment-explaining-test-for-critical-tem.patch

    r47354 r47694  
    1414 1 file changed, 5 insertions(+) 
    1515 
    16 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c 
    17 index 3e0fe55..e204deb 100644 
    1816--- a/drivers/thermal/thermal_core.c 
    1917+++ b/drivers/thermal/thermal_core.c 
    20 @@ -435,6 +435,11 @@ int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) 
     18@@ -435,6 +435,11 @@ int thermal_zone_get_temp(struct thermal 
    2119                        } 
    2220                } 
     
    3028                        *temp = tz->emul_temperature; 
    3129        } 
    32 --  
    33 1.7.10.4 
    34  
  • trunk/target/linux/mediatek/patches/0015-thermal-inline-only-once-used-function.patch

    r47354 r47694  
    1313 1 file changed, 5 insertions(+), 12 deletions(-) 
    1414 
    15 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c 
    16 index e204deb..19da022 100644 
    1715--- a/drivers/thermal/thermal_core.c 
    1816+++ b/drivers/thermal/thermal_core.c 
     
    3230        ret = thermal_zone_get_temp(tz, &temp); 
    3331        if (ret) { 
    34 @@ -471,16 +474,6 @@ static void update_temperature(struct thermal_zone_device *tz) 
     32@@ -471,16 +474,6 @@ static void update_temperature(struct th 
    3533        trace_thermal_temperature(tz); 
    3634        dev_dbg(&tz->device, "last_temperature=%d, current_temperature=%d\n", 
     
    4947        for (count = 0; count < tz->trips; count++) 
    5048                handle_thermal_trip(tz, count); 
    51 --  
    52 1.7.10.4 
    53  
  • trunk/target/linux/mediatek/patches/0016-thermal-streamline-get_trend-callbacks.patch

    r47354 r47694  
    2626 3 files changed, 10 insertions(+), 28 deletions(-) 
    2727 
    28 diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c 
    29 index 03839df..c84404d 100644 
    3028--- a/drivers/thermal/of-thermal.c 
    3129+++ b/drivers/thermal/of-thermal.c 
    32 @@ -187,24 +187,15 @@ static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip, 
     30@@ -187,24 +187,15 @@ static int of_thermal_get_trend(struct t 
    3331                                enum thermal_trend *trend) 
    3432 { 
     
    5654 } 
    5755  
    58 diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c 
    59 index d3a42bf..ade78eb 100644 
    6056--- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c 
    6157+++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c 
    62 @@ -238,7 +238,7 @@ static int ti_thermal_get_trip_temp(struct thermal_zone_device *thermal, 
     58@@ -238,7 +238,7 @@ static int ti_thermal_get_trip_temp(stru 
    6359        return 0; 
    6460 } 
     
    6965        struct ti_thermal_data *data = p; 
    7066        struct ti_bandgap *bgp; 
    71 @@ -251,22 +251,6 @@ static int __ti_thermal_get_trend(void *p, long *trend) 
     67@@ -251,22 +251,6 @@ static int __ti_thermal_get_trend(void * 
    7268        if (ret) 
    7369                return ret; 
     
    9288                *trend = THERMAL_TREND_RAISING; 
    9389        else if (tr < 0) 
    94 @@ -277,6 +261,13 @@ static int ti_thermal_get_trend(struct thermal_zone_device *thermal, 
     90@@ -277,6 +261,13 @@ static int ti_thermal_get_trend(struct t 
    9591        return 0; 
    9692 } 
     
    106102 static int ti_thermal_get_crit_temp(struct thermal_zone_device *thermal, 
    107103                                    int *temp) 
    108 diff --git a/include/linux/thermal.h b/include/linux/thermal.h 
    109 index e9f2863..5c6a589 100644 
    110104--- a/include/linux/thermal.h 
    111105+++ b/include/linux/thermal.h 
     
    119113 }; 
    120114  
    121 --  
    122 1.7.10.4 
    123  
  • trunk/target/linux/mediatek/patches/0017-thermal-Allow-sensor-ops-to-fail-with-ENOSYS.patch

    r47354 r47694  
    2121 1 file changed, 17 insertions(+), 7 deletions(-) 
    2222 
    23 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c 
    24 index 19da022..3d8f9f9 100644 
    2523--- a/drivers/thermal/thermal_core.c 
    2624+++ b/drivers/thermal/thermal_core.c 
    27 @@ -413,13 +413,16 @@ static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) 
     25@@ -413,13 +413,16 @@ static void handle_thermal_trip(struct t 
    2826  */ 
    2927 int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) 
     
    4543        mutex_lock(&tz->lock); 
    4644  
    47 @@ -445,7 +448,7 @@ int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) 
     45@@ -445,7 +448,7 @@ int thermal_zone_get_temp(struct thermal 
    4846        } 
    4947   
     
    5452 } 
    5553 EXPORT_SYMBOL_GPL(thermal_zone_get_temp); 
    56 @@ -454,10 +457,11 @@ void thermal_zone_device_update(struct thermal_zone_device *tz) 
     54@@ -454,10 +457,11 @@ void thermal_zone_device_update(struct t 
    5755 { 
    5856        int temp, ret, count; 
     
    6866                if (ret != -EAGAIN) 
    6967                        dev_warn(&tz->device, 
    70 @@ -783,10 +787,16 @@ emul_temp_store(struct device *dev, struct device_attribute *attr, 
     68@@ -783,10 +787,16 @@ emul_temp_store(struct device *dev, stru 
    7169        if (kstrtoul(buf, 10, &temperature)) 
    7270                return -EINVAL; 
     
    8684                ret = tz->ops->set_emul_temp(tz, temperature); 
    8785        } 
    88 --  
    89 1.7.10.4 
    90  
  • trunk/target/linux/mediatek/patches/0018-thermal-of-always-set-sensor-related-callbacks.patch

    r47354 r47694  
    1414 1 file changed, 13 insertions(+), 20 deletions(-) 
    1515 
    16 diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c 
    17 index c84404d..b9c35bd 100644 
    1816--- a/drivers/thermal/of-thermal.c 
    1917+++ b/drivers/thermal/of-thermal.c 
    20 @@ -91,7 +91,7 @@ static int of_thermal_get_temp(struct thermal_zone_device *tz, 
     18@@ -91,7 +91,7 @@ static int of_thermal_get_temp(struct th 
    2119 { 
    2220        struct __thermal_zone *data = tz->devdata; 
     
    2725  
    2826        return data->ops->get_temp(data->sensor_data, temp); 
    29 @@ -178,7 +178,7 @@ static int of_thermal_set_emul_temp(struct thermal_zone_device *tz, 
     27@@ -178,7 +178,7 @@ static int of_thermal_set_emul_temp(stru 
    3028        struct __thermal_zone *data = tz->devdata; 
    3129  
     
    3634        return data->ops->set_emul_temp(data->sensor_data, temp); 
    3735 } 
    38 @@ -189,8 +189,8 @@ static int of_thermal_get_trend(struct thermal_zone_device *tz, int trip, 
     36@@ -189,8 +189,8 @@ static int of_thermal_get_trend(struct t 
    3937        struct __thermal_zone *data = tz->devdata; 
    4038        int r; 
     
    4745        r = data->ops->get_trend(data->sensor_data, trip, trend); 
    4846        if (r) 
    49 @@ -366,6 +366,10 @@ static int of_thermal_get_crit_temp(struct thermal_zone_device *tz, 
     47@@ -366,6 +366,10 @@ static int of_thermal_get_crit_temp(stru 
    5048 } 
    5149  
     
    5856        .set_mode = of_thermal_set_mode, 
    5957  
    60 @@ -399,13 +403,13 @@ thermal_zone_of_add_sensor(struct device_node *zone, 
     58@@ -399,13 +403,13 @@ thermal_zone_of_add_sensor(struct device 
    6159        if (!ops) 
    6260                return ERR_PTR(-EINVAL); 
     
    7573  
    7674        return tzd; 
    77 @@ -535,9 +539,6 @@ void thermal_zone_of_sensor_unregister(struct device *dev, 
     75@@ -535,9 +539,6 @@ void thermal_zone_of_sensor_unregister(s 
    7876                return; 
    7977  
     
    125123                        /* attempting to build remaining zones still */ 
    126124                } 
    127 --  
    128 1.7.10.4 
    129  
  • trunk/target/linux/mediatek/patches/0019-thermal-Make-struct-thermal_zone_device_ops-const.patch

    r47354 r47694  
    3232 21 files changed, 23 insertions(+), 23 deletions(-) 
    3333 
    34 diff --git a/Documentation/thermal/sysfs-api.txt b/Documentation/thermal/sysfs-api.txt 
    35 index 87519cb..bb346a2 100644 
    3634--- a/Documentation/thermal/sysfs-api.txt 
    3735+++ b/Documentation/thermal/sysfs-api.txt 
    38 @@ -33,7 +33,7 @@ temperature) and throttle appropriate devices. 
     36@@ -33,7 +33,7 @@ temperature) and throttle appropriate de 
    3937 1.1 thermal zone device interface 
    4038 1.1.1 struct thermal_zone_device *thermal_zone_device_register(char *type, 
     
    4543                int passive_delay, int polling_delay)) 
    4644  
    47 diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c 
    48 index 68bff60..6b11462 100644 
    4945--- a/drivers/acpi/thermal.c 
    5046+++ b/drivers/acpi/thermal.c 
    51 @@ -869,7 +869,7 @@ acpi_thermal_unbind_cooling_device(struct thermal_zone_device *thermal, 
     47@@ -869,7 +869,7 @@ acpi_thermal_unbind_cooling_device(struc 
    5248        return acpi_thermal_cooling_device_cb(thermal, cdev, false); 
    5349 } 
     
    5854        .unbind = acpi_thermal_unbind_cooling_device, 
    5955        .get_temp = thermal_get_temp, 
    60 diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c 
    61 index f2ce63c..bae9ca0 100644 
    6256--- a/drivers/platform/x86/acerhdf.c 
    6357+++ b/drivers/platform/x86/acerhdf.c 
    64 @@ -482,7 +482,7 @@ static int acerhdf_get_crit_temp(struct thermal_zone_device *thermal, 
     58@@ -482,7 +482,7 @@ static int acerhdf_get_crit_temp(struct 
    6559 } 
    6660  
     
    7165        .unbind = acerhdf_unbind, 
    7266        .get_temp = acerhdf_get_ec_temp, 
    73 diff --git a/drivers/platform/x86/intel_mid_thermal.c b/drivers/platform/x86/intel_mid_thermal.c 
    74 index 0944e83..069d36b 100644 
    7567--- a/drivers/platform/x86/intel_mid_thermal.c 
    7668+++ b/drivers/platform/x86/intel_mid_thermal.c 
    77 @@ -460,7 +460,7 @@ static int read_curr_temp(struct thermal_zone_device *tzd, unsigned long *temp) 
     69@@ -460,7 +460,7 @@ static int read_curr_temp(struct thermal 
    7870 } 
    7971  
     
    8476 }; 
    8577  
    86 diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c 
    87 index 87e2fd1..878cb4e 100644 
    8878--- a/drivers/power/power_supply_core.c 
    8979+++ b/drivers/power/power_supply_core.c 
    90 @@ -509,7 +509,7 @@ static int power_supply_read_temp(struct thermal_zone_device *tzd, 
     80@@ -535,7 +535,7 @@ static int power_supply_read_temp(struct 
    9181        return ret; 
    9282 } 
     
    9787 }; 
    9888  
    99 diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c 
    100 index 26b8d32..3f59c8b 100644 
    10189--- a/drivers/thermal/armada_thermal.c 
    10290+++ b/drivers/thermal/armada_thermal.c 
    103 @@ -183,7 +183,7 @@ static int armada_get_temp(struct thermal_zone_device *thermal, 
     91@@ -183,7 +183,7 @@ static int armada_get_temp(struct therma 
    10492        return 0; 
    10593 } 
     
    11098 }; 
    11199  
    112 diff --git a/drivers/thermal/db8500_thermal.c b/drivers/thermal/db8500_thermal.c 
    113 index b3eca71..38d6aab9 100644 
    114100--- a/drivers/thermal/db8500_thermal.c 
    115101+++ b/drivers/thermal/db8500_thermal.c 
    116 @@ -210,7 +210,7 @@ static int db8500_sys_get_crit_temp(struct thermal_zone_device *thermal, 
     102@@ -210,7 +210,7 @@ static int db8500_sys_get_crit_temp(stru 
    117103        return -EINVAL; 
    118104 } 
     
    123109        .unbind = db8500_cdev_unbind, 
    124110        .get_temp = db8500_sys_get_temp, 
    125 diff --git a/drivers/thermal/dove_thermal.c b/drivers/thermal/dove_thermal.c 
    126 index a0bc9de..e8fd627 100644 
    127111--- a/drivers/thermal/dove_thermal.c 
    128112+++ b/drivers/thermal/dove_thermal.c 
    129 @@ -118,7 +118,7 @@ static int dove_get_temp(struct thermal_zone_device *thermal, 
     113@@ -118,7 +118,7 @@ static int dove_get_temp(struct thermal_ 
    130114        return 0; 
    131115 } 
     
    136120 }; 
    137121  
    138 diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c 
    139 index f1424f0..8a3cfed 100644 
    140122--- a/drivers/thermal/imx_thermal.c 
    141123+++ b/drivers/thermal/imx_thermal.c 
    142 @@ -332,7 +332,7 @@ static int imx_unbind(struct thermal_zone_device *tz, 
     124@@ -332,7 +332,7 @@ static int imx_unbind(struct thermal_zon 
    143125        return 0; 
    144126 } 
     
    149131        .unbind = imx_unbind, 
    150132        .get_temp = imx_get_temp, 
    151 diff --git a/drivers/thermal/int340x_thermal/int3400_thermal.c b/drivers/thermal/int340x_thermal/int3400_thermal.c 
    152 index 031018e..96bdf8a 100644 
    153133--- a/drivers/thermal/int340x_thermal/int3400_thermal.c 
    154134+++ b/drivers/thermal/int340x_thermal/int3400_thermal.c 
    155 @@ -231,7 +231,7 @@ static int int3400_thermal_set_mode(struct thermal_zone_device *thermal, 
     135@@ -231,7 +231,7 @@ static int int3400_thermal_set_mode(stru 
    156136        return result; 
    157137 } 
     
    162142 }; 
    163143  
    164 diff --git a/drivers/thermal/int340x_thermal/int340x_thermal_zone.c b/drivers/thermal/int340x_thermal/int340x_thermal_zone.c 
    165 index b9b2666..bd9f9e8 100644 
    166144--- a/drivers/thermal/int340x_thermal/int340x_thermal_zone.c 
    167145+++ b/drivers/thermal/int340x_thermal/int340x_thermal_zone.c 
    168 @@ -154,7 +154,7 @@ static int int340x_thermal_get_trip_hyst(struct thermal_zone_device *zone, 
     146@@ -154,7 +154,7 @@ static int int340x_thermal_get_trip_hyst 
    169147        return 0; 
    170148 } 
     
    175153        .get_trip_temp  = int340x_thermal_get_trip_temp, 
    176154        .get_trip_type  = int340x_thermal_get_trip_type, 
    177 diff --git a/drivers/thermal/intel_soc_dts_thermal.c b/drivers/thermal/intel_soc_dts_thermal.c 
    178 index fd550b9..625ba6f 100644 
    179155--- a/drivers/thermal/intel_soc_dts_thermal.c 
    180156+++ b/drivers/thermal/intel_soc_dts_thermal.c 
    181 @@ -270,7 +270,7 @@ static int sys_get_curr_temp(struct thermal_zone_device *tzd, int *temp) 
     157@@ -270,7 +270,7 @@ static int sys_get_curr_temp(struct ther 
    182158        return 0; 
    183159 } 
     
    188164        .get_trip_temp = sys_get_trip_temp, 
    189165        .get_trip_type = sys_get_trip_type, 
    190 diff --git a/drivers/thermal/kirkwood_thermal.c b/drivers/thermal/kirkwood_thermal.c 
    191 index 11041fe..abba3e2 100644 
    192166--- a/drivers/thermal/kirkwood_thermal.c 
    193167+++ b/drivers/thermal/kirkwood_thermal.c 
    194 @@ -60,7 +60,7 @@ static int kirkwood_get_temp(struct thermal_zone_device *thermal, 
     168@@ -60,7 +60,7 @@ static int kirkwood_get_temp(struct ther 
    195169        return 0; 
    196170 } 
     
    201175 }; 
    202176  
    203 diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c 
    204 index b9c35bd..bd3185e 100644 
    205177--- a/drivers/thermal/of-thermal.c 
    206178+++ b/drivers/thermal/of-thermal.c 
    207 @@ -365,7 +365,7 @@ static int of_thermal_get_crit_temp(struct thermal_zone_device *tz, 
     179@@ -365,7 +365,7 @@ static int of_thermal_get_crit_temp(stru 
    208180        return -EINVAL; 
    209181 } 
     
    214186        .get_trend = of_thermal_get_trend, 
    215187        .set_emul_temp = of_thermal_set_emul_temp, 
    216 diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c 
    217 index 5d4ae7d..320ceac 100644 
    218188--- a/drivers/thermal/rcar_thermal.c 
    219189+++ b/drivers/thermal/rcar_thermal.c 
    220 @@ -270,7 +270,7 @@ static int rcar_thermal_notify(struct thermal_zone_device *zone, 
     190@@ -270,7 +270,7 @@ static int rcar_thermal_notify(struct th 
    221191        return 0; 
    222192 } 
     
    227197        .get_trip_type  = rcar_thermal_get_trip_type, 
    228198        .get_trip_temp  = rcar_thermal_get_trip_temp, 
    229 diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c 
    230 index 534dd91..ec07743 100644 
    231199--- a/drivers/thermal/spear_thermal.c 
    232200+++ b/drivers/thermal/spear_thermal.c 
    233 @@ -50,7 +50,7 @@ static inline int thermal_get_temp(struct thermal_zone_device *thermal, 
     201@@ -50,7 +50,7 @@ static inline int thermal_get_temp(struc 
    234202        return 0; 
    235203 } 
     
    240208 }; 
    241209  
    242 diff --git a/drivers/thermal/st/st_thermal.c b/drivers/thermal/st/st_thermal.c 
    243 index 44cbba9..0cb5c19 100644 
    244210--- a/drivers/thermal/st/st_thermal.c 
    245211+++ b/drivers/thermal/st/st_thermal.c 
    246 @@ -175,7 +175,7 @@ static int st_thermal_get_trip_temp(struct thermal_zone_device *th, 
     212@@ -175,7 +175,7 @@ static int st_thermal_get_trip_temp(stru 
    247213        return 0; 
    248214 } 
     
    253219        .get_trip_type  = st_thermal_get_trip_type, 
    254220        .get_trip_temp  = st_thermal_get_trip_temp, 
    255 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c 
    256 index 3d8f9f9..6bbf61f 100644 
    257221--- a/drivers/thermal/thermal_core.c 
    258222+++ b/drivers/thermal/thermal_core.c 
    259 @@ -1451,7 +1451,7 @@ static void remove_trip_attrs(struct thermal_zone_device *tz) 
     223@@ -1451,7 +1451,7 @@ static void remove_trip_attrs(struct the 
    260224  */ 
    261225 struct thermal_zone_device *thermal_zone_device_register(const char *type, 
     
    266230        int passive_delay, int polling_delay) 
    267231 { 
    268 diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c 
    269 index ade78eb..e9c82fc 100644 
    270232--- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c 
    271233+++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c 
    272 @@ -281,7 +281,7 @@ static const struct thermal_zone_of_device_ops ti_of_thermal_ops = { 
     234@@ -281,7 +281,7 @@ static const struct thermal_zone_of_devi 
    273235        .get_trend = __ti_thermal_get_trend, 
    274236 }; 
     
    279241        .get_trend = ti_thermal_get_trend, 
    280242        .bind = ti_thermal_bind, 
    281 diff --git a/drivers/thermal/x86_pkg_temp_thermal.c b/drivers/thermal/x86_pkg_temp_thermal.c 
    282 index 054c6d45..bb2b975 100644 
    283243--- a/drivers/thermal/x86_pkg_temp_thermal.c 
    284244+++ b/drivers/thermal/x86_pkg_temp_thermal.c 
    285 @@ -274,7 +274,7 @@ static int sys_get_trip_type(struct thermal_zone_device *thermal, 
     245@@ -274,7 +274,7 @@ static int sys_get_trip_type(struct ther 
    286246 } 
    287247  
     
    292252        .get_trip_temp = sys_get_trip_temp, 
    293253        .get_trip_type = sys_get_trip_type, 
    294 diff --git a/include/linux/thermal.h b/include/linux/thermal.h 
    295 index 5c6a589..07bd5e8 100644 
    296254--- a/include/linux/thermal.h 
    297255+++ b/include/linux/thermal.h 
     
    305263        struct thermal_governor *governor; 
    306264        struct list_head thermal_instances; 
    307 @@ -313,7 +313,7 @@ void thermal_zone_of_sensor_unregister(struct device *dev, 
     265@@ -313,7 +313,7 @@ void thermal_zone_of_sensor_unregister(s 
    308266  
    309267 #if IS_ENABLED(CONFIG_THERMAL) 
     
    314272 void thermal_zone_device_unregister(struct thermal_zone_device *); 
    315273  
    316 @@ -341,7 +341,7 @@ void thermal_notify_framework(struct thermal_zone_device *, int); 
     274@@ -341,7 +341,7 @@ void thermal_notify_framework(struct the 
    317275 #else 
    318276 static inline struct thermal_zone_device *thermal_zone_device_register( 
     
    323281        int passive_delay, int polling_delay) 
    324282 { return ERR_PTR(-ENODEV); } 
    325 --  
    326 1.7.10.4 
    327  
  • trunk/target/linux/mediatek/patches/0020-thermal-thermal-Add-support-for-hardware-tracked-tri.patch

    r47354 r47694  
    3131 2 files changed, 46 insertions(+) 
    3232 
    33 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c 
    34 index 6bbf61f..3ae1795 100644 
    3533--- a/drivers/thermal/thermal_core.c 
    3634+++ b/drivers/thermal/thermal_core.c 
    37 @@ -453,6 +453,45 @@ int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) 
     35@@ -453,6 +453,45 @@ int thermal_zone_get_temp(struct thermal 
    3836 } 
    3937 EXPORT_SYMBOL_GPL(thermal_zone_get_temp); 
     
    8179 { 
    8280        int temp, ret, count; 
    83 @@ -479,6 +518,8 @@ void thermal_zone_device_update(struct thermal_zone_device *tz) 
     81@@ -479,6 +518,8 @@ void thermal_zone_device_update(struct t 
    8482        dev_dbg(&tz->device, "last_temperature=%d, current_temperature=%d\n", 
    8583                                tz->last_temperature, tz->temperature); 
     
    9088                handle_thermal_trip(tz, count); 
    9189 } 
    92 @@ -1494,6 +1535,8 @@ struct thermal_zone_device *thermal_zone_device_register(const char *type, 
     90@@ -1494,6 +1535,8 @@ struct thermal_zone_device *thermal_zone 
    9391        tz->trips = trips; 
    9492        tz->passive_delay = passive_delay; 
     
    9997        dev_set_name(&tz->device, "thermal_zone%d", tz->id); 
    10098        result = device_register(&tz->device); 
    101 diff --git a/include/linux/thermal.h b/include/linux/thermal.h 
    102 index 07bd5e8..aef6e13 100644 
    10399--- a/include/linux/thermal.h 
    104100+++ b/include/linux/thermal.h 
     
    120116        const struct thermal_zone_device_ops *ops; 
    121117        const struct thermal_zone_params *tzp; 
    122 --  
    123 1.7.10.4 
    124  
  • trunk/target/linux/mediatek/patches/0021-thermal-of-implement-.set_trips-for-device-tree-ther.patch

    r47354 r47694  
    1111 2 files changed, 15 insertions(+) 
    1212 
    13 diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c 
    14 index bd3185e..f8dd847 100644 
    1513--- a/drivers/thermal/of-thermal.c 
    1614+++ b/drivers/thermal/of-thermal.c 
    17 @@ -97,6 +97,17 @@ static int of_thermal_get_temp(struct thermal_zone_device *tz, 
     15@@ -97,6 +97,17 @@ static int of_thermal_get_temp(struct th 
    1816        return data->ops->get_temp(data->sensor_data, temp); 
    1917 } 
     
    3331  * of_thermal_get_ntrips - function to export number of available trip 
    3432  *                        points. 
    35 @@ -367,6 +378,7 @@ static int of_thermal_get_crit_temp(struct thermal_zone_device *tz, 
     33@@ -367,6 +378,7 @@ static int of_thermal_get_crit_temp(stru 
    3634  
    3735 static const struct thermal_zone_device_ops of_thermal_ops = { 
     
    4139        .set_emul_temp = of_thermal_set_emul_temp, 
    4240  
    43 diff --git a/include/linux/thermal.h b/include/linux/thermal.h 
    44 index aef6e13..b751f6b 100644 
    4541--- a/include/linux/thermal.h 
    4642+++ b/include/linux/thermal.h 
     
    6157 }; 
    6258  
    63 --  
    64 1.7.10.4 
    65  
  • trunk/target/linux/mediatek/patches/0022-dt-bindings-thermal-Add-binding-document-for-Mediate.patch

    r47354 r47694  
    1111 create mode 100644 Documentation/devicetree/bindings/thermal/mediatek-thermal.txt 
    1212 
    13 diff --git a/Documentation/devicetree/bindings/thermal/mediatek-thermal.txt b/Documentation/devicetree/bindings/thermal/mediatek-thermal.txt 
    14 new file mode 100644 
    15 index 0000000..adf5d2c 
    1613--- /dev/null 
    1714+++ b/Documentation/devicetree/bindings/thermal/mediatek-thermal.txt 
     
    5350+               apmixedsys = <&apmixedsys>; 
    5451+       }; 
    55 --  
    56 1.7.10.4 
    57  
  • trunk/target/linux/mediatek/patches/0023-thermal-Add-Mediatek-thermal-controller-support.patch

    r47354 r47694  
    1919 create mode 100644 drivers/thermal/mtk_thermal.c 
    2020 
    21 diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig 
    22 index af40db0..3aa5500 100644 
    2321--- a/drivers/thermal/Kconfig 
    2422+++ b/drivers/thermal/Kconfig 
     
    3836 source "drivers/thermal/ti-soc-thermal/Kconfig" 
    3937 endmenu 
    40 diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile 
    41 index fa0dc48..51cfab7 100644 
    4238--- a/drivers/thermal/Makefile 
    4339+++ b/drivers/thermal/Makefile 
    44 @@ -39,3 +39,4 @@ obj-$(CONFIG_TI_SOC_THERMAL)  += ti-soc-thermal/ 
     40@@ -39,3 +39,4 @@ obj-$(CONFIG_TI_SOC_THERMAL)  += ti-soc-t 
    4541 obj-$(CONFIG_INT340X_THERMAL)  += int340x_thermal/ 
    4642 obj-$(CONFIG_ST_THERMAL)       += st/ 
    4743 obj-$(CONFIG_TEGRA_SOCTHERM)   += tegra_soctherm.o 
    4844+obj-$(CONFIG_MTK_THERMAL)      += mtk_thermal.o 
    49 diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal.c 
    50 new file mode 100644 
    51 index 0000000..27aab12 
    5245--- /dev/null 
    5346+++ b/drivers/thermal/mtk_thermal.c 
     
    781774+ 
    782775+module_platform_driver(mtk_thermal_driver); 
    783 --  
    784 1.7.10.4 
    785  
  • trunk/target/linux/mediatek/patches/0024-ARM64-dts-mt8173-Add-thermal-auxadc-device-nodes.patch

    r47354 r47694  
    99 1 file changed, 18 insertions(+) 
    1010 
    11 diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi 
    12 index 924fdb6..50d424f 100644 
    1311--- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi 
    1412+++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi 
     
    4543  
    4644 }; 
    47 --  
    48 1.7.10.4 
    49  
  • trunk/target/linux/mediatek/patches/0025-dt-bindings-ARM-Mediatek-Document-devicetree-binding.patch

    r47354 r47694  
    1111 create mode 100644 Documentation/devicetree/bindings/spi/spi-mt65xx.txt 
    1212 
    13 diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi-mt65xx.txt 
    14 new file mode 100644 
    15 index 0000000..04c28fd 
    1613--- /dev/null 
    1714+++ b/Documentation/devicetree/bindings/spi/spi-mt65xx.txt 
     
    4946+       status = "disabled"; 
    5047+}; 
    51 --  
    52 1.7.10.4 
    53  
  • trunk/target/linux/mediatek/patches/0026-spi-mediatek-Add-spi-bus-for-Mediatek-MT8173.patch

    r47354 r47694  
    1414 create mode 100644 drivers/spi/spi-mt65xx.c 
    1515 
    16 diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig 
    17 index 72b0590..53dbea3 100644 
    1816--- a/drivers/spi/Kconfig 
    1917+++ b/drivers/spi/Kconfig 
    20 @@ -325,6 +325,16 @@ config SPI_MESON_SPIFC 
     18@@ -334,6 +334,16 @@ config SPI_MESON_SPIFC 
    2119          This enables master mode support for the SPIFC (SPI flash 
    2220          controller) available in Amlogic Meson SoCs. 
     
    3533        tristate "OpenCores tiny SPI" 
    3634        depends on GPIOLIB 
    37 diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile 
    38 index d8cbf65..ab332ef 100644 
    3935--- a/drivers/spi/Makefile 
    4036+++ b/drivers/spi/Makefile 
    41 @@ -48,6 +48,7 @@ obj-$(CONFIG_SPI_MESON_SPIFC)         += spi-meson-spifc.o 
     37@@ -49,6 +49,7 @@ obj-$(CONFIG_SPI_MESON_SPIFC)         += spi-me 
    4238 obj-$(CONFIG_SPI_MPC512x_PSC)          += spi-mpc512x-psc.o 
    4339 obj-$(CONFIG_SPI_MPC52xx_PSC)          += spi-mpc52xx-psc.o 
     
    4743 obj-$(CONFIG_SPI_NUC900)               += spi-nuc900.o 
    4844 obj-$(CONFIG_SPI_OC_TINY)              += spi-oc-tiny.o 
    49 diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c 
    50 new file mode 100644 
    51 index 0000000..92c119d 
    5245--- /dev/null 
    5346+++ b/drivers/spi/spi-mt65xx.c 
     
    675668+MODULE_LICENSE("GPL v2"); 
    676669+MODULE_ALIAS("platform: mtk_spi"); 
    677 --  
    678 1.7.10.4 
    679  
  • trunk/target/linux/mediatek/patches/0027-dt-bindings-pwm-add-Mediatek-display-PWM-bindings.patch

    r47354 r47694  
    1212 create mode 100644 Documentation/devicetree/bindings/pwm/pwm-disp-mediatek.txt 
    1313 
    14 diff --git a/Documentation/devicetree/bindings/pwm/pwm-disp-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-disp-mediatek.txt 
    15 new file mode 100644 
    16 index 0000000..ef54e9d 
    1714--- /dev/null 
    1815+++ b/Documentation/devicetree/bindings/pwm/pwm-disp-mediatek.txt 
     
    4340+                             "mm"; 
    4441+       }; 
    45 --  
    46 1.7.10.4 
    47  
  • trunk/target/linux/mediatek/patches/0028-pwm-add-Mediatek-display-PWM-driver-support.patch

    r47354 r47694  
    1414 create mode 100644 drivers/pwm/pwm-disp-mediatek.c 
    1515 
    16 diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig 
    17 index b1541f4..9edbb5a 100644 
    1816--- a/drivers/pwm/Kconfig 
    1917+++ b/drivers/pwm/Kconfig 
     
    3432        tristate "Cirrus Logic EP93xx PWM support" 
    3533        depends on ARCH_EP93XX 
    36 diff --git a/drivers/pwm/Makefile b/drivers/pwm/Makefile 
    37 index ec50eb5..c5ff72a 100644 
    3834--- a/drivers/pwm/Makefile 
    3935+++ b/drivers/pwm/Makefile 
    40 @@ -8,6 +8,7 @@ obj-$(CONFIG_PWM_BCM_KONA)      += pwm-bcm-kona.o 
     36@@ -8,6 +8,7 @@ obj-$(CONFIG_PWM_BCM_KONA)      += pwm-bcm-ko 
    4137 obj-$(CONFIG_PWM_BCM2835)      += pwm-bcm2835.o 
    4238 obj-$(CONFIG_PWM_BFIN)         += pwm-bfin.o 
     
    4642 obj-$(CONFIG_PWM_FSL_FTM)      += pwm-fsl-ftm.o 
    4743 obj-$(CONFIG_PWM_IMG)          += pwm-img.o 
    48 diff --git a/drivers/pwm/pwm-disp-mediatek.c b/drivers/pwm/pwm-disp-mediatek.c 
    49 new file mode 100644 
    50 index 0000000..38293af 
    5144--- /dev/null 
    5245+++ b/drivers/pwm/pwm-disp-mediatek.c 
     
    277270+MODULE_DESCRIPTION("MediaTek SoC display PWM driver"); 
    278271+MODULE_LICENSE("GPL v2"); 
    279 --  
    280 1.7.10.4 
    281  
  • trunk/target/linux/mediatek/patches/0029-dt-bindings-Add-I2C-bindings-for-mt65xx-mt81xx.patch

    r47354 r47694  
    1313 create mode 100644 Documentation/devicetree/bindings/i2c/i2c-mt6577.txt 
    1414 
    15 diff --git a/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt b/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt 
    16 new file mode 100644 
    17 index 0000000..0ce6fa3 
    1815--- /dev/null 
    1916+++ b/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt 
     
    6057+       }; 
    6158+ 
    62 --  
    63 1.7.10.4 
    64  
  • trunk/target/linux/mediatek/patches/0030-I2C-mediatek-Add-driver-for-MediaTek-I2C-controller.patch

    r47354 r47694  
    1818 create mode 100644 drivers/i2c/busses/i2c-mt65xx.c 
    1919 
    20 diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig 
    21 index 2255af2..14c7266 100644 
    2220--- a/drivers/i2c/busses/Kconfig 
    2321+++ b/drivers/i2c/busses/Kconfig 
     
    3836        tristate "Marvell mv64xxx I2C Controller" 
    3937        depends on MV64X60 || PLAT_ORION || ARCH_SUNXI 
    40 diff --git a/drivers/i2c/busses/Makefile b/drivers/i2c/busses/Makefile 
    41 index cdf941d..abbf422 100644 
    4238--- a/drivers/i2c/busses/Makefile 
    4339+++ b/drivers/i2c/busses/Makefile 
     
    5046 obj-$(CONFIG_I2C_MXS)          += i2c-mxs.o 
    5147 obj-$(CONFIG_I2C_NOMADIK)      += i2c-nomadik.o 
    52 diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c 
    53 new file mode 100644 
    54 index 0000000..faecf7e 
    5548--- /dev/null 
    5649+++ b/drivers/i2c/busses/i2c-mt65xx.c 
     
    756749+MODULE_DESCRIPTION("MediaTek I2C Bus Driver"); 
    757750+MODULE_AUTHOR("Xudong Chen <xudong.chen@mediatek.com>"); 
    758 --  
    759 1.7.10.4 
    760  
  • trunk/target/linux/mediatek/patches/0031-I2C-mediatek-Add-driver-for-MediaTek-MT8173-I2C-cont.patch

    r47354 r47694  
    1616 1 file changed, 76 insertions(+), 28 deletions(-) 
    1717 
    18 diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c 
    19 index faecf7e..c501421 100644 
    2018--- a/drivers/i2c/busses/i2c-mt65xx.c 
    2119+++ b/drivers/i2c/busses/i2c-mt65xx.c 
     
    5250  
    5351 struct mtk_i2c { 
    54 @@ -172,21 +179,39 @@ static const struct i2c_adapter_quirks mt6577_i2c_quirks = { 
     52@@ -172,21 +179,39 @@ static const struct i2c_adapter_quirks m 
    5553        .max_comb_2nd_msg_len = MAX_WRRD_TRANS_SIZE_MT6577, 
    5654 }; 
     
    9290 }; 
    9391 MODULE_DEVICE_TABLE(of, mtk_i2c_of_match); 
    94 @@ -343,9 +368,11 @@ static int mtk_i2c_set_speed(struct mtk_i2c *i2c, unsigned int clk_src_in_hz) 
     92@@ -343,9 +368,11 @@ static int mtk_i2c_set_speed(struct mtk_ 
    9593        return 0; 
    9694 } 
     
    105103        dma_addr_t rpaddr = 0; 
    106104        dma_addr_t wpaddr = 0; 
    107 @@ -361,6 +388,8 @@ static int mtk_i2c_do_transfer(struct mtk_i2c *i2c, struct i2c_msg *msgs) 
     105@@ -361,6 +388,8 @@ static int mtk_i2c_do_transfer(struct mt 
    108106                control_reg |= I2C_CONTROL_RS; 
    109107        if (i2c->op == I2C_MASTER_WRRD) 
     
    114112  
    115113        /* set start condition */ 
    116 @@ -375,13 +404,13 @@ static int mtk_i2c_do_transfer(struct mtk_i2c *i2c, struct i2c_msg *msgs) 
     114@@ -375,13 +404,13 @@ static int mtk_i2c_do_transfer(struct mt 
    117115        mtk_i2c_writew(addr_reg, i2c, OFFSET_SLAVE_ADDR); 
    118116  
     
    132130        /* Set transfer and transaction len */ 
    133131        if (i2c->op == I2C_MASTER_WRRD) { 
    134 @@ -390,7 +419,7 @@ static int mtk_i2c_do_transfer(struct mtk_i2c *i2c, struct i2c_msg *msgs) 
     132@@ -390,7 +419,7 @@ static int mtk_i2c_do_transfer(struct mt 
    135133                mtk_i2c_writew(I2C_WRRD_TRANAC_VALUE, i2c, OFFSET_TRANSAC_LEN); 
    136134        } else { 
     
    141139  
    142140        /* Prepare buffer data to start transfer */ 
    143 @@ -436,13 +465,23 @@ static int mtk_i2c_do_transfer(struct mtk_i2c *i2c, struct i2c_msg *msgs) 
     141@@ -436,13 +465,23 @@ static int mtk_i2c_do_transfer(struct mt 
    144142        /* flush before sending start */ 
    145143        mb(); 
     
    167165  
    168166        if (i2c->op == I2C_MASTER_WR) { 
    169 @@ -472,6 +511,10 @@ static int mtk_i2c_do_transfer(struct mtk_i2c *i2c, struct i2c_msg *msgs) 
     167@@ -472,6 +511,10 @@ static int mtk_i2c_do_transfer(struct mt 
    170168                return -EREMOTEIO; 
    171169        } 
     
    178176 } 
    179177  
    180 @@ -486,28 +529,33 @@ static int mtk_i2c_transfer(struct i2c_adapter *adap, 
     178@@ -486,28 +529,33 @@ static int mtk_i2c_transfer(struct i2c_a 
    181179        if (ret) 
    182180                return ret; 
     
    231229        ret = num; 
    232230  
    233 @@ -521,7 +569,7 @@ static irqreturn_t mtk_i2c_irq(int irqno, void *dev_id) 
     231@@ -521,7 +569,7 @@ static irqreturn_t mtk_i2c_irq(int irqno 
    234232        struct mtk_i2c *i2c = dev_id; 
    235233  
     
    240238  
    241239        complete(&i2c->msg_complete); 
    242 --  
    243 1.7.10.4 
    244  
  • trunk/target/linux/mediatek/patches/0032-dt-bindings-mediatek-Add-MT8173-cpufreq-driver-bindi.patch

    r47354 r47694  
    1313 create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-mt8173.txt 
    1414 
    15 diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-mt8173.txt b/Documentation/devicetree/bindings/cpufreq/cpufreq-mt8173.txt 
    16 new file mode 100644 
    17 index 0000000..7708a65 
    1815--- /dev/null 
    1916+++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-mt8173.txt 
     
    146143+               sram-supply = <&mt6397_vsramca7_reg>; 
    147144+       }; 
    148 --  
    149 1.7.10.4 
    150  
  • trunk/target/linux/mediatek/patches/0033-cpufreq-mediatek-Add-MT8173-cpufreq-driver.patch

    r47354 r47694  
    1414 create mode 100644 drivers/cpufreq/mt8173-cpufreq.c 
    1515 
    16 diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm 
    17 index 4f3dbc8..350752b 100644 
    1816--- a/drivers/cpufreq/Kconfig.arm 
    1917+++ b/drivers/cpufreq/Kconfig.arm 
     
    3230        bool "TI OMAP2+" 
    3331        depends on ARCH_OMAP2PLUS 
    34 diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile 
    35 index cdce92a..97f9a9b 100644 
    3632--- a/drivers/cpufreq/Makefile 
    3733+++ b/drivers/cpufreq/Makefile 
    38 @@ -63,6 +63,7 @@ obj-$(CONFIG_ARM_HISI_ACPU_CPUFREQ)   += hisi-acpu-cpufreq.o 
     34@@ -63,6 +63,7 @@ obj-$(CONFIG_ARM_HISI_ACPU_CPUFREQ)   += h 
    3935 obj-$(CONFIG_ARM_IMX6Q_CPUFREQ)                += imx6q-cpufreq.o 
    4036 obj-$(CONFIG_ARM_INTEGRATOR)           += integrator-cpufreq.o 
     
    4440 obj-$(CONFIG_ARM_PXA2xx_CPUFREQ)       += pxa2xx-cpufreq.o 
    4541 obj-$(CONFIG_PXA3xx)                   += pxa3xx-cpufreq.o 
    46 diff --git a/drivers/cpufreq/mt8173-cpufreq.c b/drivers/cpufreq/mt8173-cpufreq.c 
    47 new file mode 100644 
    48 index 0000000..d539e7b 
    4942--- /dev/null 
    5043+++ b/drivers/cpufreq/mt8173-cpufreq.c 
     
    600593+} 
    601594+module_init(mt8173_cpufreq_driver_init); 
    602 --  
    603 1.7.10.4 
    604  
  • trunk/target/linux/mediatek/patches/0034-mmc-dt-bindings-add-Mediatek-MMC-bindings.patch

    r47354 r47694  
    1212 create mode 100644 Documentation/devicetree/bindings/mmc/mtk-sd.txt 
    1313 
    14 diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.txt b/Documentation/devicetree/bindings/mmc/mtk-sd.txt 
    15 new file mode 100644 
    16 index 0000000..a1adfa4 
    1714--- /dev/null 
    1815+++ b/Documentation/devicetree/bindings/mmc/mtk-sd.txt 
     
    5047+       pinctrl-1 = <&mmc0_pins_uhs>; 
    5148+}; 
    52 --  
    53 1.7.10.4 
    54  
  • trunk/target/linux/mediatek/patches/0035-mmc-mediatek-Add-Mediatek-MMC-driver.patch

    r47354 r47694  
    1818--- a/drivers/mmc/host/Kconfig 
    1919+++ b/drivers/mmc/host/Kconfig 
    20 @@ -800,3 +800,11 @@ 
     20@@ -800,3 +800,11 @@ config MMC_TOSHIBA_PCI 
    2121        tristate "Toshiba Type A SD/MMC Card Interface Driver" 
    2222        depends on PCI 
     
    3232--- a/drivers/mmc/host/Makefile 
    3333+++ b/drivers/mmc/host/Makefile 
    34 @@ -20,6 +20,7 @@ 
     34@@ -20,6 +20,7 @@ obj-$(CONFIG_MMC_SDHCI_F_SDH30)       += sdhci 
    3535 obj-$(CONFIG_MMC_SDHCI_SPEAR)  += sdhci-spear.o 
    3636 obj-$(CONFIG_MMC_WBSD)         += wbsd.o 
  • trunk/target/linux/mediatek/patches/0036-mmc-mediatek-Add-PM-support-for-MMC-driver.patch

    r47354 r47694  
    1212 1 file changed, 86 insertions(+), 3 deletions(-) 
    1313 
    14 diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c 
    15 index 952be2e..7c20f28 100644 
    1614--- a/drivers/mmc/host/mtk-sd.c 
    1715+++ b/drivers/mmc/host/mtk-sd.c 
     
    5755  
    5856 static void sdr_set_bits(void __iomem *reg, u32 bs) 
    59 @@ -677,6 +690,9 @@ static void msdc_request_done(struct msdc_host *host, struct mmc_request *mrq) 
     57@@ -677,6 +690,9 @@ static void msdc_request_done(struct msd 
    6058        if (mrq->data) 
    6159                msdc_unprepare_data(host, mrq); 
     
    6765  
    6866 /* returns true if command is fully handled; returns false otherwise */ 
    69 @@ -831,6 +847,8 @@ static void msdc_ops_request(struct mmc_host *mmc, struct mmc_request *mrq) 
     67@@ -831,6 +847,8 @@ static void msdc_ops_request(struct mmc_ 
    7068        WARN_ON(host->mrq); 
    7169        host->mrq = mrq; 
     
    7674                msdc_prepare_data(host, mrq); 
    7775  
    78 @@ -1145,6 +1163,8 @@ static void msdc_ops_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) 
     76@@ -1145,6 +1163,8 @@ static void msdc_ops_set_ios(struct mmc_ 
    7977        int ret; 
    8078        u32 ddr = 0; 
     
    8583            ios->timing == MMC_TIMING_MMC_DDR52) 
    8684                ddr = 1; 
    87 @@ -1159,7 +1179,7 @@ static void msdc_ops_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) 
     85@@ -1159,7 +1179,7 @@ static void msdc_ops_set_ios(struct mmc_ 
    8886                                        ios->vdd); 
    8987                        if (ret) { 
     
    9492                } 
    9593                break; 
    96 @@ -1187,6 +1207,10 @@ static void msdc_ops_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) 
     94@@ -1187,6 +1207,10 @@ static void msdc_ops_set_ios(struct mmc_ 
    9795  
    9896        if (host->mclk != ios->clock || host->ddr != ddr) 
     
    105103  
    106104 static struct mmc_host_ops mt_msdc_ops = { 
    107 @@ -1310,12 +1334,18 @@ static int msdc_drv_probe(struct platform_device *pdev) 
     105@@ -1310,12 +1334,18 @@ static int msdc_drv_probe(struct platfor 
    108106        if (ret) 
    109107                goto release; 
     
    126124        platform_set_drvdata(pdev, NULL); 
    127125        msdc_deinit_hw(host); 
    128 @@ -1343,11 +1373,15 @@ static int msdc_drv_remove(struct platform_device *pdev) 
     126@@ -1343,11 +1373,15 @@ static int msdc_drv_remove(struct platfo 
    129127        mmc = platform_get_drvdata(pdev); 
    130128        host = mmc_priv(mmc); 
     
    142140                        sizeof(struct mt_gpdma_desc), 
    143141                        host->dma.gpd, host->dma.gpd_addr); 
    144 @@ -1359,6 +1393,54 @@ static int msdc_drv_remove(struct platform_device *pdev) 
     142@@ -1359,6 +1393,54 @@ static int msdc_drv_remove(struct platfo 
    145143        return 0; 
    146144 } 
     
    197195        {   .compatible = "mediatek,mt8135-mmc", }, 
    198196        {} 
    199 @@ -1370,6 +1452,7 @@ static struct platform_driver mt_msdc_driver = { 
     197@@ -1370,6 +1452,7 @@ static struct platform_driver mt_msdc_dr 
    200198        .driver = { 
    201199                .name = "mtk-msdc", 
     
    205203 }; 
    206204  
    207 --  
    208 1.7.10.4 
    209  
  • trunk/target/linux/mediatek/patches/0037-arm64-mediatek-Add-Mediatek-MMC-support-in-defconfig.patch

    r47354 r47694  
    1212 1 file changed, 1 insertion(+) 
    1313 
    14 diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig 
    15 index 2ed7449..e03288a 100644 
    1614--- a/arch/arm64/configs/defconfig 
    1715+++ b/arch/arm64/configs/defconfig 
     
    2422 CONFIG_RTC_DRV_EFI=y 
    2523 CONFIG_RTC_DRV_XGENE=y 
    26 --  
    27 1.7.10.4 
    28  
  • trunk/target/linux/mediatek/patches/0038-ARM-multi_v7_defconfig-Enable-Mediatek-MMC-support-m.patch

    r47354 r47694  
    1313 1 file changed, 1 insertion(+) 
    1414 
    15 diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig 
    16 index fbbb191..bfa09ab 100644 
    1715--- a/arch/arm/configs/multi_v7_defconfig 
    1816+++ b/arch/arm/configs/multi_v7_defconfig 
     
    2523 CONFIG_LEDS_CLASS=y 
    2624 CONFIG_LEDS_GPIO=y 
    27 --  
    28 1.7.10.4 
    29  
  • trunk/target/linux/mediatek/patches/0039-clocksource-mediatek-Don-t-run-event_handler-if-it-i.patch

    r47354 r47694  
    1414 1 file changed, 2 insertions(+), 1 deletion(-) 
    1515 
    16 diff --git a/drivers/clocksource/mtk_timer.c b/drivers/clocksource/mtk_timer.c 
    17 index 68ab423..85e0ab5 100644 
    1816--- a/drivers/clocksource/mtk_timer.c 
    1917+++ b/drivers/clocksource/mtk_timer.c 
    20 @@ -143,7 +143,8 @@ static irqreturn_t mtk_timer_interrupt(int irq, void *dev_id) 
     18@@ -143,7 +143,8 @@ static irqreturn_t mtk_timer_interrupt(i 
    2119  
    2220        /* Acknowledge timer0 irq */ 
     
    2826        return IRQ_HANDLED; 
    2927 } 
    30 --  
    31 1.7.10.4 
    32  
  • trunk/target/linux/mediatek/patches/0040-clocksource-mediatek-Use-GPT-as-sched-clock-source.patch

    r47354 r47694  
    1212 1 file changed, 10 insertions(+) 
    1313 
    14 diff --git a/drivers/clocksource/mtk_timer.c b/drivers/clocksource/mtk_timer.c 
    15 index 85e0ab5..9a90c7b 100644 
    1614--- a/drivers/clocksource/mtk_timer.c 
    1715+++ b/drivers/clocksource/mtk_timer.c 
     
    3836                                struct clock_event_device *c) 
    3937 { 
    40 @@ -239,6 +247,8 @@ static void __init mtk_timer_init(struct device_node *node) 
     38@@ -239,6 +247,8 @@ static void __init mtk_timer_init(struct 
    4139        mtk_timer_setup(evt, GPT_CLK_SRC, TIMER_CTRL_OP_FREERUN); 
    4240        clocksource_mmio_init(evt->gpt_base + TIMER_CNT_REG(GPT_CLK_SRC), 
     
    4745        /* Configure clock event */ 
    4846        mtk_timer_setup(evt, GPT_CLK_EVT, TIMER_CTRL_OP_REPEAT); 
    49 --  
    50 1.7.10.4 
    51  
  • trunk/target/linux/mediatek/patches/0041-arm-mediatek-enable-gpt6-on-boot-up-to-make-arch-tim.patch

    r47354 r47694  
    1414 1 file changed, 29 insertions(+) 
    1515 
    16 diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c 
    17 index a954900..6b38d67 100644 
    1816--- a/arch/arm/mach-mediatek/mediatek.c 
    1917+++ b/arch/arm/mach-mediatek/mediatek.c 
     
    5351 static const char * const mediatek_board_dt_compat[] = { 
    5452        "mediatek,mt6589", 
    55 @@ -27,4 +55,5 @@ static const char * const mediatek_board_dt_compat[] = { 
     53@@ -27,4 +55,5 @@ static const char * const mediatek_board 
    5654  
    5755 DT_MACHINE_START(MEDIATEK_DT, "Mediatek Cortex-A7 (Device Tree)") 
     
    5957+       .init_time      = mediatek_timer_init, 
    6058 MACHINE_END 
    61 --  
    62 1.7.10.4 
    63  
  • trunk/target/linux/mediatek/patches/0042-ARM-mediatek-add-smp-bringup-code.patch

    r47354 r47694  
    1414 create mode 100644 arch/arm/mach-mediatek/platsmp.c 
    1515 
    16 diff --git a/arch/arm/mach-mediatek/Makefile b/arch/arm/mach-mediatek/Makefile 
    17 index 43e619f..2116460 100644 
    1816--- a/arch/arm/mach-mediatek/Makefile 
    1917+++ b/arch/arm/mach-mediatek/Makefile 
     
    2321+endif 
    2422 obj-$(CONFIG_ARCH_MEDIATEK) += mediatek.o 
    25 diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c 
    26 new file mode 100644 
    27 index 0000000..e266b3d 
    2823--- /dev/null 
    2924+++ b/arch/arm/mach-mediatek/platsmp.c 
     
    174169+}; 
    175170+CPU_METHOD_OF_DECLARE(mt65xx_smp, "mediatek,mt65xx-smp", &mt65xx_smp_ops); 
    176 --  
    177 1.7.10.4 
    178  
  • trunk/target/linux/mediatek/patches/0043-ARM-dts-mt8127-enable-basic-SMP-bringup-for-mt8127.patch

    r47354 r47694  
    1515 1 file changed, 16 insertions(+) 
    1616 
    17 diff --git a/arch/arm/boot/dts/mt8127.dtsi b/arch/arm/boot/dts/mt8127.dtsi 
    18 index aaa7862..7c2090d 100644 
    1917--- a/arch/arm/boot/dts/mt8127.dtsi 
    2018+++ b/arch/arm/boot/dts/mt8127.dtsi 
     
    4947                #address-cells = <2>; 
    5048                #size-cells = <2>; 
    51 --  
    52 1.7.10.4 
    53  
  • trunk/target/linux/mediatek/patches/0044-dt-bindings-Add-usb3.0-phy-binding-for-MT65xx-SoCs.patch

    r47354 r47694  
    1313 create mode 100644 Documentation/devicetree/bindings/usb/mt65xx-u3phy.txt 
    1414 
    15 diff --git a/Documentation/devicetree/bindings/usb/mt65xx-u3phy.txt b/Documentation/devicetree/bindings/usb/mt65xx-u3phy.txt 
    16 new file mode 100644 
    17 index 0000000..b0b91b0 
    1815--- /dev/null 
    1916+++ b/Documentation/devicetree/bindings/usb/mt65xx-u3phy.txt 
     
    5653+       disable-usb2-p1; 
    5754+}; 
    58 --  
    59 1.7.10.4 
    60  
  • trunk/target/linux/mediatek/patches/0045-dt-bindings-Add-a-binding-for-Mediatek-xHCI-host-con.patch

    r47354 r47694  
    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..da28570 
    1916--- /dev/null 
    2017+++ b/Documentation/devicetree/bindings/usb/mt8173-xhci.txt 
     
    3936+       usb3-lpm-capable; 
    4037+}; 
    41 --  
    42 1.7.10.4 
    43  
  • trunk/target/linux/mediatek/patches/0046-usb-phy-add-usb3.0-phy-driver-for-mt65xx-SoCs.patch

    r47354 r47694  
    1212 create mode 100644 drivers/usb/phy/phy-mt65xx-usb3.c 
    1313 
    14 diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig 
    15 index 2175678..dfca566 100644 
    1614--- a/drivers/usb/phy/Kconfig 
    1715+++ b/drivers/usb/phy/Kconfig 
     
    3331        tristate "Marvell USB OTG support" 
    3432        depends on USB_EHCI_MV && USB_MV_UDC && PM 
    35 diff --git a/drivers/usb/phy/Makefile b/drivers/usb/phy/Makefile 
    36 index 75f2bba..d6113a4 100644 
    3733--- a/drivers/usb/phy/Makefile 
    3834+++ b/drivers/usb/phy/Makefile 
    39 @@ -20,6 +20,7 @@ obj-$(CONFIG_USB_EHCI_TEGRA)          += phy-tegra-usb.o 
     35@@ -20,6 +20,7 @@ obj-$(CONFIG_USB_EHCI_TEGRA)          += phy-teg 
    4036 obj-$(CONFIG_USB_GPIO_VBUS)            += phy-gpio-vbus-usb.o 
    4137 obj-$(CONFIG_USB_ISP1301)              += phy-isp1301.o 
     
    4541 obj-$(CONFIG_USB_MXS_PHY)              += phy-mxs-usb.o 
    4642 obj-$(CONFIG_USB_RCAR_PHY)             += phy-rcar-usb.o 
    47 diff --git a/drivers/usb/phy/phy-mt65xx-usb3.c b/drivers/usb/phy/phy-mt65xx-usb3.c 
    48 new file mode 100644 
    49 index 0000000..ec5cf24 
    5043--- /dev/null 
    5144+++ b/drivers/usb/phy/phy-mt65xx-usb3.c 
     
    775768+MODULE_DESCRIPTION("Mt65xx USB PHY driver"); 
    776769+MODULE_LICENSE("GPL v2"); 
    777 --  
    778 1.7.10.4 
    779  
  • trunk/target/linux/mediatek/patches/0047-xhci-mediatek-support-MTK-xHCI-host-controller.patch

    r47354 r47694  
    2525--- a/drivers/usb/host/Kconfig 
    2626+++ b/drivers/usb/host/Kconfig 
    27 @@ -41,6 +41,15 @@ 
     27@@ -41,6 +41,15 @@ config USB_XHCI_PLATFORM 
    2828  
    2929          If unsure, say N. 
     
    4343--- a/drivers/usb/host/Makefile 
    4444+++ b/drivers/usb/host/Makefile 
    45 @@ -15,6 +15,9 @@ 
     45@@ -15,6 +15,9 @@ xhci-hcd-y += xhci-ring.o xhci-hub.o xhc 
    4646 xhci-hcd-y += xhci-trace.o 
    4747  
     
    658658 static struct hc_driver __read_mostly xhci_plat_hc_driver; 
    659659  
    660 @@ -49,7 +50,23 @@ 
     660@@ -49,7 +50,23 @@ static int xhci_plat_setup(struct usb_hc 
    661661                        return ret; 
    662662        } 
     
    683683  
    684684 static int xhci_plat_start(struct usb_hcd *hcd) 
    685 @@ -207,6 +224,8 @@ 
     685@@ -207,6 +224,8 @@ static int xhci_plat_remove(struct platf 
    686686        if (!IS_ERR(clk)) 
    687687                clk_disable_unprepare(clk); 
     
    692692  
    693693        return 0; 
    694 @@ -253,6 +272,7 @@ 
     694@@ -253,6 +272,7 @@ static const struct of_device_id usb_xhc 
    695695        { .compatible = "marvell,armada-380-xhci"}, 
    696696        { .compatible = "renesas,xhci-r8a7790"}, 
     
    710710 /* 
    711711  * Returns zero if the TRB isn't in this segment, otherwise it returns the DMA 
    712 @@ -3163,9 +3164,14 @@ 
     712@@ -3173,9 +3174,14 @@ static int queue_bulk_sg_tx(struct xhci_ 
    713713  
    714714                /* Set the TRB length, TD size, and interrupter fields. */ 
     
    726726                        remainder = xhci_v1_0_td_remainder(running_total, 
    727727                                        trb_buff_len, total_packet_count, urb, 
    728 @@ -3336,9 +3342,14 @@ 
     728@@ -3346,9 +3352,14 @@ int xhci_queue_bulk_tx(struct xhci_hcd * 
    729729  
    730730                /* Set the TRB length, TD size, and interrupter fields. */ 
     
    742742                        remainder = xhci_v1_0_td_remainder(running_total, 
    743743                                        trb_buff_len, total_packet_count, urb, 
    744 @@ -3457,8 +3468,14 @@ 
     744@@ -3467,8 +3478,14 @@ int xhci_queue_ctrl_tx(struct xhci_hcd * 
    745745                field = TRB_TYPE(TRB_DATA); 
    746746  
     
    758758                if (setup->bRequestType & USB_DIR_IN) 
    759759                        field |= TRB_DIR_IN; 
    760 @@ -3682,8 +3699,14 @@ 
     760@@ -3692,8 +3709,14 @@ static int xhci_queue_isoc_tx(struct xhc 
    761761  
    762762                        /* Set the TRB length, TD size, & interrupter fields. */ 
     
    785785 #define DRIVER_AUTHOR "Sarah Sharp" 
    786786 #define DRIVER_DESC "'eXtensible' Host Controller (xHC) Driver" 
    787 @@ -624,7 +625,11 @@ 
     787@@ -624,7 +625,11 @@ int xhci_run(struct usb_hcd *hcd) 
    788788                        "// Set the interrupt modulation register"); 
    789789        temp = readl(&xhci->ir_set->irq_control); 
     
    798798  
    799799        /* Set the HCD state before we enable the irqs */ 
    800 @@ -1698,6 +1703,9 @@ 
     800@@ -1698,6 +1703,9 @@ int xhci_drop_endpoint(struct usb_hcd *h 
    801801  
    802802        xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep); 
     
    808808                        (unsigned int) ep->desc.bEndpointAddress, 
    809809                        udev->slot_id, 
    810 @@ -1793,6 +1801,12 @@ 
     810@@ -1793,6 +1801,12 @@ int xhci_add_endpoint(struct usb_hcd *hc 
    811811                return -ENOMEM; 
    812812        } 
     
    823823--- a/drivers/usb/host/xhci.h 
    824824+++ b/drivers/usb/host/xhci.h 
    825 @@ -1568,6 +1568,7 @@ 
     825@@ -1568,6 +1568,7 @@ struct xhci_hcd { 
    826826 /* For controllers with a broken beyond repair streams implementation */ 
    827827 #define XHCI_BROKEN_STREAMS    (1 << 19) 
  • trunk/target/linux/mediatek/patches/0048-dt-bindings-mediatek-Modify-pinctrl-bindings-for-mt6.patch

    r47354 r47694  
    1414 1 file changed, 7 insertions(+), 2 deletions(-) 
    1515 
    16 diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt 
    17 index 5868a0f..0480bc3 100644 
    1816--- a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt 
    1917+++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt 
     
    4240 - interrupt-controller: Marks the device node as an interrupt controller 
    4341 - #interrupt-cells: Should be two. 
    44 --  
    45 1.7.10.4 
    46  
  • trunk/target/linux/mediatek/patches/0049-pinctrl-dt-bindings-mt6397-Add-pinfunc-header-file-f.patch

    r47354 r47694  
    1313 create mode 100644 include/dt-bindings/pinctrl/mt6397-pinfunc.h 
    1414 
    15 diff --git a/include/dt-bindings/pinctrl/mt6397-pinfunc.h b/include/dt-bindings/pinctrl/mt6397-pinfunc.h 
    16 new file mode 100644 
    17 index 0000000..85739b3 
    1815--- /dev/null 
    1916+++ b/include/dt-bindings/pinctrl/mt6397-pinfunc.h 
     
    275272+ 
    276273+#endif /* __DTS_MT6397_PINFUNC_H */ 
    277 --  
    278 1.7.10.4 
    279  
  • trunk/target/linux/mediatek/patches/0050-pinctrl-mediatek-data-struct-optimize-and-remove-unu.patch

    r47354 r47694  
    1919 2 files changed, 6 insertions(+), 14 deletions(-) 
    2020 
    21 diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8135.c b/drivers/pinctrl/mediatek/pinctrl-mt8135.c 
    22 index f1e1e18..8e6abd5 100644 
    2321--- a/drivers/pinctrl/mediatek/pinctrl-mt8135.c 
    2422+++ b/drivers/pinctrl/mediatek/pinctrl-mt8135.c 
     
    4038 }; 
    4139  
    42 @@ -305,7 +305,6 @@ static const struct mtk_pinctrl_devdata mt8135_pinctrl_data = { 
     40@@ -305,7 +305,6 @@ static const struct mtk_pinctrl_devdata 
    4341        .pullen_offset = 0x0200, 
    4442        .smt_offset = 0x0300, 
     
    4846        .din_offset = 0x0A00, 
    4947        .pinmux_offset = 0x0C00, 
    50 @@ -314,7 +313,6 @@ static const struct mtk_pinctrl_devdata mt8135_pinctrl_data = { 
     48@@ -314,7 +313,6 @@ static const struct mtk_pinctrl_devdata 
    5149        .port_shf = 4, 
    5250        .port_mask = 0xf, 
     
    5654                .name = "mt8135_eint", 
    5755                .stat      = 0x000, 
    58 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
    59 index 375771d..1508849 100644 
    6056--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
    6157+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
     
    112108        unsigned int    ap_num; 
    113109        unsigned int    db_cnt; 
    114 --  
    115 1.7.10.4 
    116  
  • trunk/target/linux/mediatek/patches/0051-pinctrl-mediatek-add-mtk_pctrl_spec_pull_set_samereg.patch

    r47354 r47694  
    1818 3 files changed, 136 insertions(+), 121 deletions(-) 
    1919 
    20 diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8173.c b/drivers/pinctrl/mediatek/pinctrl-mt8173.c 
    21 index 412ea84..cc44b27 100644 
    2220--- a/drivers/pinctrl/mediatek/pinctrl-mt8173.c 
    2321+++ b/drivers/pinctrl/mediatek/pinctrl-mt8173.c 
     
    4038-       unsigned char r1_bit; 
    4139-       unsigned char r0_bit; 
    42 -}; 
    43 - 
     40+static const struct mtk_pin_spec_pupd_set_samereg mt8173_spec_pupd[] = { 
     41+       MTK_PIN_PUPD_SPEC_SR(119, 0xe00, 2, 1, 0),  /* KROW0 */ 
     42+       MTK_PIN_PUPD_SPEC_SR(120, 0xe00, 6, 5, 4),  /* KROW1 */ 
     43+       MTK_PIN_PUPD_SPEC_SR(121, 0xe00, 10, 9, 8), /* KROW2 */ 
     44+       MTK_PIN_PUPD_SPEC_SR(122, 0xe10, 2, 1, 0),  /* KCOL0 */ 
     45+       MTK_PIN_PUPD_SPEC_SR(123, 0xe10, 6, 5, 4),  /* KCOL1 */ 
     46+       MTK_PIN_PUPD_SPEC_SR(124, 0xe10, 10, 9, 8), /* KCOL2 */ 
     47+ 
     48+       MTK_PIN_PUPD_SPEC_SR(67, 0xd10, 2, 1, 0),   /* ms0 DS */ 
     49+       MTK_PIN_PUPD_SPEC_SR(68, 0xd00, 2, 1, 0),   /* ms0 RST */ 
     50+       MTK_PIN_PUPD_SPEC_SR(66, 0xc10, 2, 1, 0),   /* ms0 cmd */ 
     51+       MTK_PIN_PUPD_SPEC_SR(65, 0xc00, 2, 1, 0),   /* ms0 clk */ 
     52+       MTK_PIN_PUPD_SPEC_SR(57, 0xc20, 2, 1, 0),   /* ms0 data0 */ 
     53+       MTK_PIN_PUPD_SPEC_SR(58, 0xc20, 2, 1, 0),   /* ms0 data1 */ 
     54+       MTK_PIN_PUPD_SPEC_SR(59, 0xc20, 2, 1, 0),   /* ms0 data2 */ 
     55+       MTK_PIN_PUPD_SPEC_SR(60, 0xc20, 2, 1, 0),   /* ms0 data3 */ 
     56+       MTK_PIN_PUPD_SPEC_SR(61, 0xc20, 2, 1, 0),   /* ms0 data4 */ 
     57+       MTK_PIN_PUPD_SPEC_SR(62, 0xc20, 2, 1, 0),   /* ms0 data5 */ 
     58+       MTK_PIN_PUPD_SPEC_SR(63, 0xc20, 2, 1, 0),   /* ms0 data6 */ 
     59+       MTK_PIN_PUPD_SPEC_SR(64, 0xc20, 2, 1, 0),   /* ms0 data7 */ 
     60+ 
     61+       MTK_PIN_PUPD_SPEC_SR(78, 0xc50, 2, 1, 0),    /* ms1 cmd */ 
     62+       MTK_PIN_PUPD_SPEC_SR(73, 0xd20, 2, 1, 0),    /* ms1 dat0 */ 
     63+       MTK_PIN_PUPD_SPEC_SR(74, 0xd20, 6, 5, 4),    /* ms1 dat1 */ 
     64+       MTK_PIN_PUPD_SPEC_SR(75, 0xd20, 10, 9, 8),   /* ms1 dat2 */ 
     65+       MTK_PIN_PUPD_SPEC_SR(76, 0xd20, 14, 13, 12), /* ms1 dat3 */ 
     66+       MTK_PIN_PUPD_SPEC_SR(77, 0xc40, 2, 1, 0),    /* ms1 clk */ 
     67+ 
     68+       MTK_PIN_PUPD_SPEC_SR(100, 0xd40, 2, 1, 0),    /* ms2 dat0 */ 
     69+       MTK_PIN_PUPD_SPEC_SR(101, 0xd40, 6, 5, 4),    /* ms2 dat1 */ 
     70+       MTK_PIN_PUPD_SPEC_SR(102, 0xd40, 10, 9, 8),   /* ms2 dat2 */ 
     71+       MTK_PIN_PUPD_SPEC_SR(103, 0xd40, 14, 13, 12), /* ms2 dat3 */ 
     72+       MTK_PIN_PUPD_SPEC_SR(104, 0xc80, 2, 1, 0),    /* ms2 clk */ 
     73+       MTK_PIN_PUPD_SPEC_SR(105, 0xc90, 2, 1, 0),    /* ms2 cmd */ 
     74+ 
     75+       MTK_PIN_PUPD_SPEC_SR(22, 0xd60, 2, 1, 0),    /* ms3 dat0 */ 
     76+       MTK_PIN_PUPD_SPEC_SR(23, 0xd60, 6, 5, 4),    /* ms3 dat1 */ 
     77+       MTK_PIN_PUPD_SPEC_SR(24, 0xd60, 10, 9, 8),   /* ms3 dat2 */ 
     78+       MTK_PIN_PUPD_SPEC_SR(25, 0xd60, 14, 13, 12), /* ms3 dat3 */ 
     79+       MTK_PIN_PUPD_SPEC_SR(26, 0xcc0, 2, 1, 0),    /* ms3 clk */ 
     80+       MTK_PIN_PUPD_SPEC_SR(27, 0xcd0, 2, 1, 0)     /* ms3 cmd */ 
     81 }; 
     82  
    4483-#define MTK_PIN_PUPD_SPEC(_pin, _offset, _pupd, _r1, _r0)      \ 
    4584-       {       \ 
     
    92131-       MTK_PIN_PUPD_SPEC(26, 0xcc0, 2, 1, 0),    /* ms3 clk */ 
    93132-       MTK_PIN_PUPD_SPEC(27, 0xcd0, 2, 1, 0)     /* ms3 cmd */ 
    94 +static const struct mtk_pin_spec_pupd_set_samereg mt8173_spec_pupd[] = { 
    95 +       MTK_PIN_PUPD_SPEC_SR(119, 0xe00, 2, 1, 0),  /* KROW0 */ 
    96 +       MTK_PIN_PUPD_SPEC_SR(120, 0xe00, 6, 5, 4),  /* KROW1 */ 
    97 +       MTK_PIN_PUPD_SPEC_SR(121, 0xe00, 10, 9, 8), /* KROW2 */ 
    98 +       MTK_PIN_PUPD_SPEC_SR(122, 0xe10, 2, 1, 0),  /* KCOL0 */ 
    99 +       MTK_PIN_PUPD_SPEC_SR(123, 0xe10, 6, 5, 4),  /* KCOL1 */ 
    100 +       MTK_PIN_PUPD_SPEC_SR(124, 0xe10, 10, 9, 8), /* KCOL2 */ 
    101 + 
    102 +       MTK_PIN_PUPD_SPEC_SR(67, 0xd10, 2, 1, 0),   /* ms0 DS */ 
    103 +       MTK_PIN_PUPD_SPEC_SR(68, 0xd00, 2, 1, 0),   /* ms0 RST */ 
    104 +       MTK_PIN_PUPD_SPEC_SR(66, 0xc10, 2, 1, 0),   /* ms0 cmd */ 
    105 +       MTK_PIN_PUPD_SPEC_SR(65, 0xc00, 2, 1, 0),   /* ms0 clk */ 
    106 +       MTK_PIN_PUPD_SPEC_SR(57, 0xc20, 2, 1, 0),   /* ms0 data0 */ 
    107 +       MTK_PIN_PUPD_SPEC_SR(58, 0xc20, 2, 1, 0),   /* ms0 data1 */ 
    108 +       MTK_PIN_PUPD_SPEC_SR(59, 0xc20, 2, 1, 0),   /* ms0 data2 */ 
    109 +       MTK_PIN_PUPD_SPEC_SR(60, 0xc20, 2, 1, 0),   /* ms0 data3 */ 
    110 +       MTK_PIN_PUPD_SPEC_SR(61, 0xc20, 2, 1, 0),   /* ms0 data4 */ 
    111 +       MTK_PIN_PUPD_SPEC_SR(62, 0xc20, 2, 1, 0),   /* ms0 data5 */ 
    112 +       MTK_PIN_PUPD_SPEC_SR(63, 0xc20, 2, 1, 0),   /* ms0 data6 */ 
    113 +       MTK_PIN_PUPD_SPEC_SR(64, 0xc20, 2, 1, 0),   /* ms0 data7 */ 
    114 + 
    115 +       MTK_PIN_PUPD_SPEC_SR(78, 0xc50, 2, 1, 0),    /* ms1 cmd */ 
    116 +       MTK_PIN_PUPD_SPEC_SR(73, 0xd20, 2, 1, 0),    /* ms1 dat0 */ 
    117 +       MTK_PIN_PUPD_SPEC_SR(74, 0xd20, 6, 5, 4),    /* ms1 dat1 */ 
    118 +       MTK_PIN_PUPD_SPEC_SR(75, 0xd20, 10, 9, 8),   /* ms1 dat2 */ 
    119 +       MTK_PIN_PUPD_SPEC_SR(76, 0xd20, 14, 13, 12), /* ms1 dat3 */ 
    120 +       MTK_PIN_PUPD_SPEC_SR(77, 0xc40, 2, 1, 0),    /* ms1 clk */ 
    121 + 
    122 +       MTK_PIN_PUPD_SPEC_SR(100, 0xd40, 2, 1, 0),    /* ms2 dat0 */ 
    123 +       MTK_PIN_PUPD_SPEC_SR(101, 0xd40, 6, 5, 4),    /* ms2 dat1 */ 
    124 +       MTK_PIN_PUPD_SPEC_SR(102, 0xd40, 10, 9, 8),   /* ms2 dat2 */ 
    125 +       MTK_PIN_PUPD_SPEC_SR(103, 0xd40, 14, 13, 12), /* ms2 dat3 */ 
    126 +       MTK_PIN_PUPD_SPEC_SR(104, 0xc80, 2, 1, 0),    /* ms2 clk */ 
    127 +       MTK_PIN_PUPD_SPEC_SR(105, 0xc90, 2, 1, 0),    /* ms2 cmd */ 
    128 + 
    129 +       MTK_PIN_PUPD_SPEC_SR(22, 0xd60, 2, 1, 0),    /* ms3 dat0 */ 
    130 +       MTK_PIN_PUPD_SPEC_SR(23, 0xd60, 6, 5, 4),    /* ms3 dat1 */ 
    131 +       MTK_PIN_PUPD_SPEC_SR(24, 0xd60, 10, 9, 8),   /* ms3 dat2 */ 
    132 +       MTK_PIN_PUPD_SPEC_SR(25, 0xd60, 14, 13, 12), /* ms3 dat3 */ 
    133 +       MTK_PIN_PUPD_SPEC_SR(26, 0xcc0, 2, 1, 0),    /* ms3 clk */ 
    134 +       MTK_PIN_PUPD_SPEC_SR(27, 0xcd0, 2, 1, 0)     /* ms3 cmd */ 
    135  }; 
    136   
     133-}; 
     134- 
    137135-static int spec_pull_set(struct regmap *regmap, unsigned int pin, 
    138136+static int mt8173_spec_pull_set(struct regmap *regmap, unsigned int pin, 
     
    197195  
    198196 static const struct mtk_pin_ies_smt_set mt8173_ies_smt_set[] = { 
    199 @@ -382,7 +306,7 @@ static const struct mtk_pinctrl_devdata mt8173_pinctrl_data = { 
     197@@ -382,7 +306,7 @@ static const struct mtk_pinctrl_devdata 
    200198        .n_grp_cls = ARRAY_SIZE(mt8173_drv_grp), 
    201199        .pin_drv_grp = mt8173_pin_drv, 
     
    206204        .dir_offset = 0x0000, 
    207205        .pullen_offset = 0x0100, 
    208 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c 
    209 index 474812e..0d51145 100644 
    210206--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c 
    211207+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c 
    212 @@ -186,6 +186,66 @@ static int mtk_pconf_set_driving(struct mtk_pinctrl *pctl, 
     208@@ -186,6 +186,66 @@ static int mtk_pconf_set_driving(struct 
    213209        return -EINVAL; 
    214210 } 
     
    277273                unsigned int pin, bool enable, bool isup, unsigned int arg) 
    278274 { 
    279 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
    280 index 1508849..2a4b7be 100644 
    281275--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
    282276+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
     
    324318+ 
    325319 #endif /* __PINCTRL_MTK_COMMON_H */ 
    326 --  
    327 1.7.10.4 
    328  
  • trunk/target/linux/mediatek/patches/0052-pinctrl-mediatek-add-ies-smt-control-to-common-code.patch

    r47354 r47694  
    2020 3 files changed, 198 insertions(+), 116 deletions(-) 
    2121 
    22 diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8173.c b/drivers/pinctrl/mediatek/pinctrl-mt8173.c 
    23 index cc44b27..a7e5b24 100644 
    2422--- a/drivers/pinctrl/mediatek/pinctrl-mt8173.c 
    2523+++ b/drivers/pinctrl/mediatek/pinctrl-mt8173.c 
     
    6159        MTK_PIN_PUPD_SPEC_SR(119, 0xe00, 2, 1, 0),  /* KROW0 */ 
    6260        MTK_PIN_PUPD_SPEC_SR(120, 0xe00, 6, 5, 4),  /* KROW1 */ 
    63 @@ -97,80 +76,114 @@ static int mt8173_spec_pull_set(struct regmap *regmap, unsigned int pin, 
     61@@ -97,80 +76,114 @@ static int mt8173_spec_pull_set(struct r 
    6462                ARRAY_SIZE(mt8173_spec_pupd), pin, align, isup, r1r0); 
    6563 } 
     
    166164-       unsigned int i, reg_addr, bit; 
    167165-       bool find = false; 
    168 - 
    169 -       for (i = 0; i < ARRAY_SIZE(mt8173_ies_smt_set); i++) { 
    170 -               if (pin >= mt8173_ies_smt_set[i].start && 
    171 -                               pin <= mt8173_ies_smt_set[i].end) { 
    172 -                       find = true; 
    173 -                       break; 
    174 -               } 
    175 -       } 
    176 - 
    177 -       if (!find) 
    178 -               return -EINVAL; 
    179 - 
    180 -       if (value) 
    181 -               reg_addr = mt8173_ies_smt_set[i].offset + align; 
    182 -       else 
    183 -               reg_addr = mt8173_ies_smt_set[i].offset + (align << 1); 
    184166+static const struct mtk_pin_ies_smt_set mt8173_ies_set[] = { 
    185167+       MTK_PIN_IES_SMT_SPEC(0, 4, 0x900, 1), 
     
    231213+}; 
    232214  
     215-       for (i = 0; i < ARRAY_SIZE(mt8173_ies_smt_set); i++) { 
     216-               if (pin >= mt8173_ies_smt_set[i].start && 
     217-                               pin <= mt8173_ies_smt_set[i].end) { 
     218-                       find = true; 
     219-                       break; 
     220-               } 
     221-       } 
     222- 
     223-       if (!find) 
     224-               return -EINVAL; 
     225- 
     226-       if (value) 
     227-               reg_addr = mt8173_ies_smt_set[i].offset + align; 
     228-       else 
     229-               reg_addr = mt8173_ies_smt_set[i].offset + (align << 1); 
     230- 
    233231-       bit = BIT(mt8173_ies_smt_set[i].bit); 
    234232-       regmap_write(regmap, reg_addr, bit); 
     
    247245  
    248246 static const struct mtk_drv_group_desc mt8173_drv_grp[] =  { 
    249 @@ -307,7 +320,7 @@ static const struct mtk_pinctrl_devdata mt8173_pinctrl_data = { 
     247@@ -307,7 +320,7 @@ static const struct mtk_pinctrl_devdata 
    250248        .pin_drv_grp = mt8173_pin_drv, 
    251249        .n_pin_drv_grps = ARRAY_SIZE(mt8173_pin_drv), 
     
    256254        .pullen_offset = 0x0100, 
    257255        .pullsel_offset = 0x0200, 
    258 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c 
    259 index 0d51145..97fe2ab 100644 
    260256--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c 
    261257+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c 
    262 @@ -107,28 +107,38 @@ static void mtk_gpio_set(struct gpio_chip *chip, unsigned offset, int value) 
     258@@ -107,28 +107,38 @@ static void mtk_gpio_set(struct gpio_chi 
    263259        regmap_write(mtk_get_regmap(pctl, offset), reg_addr, bit); 
    264260 } 
     
    309305        else 
    310306                offset = pctl->devdata->smt_offset; 
    311 @@ -139,6 +149,33 @@ static void mtk_pconf_set_ies_smt(struct mtk_pinctrl *pctl, unsigned pin, 
     307@@ -139,6 +149,33 @@ static void mtk_pconf_set_ies_smt(struct 
    312308                reg_addr = CLR_ADDR(mtk_get_port(pctl, pin) + offset, pctl); 
    313309  
     
    343339  
    344340 static const struct mtk_pin_drv_grp *mtk_find_pin_drv_grp_by_pin( 
    345 @@ -295,36 +332,37 @@ static int mtk_pconf_parse_conf(struct pinctrl_dev *pctldev, 
     341@@ -295,36 +332,37 @@ static int mtk_pconf_parse_conf(struct p 
    346342                unsigned int pin, enum pin_config_param param, 
    347343                enum pin_config_param arg) 
     
    390386  
    391387 static int mtk_pconf_group_get(struct pinctrl_dev *pctldev, 
    392 @@ -343,12 +381,14 @@ static int mtk_pconf_group_set(struct pinctrl_dev *pctldev, unsigned group, 
     388@@ -343,12 +381,14 @@ static int mtk_pconf_group_set(struct pi 
    393389 { 
    394390        struct mtk_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); 
     
    407403                g->config = configs[i]; 
    408404        } 
    409 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
    410 index 2a4b7be..c703e7d 100644 
    411405--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
    412406+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
     
    466460        unsigned int ies_offset; 
    467461        unsigned int smt_offset; 
    468 @@ -251,4 +276,8 @@ int mtk_pctrl_spec_pull_set_samereg(struct regmap *regmap, 
     462@@ -251,4 +276,8 @@ int mtk_pctrl_spec_pull_set_samereg(stru 
    469463                unsigned int info_num, unsigned int pin, 
    470464                unsigned char align, bool isup, unsigned int r1r0); 
     
    475469+ 
    476470 #endif /* __PINCTRL_MTK_COMMON_H */ 
    477 --  
    478 1.7.10.4 
    479  
  • trunk/target/linux/mediatek/patches/0053-pinctrl-mediatek-Add-Pinctrl-GPIO-driver-for-mt6397.patch

    r47354 r47694  
    2727 create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt6397.h 
    2828 
    29 diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig 
    30 index 6b3551c..ddae479 100644 
    3129--- a/drivers/pinctrl/mediatek/Kconfig 
    3230+++ b/drivers/pinctrl/mediatek/Kconfig 
     
    4240+ 
    4341 endif 
    44 diff --git a/drivers/pinctrl/mediatek/Makefile b/drivers/pinctrl/mediatek/Makefile 
    45 index d8606a2..ad0180c 100644 
    4642--- a/drivers/pinctrl/mediatek/Makefile 
    4743+++ b/drivers/pinctrl/mediatek/Makefile 
    48 @@ -4,3 +4,4 @@ obj-$(CONFIG_PINCTRL_MTK_COMMON)        += pinctrl-mtk-common.o 
     44@@ -4,3 +4,4 @@ obj-$(CONFIG_PINCTRL_MTK_COMMON)        += pinc 
    4945 # SoC Drivers 
    5046 obj-$(CONFIG_PINCTRL_MT8135)           += pinctrl-mt8135.o 
    5147 obj-$(CONFIG_PINCTRL_MT8173)           += pinctrl-mt8173.o 
    5248+obj-$(CONFIG_PINCTRL_MT6397)           += pinctrl-mt6397.o 
    53 diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6397.c b/drivers/pinctrl/mediatek/pinctrl-mt6397.c 
    54 new file mode 100644 
    55 index 0000000..767bbdf 
    5649--- /dev/null 
    5750+++ b/drivers/pinctrl/mediatek/pinctrl-mt6397.c 
     
    135128+MODULE_DESCRIPTION("MediaTek MT6397 Pinctrl Driver"); 
    136129+MODULE_AUTHOR("Hongzhou Yang <hongzhou.yang@mediatek.com>"); 
    137 diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8135.c b/drivers/pinctrl/mediatek/pinctrl-mt8135.c 
    138 index 8e6abd5..203bd2a 100644 
    139130--- a/drivers/pinctrl/mediatek/pinctrl-mt8135.c 
    140131+++ b/drivers/pinctrl/mediatek/pinctrl-mt8135.c 
    141 @@ -342,7 +342,7 @@ static const struct mtk_pinctrl_devdata mt8135_pinctrl_data = { 
     132@@ -342,7 +342,7 @@ static const struct mtk_pinctrl_devdata 
    142133  
    143134 static int mt8135_pinctrl_probe(struct platform_device *pdev) 
     
    148139  
    149140 static const struct of_device_id mt8135_pctrl_match[] = { 
    150 diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8173.c b/drivers/pinctrl/mediatek/pinctrl-mt8173.c 
    151 index a7e5b24..cf4ed6e 100644 
    152141--- a/drivers/pinctrl/mediatek/pinctrl-mt8173.c 
    153142+++ b/drivers/pinctrl/mediatek/pinctrl-mt8173.c 
    154 @@ -361,7 +361,7 @@ static const struct mtk_pinctrl_devdata mt8173_pinctrl_data = { 
     143@@ -361,7 +361,7 @@ static const struct mtk_pinctrl_devdata 
    155144  
    156145 static int mt8173_pinctrl_probe(struct platform_device *pdev) 
     
    161150  
    162151 static const struct of_device_id mt8173_pctrl_match[] = { 
    163 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c 
    164 index 97fe2ab..e772cef 100644 
    165152--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c 
    166153+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c 
    167 @@ -1209,7 +1209,8 @@ static struct pinctrl_desc mtk_pctrl_desc = { 
     154@@ -1209,7 +1209,8 @@ static struct pinctrl_desc mtk_pctrl_des 
    168155 }; 
    169156  
     
    175162        struct pinctrl_pin_desc *pins; 
    176163        struct mtk_pinctrl *pctl; 
    177 @@ -1235,6 +1236,11 @@ int mtk_pctrl_init(struct platform_device *pdev, 
     164@@ -1235,6 +1236,11 @@ int mtk_pctrl_init(struct platform_devic 
    178165                pctl->regmap1 = syscon_node_to_regmap(node); 
    179166                if (IS_ERR(pctl->regmap1)) 
     
    187174  
    188175        /* Only 8135 has two base addr, other SoCs have only one. */ 
    189 @@ -1280,7 +1286,7 @@ int mtk_pctrl_init(struct platform_device *pdev, 
     176@@ -1280,7 +1286,7 @@ int mtk_pctrl_init(struct platform_devic 
    190177        pctl->chip->ngpio = pctl->devdata->npins; 
    191178        pctl->chip->label = dev_name(&pdev->dev); 
     
    196183        ret = gpiochip_add(pctl->chip); 
    197184        if (ret) { 
    198 @@ -1296,6 +1302,9 @@ int mtk_pctrl_init(struct platform_device *pdev, 
     185@@ -1296,6 +1302,9 @@ int mtk_pctrl_init(struct platform_devic 
    199186                goto chip_error; 
    200187        } 
     
    206193        res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 
    207194        if (!res) { 
    208 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
    209 index c703e7d..30213e5 100644 
    210195--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
    211196+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h 
     
    220205 int mtk_pctrl_spec_pull_set_samereg(struct regmap *regmap, 
    221206                const struct mtk_pin_spec_pupd_set_samereg *pupd_infos, 
    222 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-mt6397.h b/drivers/pinctrl/mediatek/pinctrl-mtk-mt6397.h 
    223 new file mode 100644 
    224 index 0000000..4eb98dd 
    225207--- /dev/null 
    226208+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt6397.h 
     
    650632+ 
    651633+#endif /* __PINCTRL_MTK_MT6397_H */ 
    652 --  
    653 1.7.10.4 
    654  
  • trunk/target/linux/mediatek/patches/0054-pinctrl-mediatek-add-pinctrl-GPIO-EINT-driver-for-mt.patch

    r47354 r47694  
    1919 create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt8127.h 
    2020 
    21 diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig 
    22 index ddae479..0bc84fb 100644 
    2321--- a/drivers/pinctrl/mediatek/Kconfig 
    2422+++ b/drivers/pinctrl/mediatek/Kconfig 
     
    3634 config PINCTRL_MT8173 
    3735        bool "Mediatek MT8173 pin control" 
    38 diff --git a/drivers/pinctrl/mediatek/Makefile b/drivers/pinctrl/mediatek/Makefile 
    39 index ad0180c..eb923d6 100644 
    4036--- a/drivers/pinctrl/mediatek/Makefile 
    4137+++ b/drivers/pinctrl/mediatek/Makefile 
    42 @@ -3,5 +3,6 @@ obj-$(CONFIG_PINCTRL_MTK_COMMON)        += pinctrl-mtk-common.o 
     38@@ -3,5 +3,6 @@ obj-$(CONFIG_PINCTRL_MTK_COMMON)        += pinc 
    4339  
    4440 # SoC Drivers 
     
    4743 obj-$(CONFIG_PINCTRL_MT8173)           += pinctrl-mt8173.o 
    4844 obj-$(CONFIG_PINCTRL_MT6397)           += pinctrl-mt6397.o 
    49 diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8127.c b/drivers/pinctrl/mediatek/pinctrl-mt8127.c 
    50 new file mode 100644 
    51 index 0000000..6a26cfa 
    5245--- /dev/null 
    5346+++ b/drivers/pinctrl/mediatek/pinctrl-mt8127.c 
     
    412405+MODULE_DESCRIPTION("MediaTek MT8127 Pinctrl Driver"); 
    413406+MODULE_AUTHOR("Yingjoe Chen <yingjoe.chen@mediatek.com>"); 
    414 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-mt8127.h b/drivers/pinctrl/mediatek/pinctrl-mtk-mt8127.h 
    415 new file mode 100644 
    416 index 0000000..212559c 
    417407--- /dev/null 
    418408+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt8127.h 
     
    17361726+ 
    17371727+#endif /* __PINCTRL_MTK_MT8127_H */ 
    1738 --  
    1739 1.7.10.4 
    1740  
  • trunk/target/linux/mediatek/patches/0055-mfd-mediatek-Add-GPIO-sub-module-support-into-mfd.patch

    r47354 r47694  
    1212 1 file changed, 3 insertions(+) 
    1313 
    14 diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c 
    15 index 09bc780..012c620 100644 
    1614--- a/drivers/mfd/mt6397-core.c 
    1715+++ b/drivers/mfd/mt6397-core.c 
    18 @@ -34,6 +34,9 @@ static const struct mfd_cell mt6397_devs[] = { 
     16@@ -34,6 +34,9 @@ static const struct mfd_cell mt6397_devs 
    1917        }, { 
    2018                .name = "mt6397-clk", 
     
    2624 }; 
    2725  
    28 --  
    29 1.7.10.4 
    30  
  • trunk/target/linux/mediatek/patches/0056-ARM-dts-mt8127-add-pinctrl-GPIO-EINT-node-for-mt8127.patch

    r47354 r47694  
    1717 create mode 100644 arch/arm/boot/dts/mt8127-pinfunc.h 
    1818 
    19 diff --git a/arch/arm/boot/dts/mt8127-pinfunc.h b/arch/arm/boot/dts/mt8127-pinfunc.h 
    20 new file mode 100644 
    21 index 0000000..9198331 
    2219--- /dev/null 
    2320+++ b/arch/arm/boot/dts/mt8127-pinfunc.h 
     
    765762+ 
    766763+#endif /* __DTS_MT8127_PINFUNC_H */ 
    767 diff --git a/arch/arm/boot/dts/mt8127.dtsi b/arch/arm/boot/dts/mt8127.dtsi 
    768 index 7c2090d..1d429ed 100644 
    769764--- a/arch/arm/boot/dts/mt8127.dtsi 
    770765+++ b/arch/arm/boot/dts/mt8127.dtsi 
     
    805800                        compatible = "mediatek,mt8127-timer", 
    806801                                        "mediatek,mt6577-timer"; 
    807 --  
    808 1.7.10.4 
    809  
  • trunk/target/linux/mediatek/patches/0057-thermal-oops.patch

    r47354 r47694  
    99 1 file changed, 2 insertions(+), 1 deletion(-) 
    1010 
    11 diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal.c 
    12 index 27aab12..5fdcbf6 100644 
    1311--- a/drivers/thermal/mtk_thermal.c 
    1412+++ b/drivers/thermal/mtk_thermal.c 
    15 @@ -394,7 +394,8 @@ static irqreturn_t mtk_thermal_irq(int irq, void *dev_id) 
     13@@ -394,7 +394,8 @@ static irqreturn_t mtk_thermal_irq(int i 
    1614  
    1715        for (i = 0; i < MT8173_NUM_BANKS; i++) { 
     
    2321  
    2422        return IRQ_HANDLED; 
    25 --  
    26 1.7.10.4 
    27  
  • trunk/target/linux/mediatek/patches/0058-dont-disable-clocks.patch

    r47354 r47694  
    88 1 file changed, 1 insertion(+), 1 deletion(-) 
    99 
    10 diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c 
    11 index 5b0f418..360e6e4 100644 
    1210--- a/drivers/clk/clk.c 
    1311+++ b/drivers/clk/clk.c 
    14 @@ -541,7 +541,7 @@ unlock_out: 
     12@@ -542,7 +542,7 @@ unlock_out: 
    1513        clk_enable_unlock(flags); 
    1614 } 
     
    2119 { 
    2220        clk_ignore_unused = true; 
    23 --  
    24 1.7.10.4 
    25  
  • trunk/target/linux/mediatek/patches/0059-arm-mediatek-basic-mt6323-pmic-support.patch

    r47354 r47694  
    2020 create mode 100644 include/linux/mfd/mt6323/registers.h 
    2121 
    22 diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig 
    23 index d5ad04d..ff2c14e 100644 
    2422--- a/drivers/mfd/Kconfig 
    2523+++ b/drivers/mfd/Kconfig 
     
    4139        tristate "MediaTek MT6397 PMIC Support" 
    4240        select MFD_CORE 
    43 diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile 
    44 index 0e5cfeb..6e91123 100644 
    4541--- a/drivers/mfd/Makefile 
    4642+++ b/drivers/mfd/Makefile 
     
    5147+obj-$(CONFIG_MFD_MT6323)       += mt6323-core.o 
    5248 obj-$(CONFIG_MFD_MT6397)       += mt6397-core.o 
    53 diff --git a/drivers/mfd/mt6323-core.c b/drivers/mfd/mt6323-core.c 
    54 new file mode 100644 
    55 index 0000000..012c620 
    5649--- /dev/null 
    5750+++ b/drivers/mfd/mt6323-core.c 
     
    287280+MODULE_LICENSE("GPL"); 
    288281+MODULE_ALIAS("platform:mt6397"); 
    289 diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig 
    290 index a6f116a..336d4c6 100644 
    291282--- a/drivers/regulator/Kconfig 
    292283+++ b/drivers/regulator/Kconfig 
     
    307298        tristate "MediaTek MT6397 PMIC" 
    308299        depends on MFD_MT6397 
    309 diff --git a/drivers/regulator/Makefile b/drivers/regulator/Makefile 
    310 index 2c4da15..ac6a9da 100644 
    311300--- a/drivers/regulator/Makefile 
    312301+++ b/drivers/regulator/Makefile 
    313 @@ -59,6 +59,7 @@ obj-$(CONFIG_REGULATOR_MAX77843) += max77843.o 
     302@@ -59,6 +59,7 @@ obj-$(CONFIG_REGULATOR_MAX77843) += max7 
    314303 obj-$(CONFIG_REGULATOR_MC13783) += mc13783-regulator.o 
    315304 obj-$(CONFIG_REGULATOR_MC13892) += mc13892-regulator.o 
     
    319308 obj-$(CONFIG_REGULATOR_QCOM_RPM) += qcom_rpm-regulator.o 
    320309 obj-$(CONFIG_REGULATOR_PALMAS) += palmas-regulator.o 
    321 diff --git a/drivers/regulator/mt6323-regulator.c b/drivers/regulator/mt6323-regulator.c 
    322 new file mode 100644 
    323 index 0000000..a5b2f47 
    324310--- /dev/null 
    325311+++ b/drivers/regulator/mt6323-regulator.c 
     
    657643+MODULE_LICENSE("GPL"); 
    658644+MODULE_ALIAS("platform:mt6397-regulator"); 
    659 diff --git a/include/linux/mfd/mt6323/core.h b/include/linux/mfd/mt6323/core.h 
    660 new file mode 100644 
    661 index 0000000..cf5265b 
    662645--- /dev/null 
    663646+++ b/include/linux/mfd/mt6323/core.h 
     
    727710+ 
    728711+#endif /* __MFD_MT6397_CORE_H__ */ 
    729 diff --git a/include/linux/mfd/mt6323/registers.h b/include/linux/mfd/mt6323/registers.h 
    730 new file mode 100644 
    731 index 0000000..f23a0a6 
    732712--- /dev/null 
    733713+++ b/include/linux/mfd/mt6323/registers.h 
     
    10951075+ 
    10961076+#endif /* __MFD_MT6397_REGISTERS_H__ */ 
    1097 --  
    1098 1.7.10.4 
    1099  
  • trunk/target/linux/mediatek/patches/0060-arm-mediatek-select-the-arm-timer-by-default.patch

    r47354 r47694  
    1111 1 file changed, 1 insertion(+) 
    1212 
    13 diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig 
    14 index 9f59e58..7704818 100644 
    1513--- a/arch/arm/mach-mediatek/Kconfig 
    1614+++ b/arch/arm/mach-mediatek/Kconfig 
     
    2220        select PINCTRL 
    2321        select MTK_TIMER 
    24 --  
    25 1.7.10.4 
    26  
  • trunk/target/linux/mediatek/patches/0061-arm-mediatek-add-mt7623-clock.patch

    r47354 r47694  
    1313 create mode 100644 include/dt-bindings/clock/mt7623-clk.h 
    1414 
    15 diff --git a/drivers/clk/mediatek/Makefile b/drivers/clk/mediatek/Makefile 
    16 index 8e4b2a4..19a3763 100644 
    1715--- a/drivers/clk/mediatek/Makefile 
    1816+++ b/drivers/clk/mediatek/Makefile 
     
    2321 obj-y += clk-mt8135.o 
    2422 obj-y += clk-mt8173.o 
    25 diff --git a/drivers/clk/mediatek/clk-mt7623.c b/drivers/clk/mediatek/clk-mt7623.c 
    26 new file mode 100644 
    27 index 0000000..07843bb 
    2823--- /dev/null 
    2924+++ b/drivers/clk/mediatek/clk-mt7623.c 
     
    663658+CLK_OF_DECLARE(mtk_apmixedsys, "mediatek,mt7623-apmixedsys", 
    664659+               mtk_apmixedsys_init); 
    665 diff --git a/include/dt-bindings/clock/mt7623-clk.h b/include/dt-bindings/clock/mt7623-clk.h 
    666 new file mode 100644 
    667 index 0000000..cb1e8a9 
    668660--- /dev/null 
    669661+++ b/include/dt-bindings/clock/mt7623-clk.h 
     
    842834+#endif /* _DT_BINDINGS_CLK_MT7623_H */ 
    843835+ 
    844 --  
    845 1.7.10.4 
    846  
  • trunk/target/linux/mediatek/patches/0062-arm-mediatek-add-mt7623-pinctrl-supoort.patch

    r47354 r47694  
    1616 create mode 100644 include/dt-bindings/pinctrl/mt7623-pinfunc.h 
    1717 
    18 diff --git a/drivers/pinctrl/mediatek/Kconfig b/drivers/pinctrl/mediatek/Kconfig 
    19 index 0bc84fb..27c5673 100644 
    2018--- a/drivers/pinctrl/mediatek/Kconfig 
    2119+++ b/drivers/pinctrl/mediatek/Kconfig 
     
    3331        bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135 
    3432        depends on OF 
    35 diff --git a/drivers/pinctrl/mediatek/Makefile b/drivers/pinctrl/mediatek/Makefile 
    36 index eb923d6..8998433 100644 
    3733--- a/drivers/pinctrl/mediatek/Makefile 
    3834+++ b/drivers/pinctrl/mediatek/Makefile 
     
    4541 obj-$(CONFIG_PINCTRL_MT8127)           += pinctrl-mt8127.o 
    4642 obj-$(CONFIG_PINCTRL_MT8173)           += pinctrl-mt8173.o 
    47 diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7623.c b/drivers/pinctrl/mediatek/pinctrl-mt7623.c 
    48 new file mode 100644 
    49 index 0000000..77e1a66 
    5043--- /dev/null 
    5144+++ b/drivers/pinctrl/mediatek/pinctrl-mt7623.c 
     
    419412+MODULE_DESCRIPTION("MediaTek Pinctrl Driver"); 
    420413+MODULE_AUTHOR("John Crispin <blogic@openwrt.org>"); 
    421 diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h b/drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h 
    422 new file mode 100644 
    423 index 0000000..4b65668 
    424414--- /dev/null 
    425415+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h 
     
    23522342+#endif /* __PINCTRL_MTK_MT7623_H */ 
    23532343\ No newline at end of file 
    2354 diff --git a/include/dt-bindings/pinctrl/mt7623-pinfunc.h b/include/dt-bindings/pinctrl/mt7623-pinfunc.h 
    2355 new file mode 100644 
    2356 index 0000000..826835c 
    23572344--- /dev/null 
    23582345+++ b/include/dt-bindings/pinctrl/mt7623-pinfunc.h 
     
    28852872+#endif /* __DTS_MT7623_PINFUNC_H */ 
    28862873\ No newline at end of file 
    2887 --  
    2888 1.7.10.4 
    2889  
  • trunk/target/linux/mediatek/patches/0063-arm-mediatek-add-SDK-ethernet.patch

    r47354 r47694  
    7676 create mode 100644 drivers/net/ethernet/raeth/sync_write.h 
    7777 
    78 diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig 
    79 index eadcb05..627e1d4 100644 
    8078--- a/drivers/net/ethernet/Kconfig 
    8179+++ b/drivers/net/ethernet/Kconfig 
     
    8886 source "drivers/net/ethernet/adaptec/Kconfig" 
    8987 source "drivers/net/ethernet/aeroflex/Kconfig" 
    90 diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile 
    91 index 1367afc..abdd636 100644 
    9288--- a/drivers/net/ethernet/Makefile 
    9389+++ b/drivers/net/ethernet/Makefile 
     
    9793 obj-$(CONFIG_NET_VENDOR_XIRCOM) += xircom/ 
    9894+obj-$(CONFIG_RAETH) += raeth/ 
    99 diff --git a/drivers/net/ethernet/raeth/Kconfig b/drivers/net/ethernet/raeth/Kconfig 
    100 new file mode 100644 
    101 index 0000000..c252c85 
    10295--- /dev/null 
    10396+++ b/drivers/net/ethernet/raeth/Kconfig 
     
    518511+bool 
    519512+default y if GE1_MII_AN || GE2_MII_AN 
    520 diff --git a/drivers/net/ethernet/raeth/Makefile b/drivers/net/ethernet/raeth/Makefile 
    521 new file mode 100644 
    522 index 0000000..563af05 
    523513--- /dev/null 
    524514+++ b/drivers/net/ethernet/raeth/Makefile 
     
    591581+EXTRA_CFLAGS   += -DTASKLET_WORKQUEUE_SW 
    592582+endif 
    593 diff --git a/drivers/net/ethernet/raeth/Makefile.release b/drivers/net/ethernet/raeth/Makefile.release 
    594 new file mode 100644 
    595 index 0000000..ecdeeda 
    596583--- /dev/null 
    597584+++ b/drivers/net/ethernet/raeth/Makefile.release 
     
    657644+EXTRA_CFLAGS   += -DTASKLET_WORKQUEUE_SW 
    658645+endif 
    659 diff --git a/drivers/net/ethernet/raeth/csr_netlink.h b/drivers/net/ethernet/raeth/csr_netlink.h 
    660 new file mode 100644 
    661 index 0000000..add7745 
    662646--- /dev/null 
    663647+++ b/drivers/net/ethernet/raeth/csr_netlink.h 
     
    690674+ 
    691675+#endif 
    692 diff --git a/drivers/net/ethernet/raeth/dvt/pkt_gen.c b/drivers/net/ethernet/raeth/dvt/pkt_gen.c 
    693 new file mode 100755 
    694 index 0000000..b351b21 
    695676--- /dev/null 
    696677+++ b/drivers/net/ethernet/raeth/dvt/pkt_gen.c 
     
    784765+MODULE_PARM_DESC (ifname, "interface name"); 
    785766+ 
    786 diff --git a/drivers/net/ethernet/raeth/dvt/pkt_gen_tcp_frag.c b/drivers/net/ethernet/raeth/dvt/pkt_gen_tcp_frag.c 
    787 new file mode 100755 
    788 index 0000000..e78c65a 
    789767--- /dev/null 
    790768+++ b/drivers/net/ethernet/raeth/dvt/pkt_gen_tcp_frag.c 
     
    928906+MODULE_PARM_DESC (ifname, "interface name"); 
    929907+ 
    930 diff --git a/drivers/net/ethernet/raeth/dvt/pkt_gen_udp_frag.c b/drivers/net/ethernet/raeth/dvt/pkt_gen_udp_frag.c 
    931 new file mode 100755 
    932 index 0000000..917e7ad 
    933908--- /dev/null 
    934909+++ b/drivers/net/ethernet/raeth/dvt/pkt_gen_udp_frag.c 
     
    11251100+MODULE_PARM_DESC (ifname, "interface name"); 
    11261101+ 
    1127 diff --git a/drivers/net/ethernet/raeth/dvt/raether_pdma_dvt.c b/drivers/net/ethernet/raeth/dvt/raether_pdma_dvt.c 
    1128 new file mode 100755 
    1129 index 0000000..971a821 
    11301102--- /dev/null 
    11311103+++ b/drivers/net/ethernet/raeth/dvt/raether_pdma_dvt.c 
     
    26582630+} 
    26592631+ 
    2660 diff --git a/drivers/net/ethernet/raeth/dvt/raether_pdma_dvt.h b/drivers/net/ethernet/raeth/dvt/raether_pdma_dvt.h 
    2661 new file mode 100755 
    2662 index 0000000..600aab7 
    26632632--- /dev/null 
    26642633+++ b/drivers/net/ethernet/raeth/dvt/raether_pdma_dvt.h 
     
    27392708+void pdma_dvt_set_dma_mode(void); 
    27402709+ 
    2741 diff --git a/drivers/net/ethernet/raeth/ethtool_readme.txt b/drivers/net/ethernet/raeth/ethtool_readme.txt 
    2742 new file mode 100644 
    2743 index 0000000..10e918b 
    27442710--- /dev/null 
    27452711+++ b/drivers/net/ethernet/raeth/ethtool_readme.txt 
     
    27892755+ 
    27902756+ 
    2791 diff --git a/drivers/net/ethernet/raeth/mcast.c b/drivers/net/ethernet/raeth/mcast.c 
    2792 new file mode 100644 
    2793 index 0000000..d796b03 
    27942757--- /dev/null 
    27952758+++ b/drivers/net/ethernet/raeth/mcast.c 
     
    29822945+} 
    29832946+ 
    2984 diff --git a/drivers/net/ethernet/raeth/mii_mgr.c b/drivers/net/ethernet/raeth/mii_mgr.c 
    2985 new file mode 100644 
    2986 index 0000000..77a47f1 
    29872947--- /dev/null 
    29882948+++ b/drivers/net/ethernet/raeth/mii_mgr.c 
     
    35913551+EXPORT_SYMBOL(mii_mgr_write); 
    35923552+EXPORT_SYMBOL(mii_mgr_read); 
    3593 diff --git a/drivers/net/ethernet/raeth/ra2882ethreg.h b/drivers/net/ethernet/raeth/ra2882ethreg.h 
    3594 new file mode 100644 
    3595 index 0000000..c67a042 
    35963553--- /dev/null 
    35973554+++ b/drivers/net/ethernet/raeth/ra2882ethreg.h 
     
    55825539+#define RAETH_TX_DONE_INT0 TX_DONE_INT0 
    55835540+#define RAETH_DLY_INT_CFG DLY_INT_CFG 
    5584 diff --git a/drivers/net/ethernet/raeth/ra_ethtool.c b/drivers/net/ethernet/raeth/ra_ethtool.c 
    5585 new file mode 100644 
    5586 index 0000000..ff13e59 
    55875541--- /dev/null 
    55885542+++ b/drivers/net/ethernet/raeth/ra_ethtool.c 
     
    61036057+ 
    61046058+ 
    6105 diff --git a/drivers/net/ethernet/raeth/ra_ethtool.h b/drivers/net/ethernet/raeth/ra_ethtool.h 
    6106 new file mode 100644 
    6107 index 0000000..d64a1ab 
    61086059--- /dev/null 
    61096060+++ b/drivers/net/ethernet/raeth/ra_ethtool.h 
     
    61226073+ 
    61236074+#endif 
    6124 diff --git a/drivers/net/ethernet/raeth/ra_ioctl.h b/drivers/net/ethernet/raeth/ra_ioctl.h 
    6125 new file mode 100644 
    6126 index 0000000..83b806a 
    61276075--- /dev/null 
    61286076+++ b/drivers/net/ethernet/raeth/ra_ioctl.h 
     
    62306178+ 
    62316179+#endif 
    6232 diff --git a/drivers/net/ethernet/raeth/ra_mac.c b/drivers/net/ethernet/raeth/ra_mac.c 
    6233 new file mode 100644 
    6234 index 0000000..e8e978d 
    62356180--- /dev/null 
    62366181+++ b/drivers/net/ethernet/raeth/ra_mac.c 
     
    88818826+} 
    88828827+EXPORT_SYMBOL(procRegDir); 
    8883 diff --git a/drivers/net/ethernet/raeth/ra_mac.h b/drivers/net/ethernet/raeth/ra_mac.h 
    8884 new file mode 100644 
    8885 index 0000000..66b32d3 
    88868828--- /dev/null 
    88878829+++ b/drivers/net/ethernet/raeth/ra_mac.h 
     
    89448886+#endif  //#if defined(CONFIG_RAETH_PDMA_DVT) 
    89458887+#endif 
    8946 diff --git a/drivers/net/ethernet/raeth/ra_netlink.c b/drivers/net/ethernet/raeth/ra_netlink.c 
    8947 new file mode 100644 
    8948 index 0000000..f7c3650 
    89498888--- /dev/null 
    89508889+++ b/drivers/net/ethernet/raeth/ra_netlink.c 
     
    90929031+       } 
    90939032+} 
    9094 diff --git a/drivers/net/ethernet/raeth/ra_netlink.h b/drivers/net/ethernet/raeth/ra_netlink.h 
    9095 new file mode 100644 
    9096 index 0000000..19ca71f 
    90979033--- /dev/null 
    90989034+++ b/drivers/net/ethernet/raeth/ra_netlink.h 
     
    91089044+ 
    91099045+#endif 
    9110 diff --git a/drivers/net/ethernet/raeth/ra_qos.c b/drivers/net/ethernet/raeth/ra_qos.c 
    9111 new file mode 100644 
    9112 index 0000000..0a7d9c5 
    91139046--- /dev/null 
    91149047+++ b/drivers/net/ethernet/raeth/ra_qos.c 
     
    97699702+#endif 
    97709703+} 
    9771 diff --git a/drivers/net/ethernet/raeth/ra_qos.h b/drivers/net/ethernet/raeth/ra_qos.h 
    9772 new file mode 100644 
    9773 index 0000000..7f2a8a1 
    97749704--- /dev/null 
    97759705+++ b/drivers/net/ethernet/raeth/ra_qos.h 
     
    97939723+void set_output_shaper(void); 
    97949724+#endif 
    9795 diff --git a/drivers/net/ethernet/raeth/ra_rfrw.c b/drivers/net/ethernet/raeth/ra_rfrw.c 
    9796 new file mode 100644 
    9797 index 0000000..d73db01 
    97989725--- /dev/null 
    97999726+++ b/drivers/net/ethernet/raeth/ra_rfrw.c 
     
    98659792+} 
    98669793+ 
    9867 diff --git a/drivers/net/ethernet/raeth/ra_rfrw.h b/drivers/net/ethernet/raeth/ra_rfrw.h 
    9868 new file mode 100644 
    9869 index 0000000..da5a371 
    98709794--- /dev/null 
    98719795+++ b/drivers/net/ethernet/raeth/ra_rfrw.h 
     
    98779801+ 
    98789802+#endif 
    9879 diff --git a/drivers/net/ethernet/raeth/raether.c b/drivers/net/ethernet/raeth/raether.c 
    9880 new file mode 100644 
    9881 index 0000000..328285a 
    98829803--- /dev/null 
    98839804+++ b/drivers/net/ethernet/raeth/raether.c 
     
    1628416205+ 
    1628516206+MODULE_LICENSE("GPL"); 
    16286 diff --git a/drivers/net/ethernet/raeth/raether.h b/drivers/net/ethernet/raeth/raether.h 
    16287 new file mode 100644 
    16288 index 0000000..7a97109 
    1628916207--- /dev/null 
    1629016208+++ b/drivers/net/ethernet/raeth/raether.h 
     
    1641616334+ 
    1641716335+#endif 
    16418 diff --git a/drivers/net/ethernet/raeth/raether_hwlro.c b/drivers/net/ethernet/raeth/raether_hwlro.c 
    16419 new file mode 100755 
    16420 index 0000000..5fc4f36 
    1642116336--- /dev/null 
    1642216337+++ b/drivers/net/ethernet/raeth/raether_hwlro.c 
     
    1676916684+EXPORT_SYMBOL(fe_hw_lro_init); 
    1677016685+ 
    16771 diff --git a/drivers/net/ethernet/raeth/raether_pdma.c b/drivers/net/ethernet/raeth/raether_pdma.c 
    16772 new file mode 100755 
    16773 index 0000000..4d47ee2 
    1677416686--- /dev/null 
    1677516687+++ b/drivers/net/ethernet/raeth/raether_pdma.c 
     
    1789617808+EXPORT_SYMBOL(fe_dma_init); 
    1789717809+EXPORT_SYMBOL(rt2880_eth_send); 
    17898 diff --git a/drivers/net/ethernet/raeth/raether_qdma.c b/drivers/net/ethernet/raeth/raether_qdma.c 
    17899 new file mode 100644 
    17900 index 0000000..acf8bfe 
    1790117810--- /dev/null 
    1790217811+++ b/drivers/net/ethernet/raeth/raether_qdma.c 
     
    1930919218+EXPORT_SYMBOL(fe_dma_init); 
    1931019219+EXPORT_SYMBOL(rt2880_eth_send); 
    19311 diff --git a/drivers/net/ethernet/raeth/raether_qdma_mt7623.c b/drivers/net/ethernet/raeth/raether_qdma_mt7623.c 
    19312 new file mode 100644 
    19313 index 0000000..b465b75 
    1931419220--- /dev/null 
    1931519221+++ b/drivers/net/ethernet/raeth/raether_qdma_mt7623.c 
     
    2033520241+EXPORT_SYMBOL(fe_dma_init); 
    2033620242+EXPORT_SYMBOL(rt2880_eth_send); 
    20337 diff --git a/drivers/net/ethernet/raeth/smb_hook.c b/drivers/net/ethernet/raeth/smb_hook.c 
    20338 new file mode 100644 
    20339 index 0000000..617139c 
    2034020243--- /dev/null 
    2034120244+++ b/drivers/net/ethernet/raeth/smb_hook.c 
     
    2035820261+ 
    2035920262+ 
    20360 diff --git a/drivers/net/ethernet/raeth/smb_nf.c b/drivers/net/ethernet/raeth/smb_nf.c 
    20361 new file mode 100644 
    20362 index 0000000..86250eb 
    2036320263--- /dev/null 
    2036420264+++ b/drivers/net/ethernet/raeth/smb_nf.c 
     
    2054120441+ 
    2054220442+MODULE_LICENSE("GPL"); 
    20543 diff --git a/drivers/net/ethernet/raeth/sync_write.h b/drivers/net/ethernet/raeth/sync_write.h 
    20544 new file mode 100644 
    20545 index 0000000..8b800e6 
    2054620443--- /dev/null 
    2054720444+++ b/drivers/net/ethernet/raeth/sync_write.h 
     
    2065020547+ 
    2065120548+#endif  /* !_MT_SYNC_WRITE_H */ 
    20652 --  
    20653 1.7.10.4 
    20654  
  • trunk/target/linux/mediatek/patches/0064-arm-mediatek-add-mt7623-pcie-support.patch

    r47354 r47694  
    1313 create mode 100644 arch/arm/mach-mediatek/pcie.h 
    1414 
    15 diff --git a/arch/arm/mach-mediatek/Makefile b/arch/arm/mach-mediatek/Makefile 
    16 index 2116460..aca28a2 100644 
    1715--- a/arch/arm/mach-mediatek/Makefile 
    1816+++ b/arch/arm/mach-mediatek/Makefile 
     
    2321-obj-$(CONFIG_ARCH_MEDIATEK) += mediatek.o 
    2422+obj-$(CONFIG_ARCH_MEDIATEK) += mediatek.o pcie.o 
    25 diff --git a/arch/arm/mach-mediatek/pcie.c b/arch/arm/mach-mediatek/pcie.c 
    26 new file mode 100644 
    27 index 0000000..8394712 
    2823--- /dev/null 
    2924+++ b/arch/arm/mach-mediatek/pcie.c 
     
    412407+ 
    413408+late_initcall(mtk_pcie_init); 
    414 diff --git a/arch/arm/mach-mediatek/pcie.h b/arch/arm/mach-mediatek/pcie.h 
    415 new file mode 100644 
    416 index 0000000..400a760e 
    417409--- /dev/null 
    418410+++ b/arch/arm/mach-mediatek/pcie.h 
     
    432424+ 
    433425+ 
    434 --  
    435 1.7.10.4 
    436  
  • trunk/target/linux/mediatek/patches/0065-arm-mediatek-add-mt7623-smp-support.patch

    r47354 r47694  
    99 1 file changed, 7 insertions(+) 
    1010 
    11 diff --git a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-mediatek/platsmp.c 
    12 index e266b3d..81fdcff 100644 
    1311--- a/arch/arm/mach-mediatek/platsmp.c 
    1412+++ b/arch/arm/mach-mediatek/platsmp.c 
    15 @@ -45,6 +45,12 @@ static const struct mtk_smp_boot_info mtk_mt6589_boot = { 
     13@@ -45,6 +45,12 @@ static const struct mtk_smp_boot_info mt 
    1614        { 0x38, 0x3c, 0x40 }, 
    1715 }; 
     
    2624        { .compatible   = "mediatek,mt8135", .data = &mtk_mt8135_tz_boot }, 
    2725        { .compatible   = "mediatek,mt8127", .data = &mtk_mt8135_tz_boot }, 
    28 @@ -52,6 +58,7 @@ static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = { 
     26@@ -52,6 +58,7 @@ static const struct of_device_id mtk_tz_ 
    2927  
    3028 static const struct of_device_id mtk_smp_boot_infos[] __initconst = { 
     
    3432  
    3533 static void __iomem *mtk_smp_base; 
    36 --  
    37 1.7.10.4 
    38  
  • trunk/target/linux/mediatek/patches/0066-arm-mediatek-add-m7623-devicetree.patch

    r47354 r47694  
    1313 create mode 100644 arch/arm/boot/dts/mt7623.dtsi 
    1414 
    15 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile 
    16 index 992736b..525392e 100644 
    1715--- a/arch/arm/boot/dts/Makefile 
    1816+++ b/arch/arm/boot/dts/Makefile 
     
    2523        mt8135-evbp1.dtb 
    2624 endif 
    27 diff --git a/arch/arm/boot/dts/mt7623-evb.dts b/arch/arm/boot/dts/mt7623-evb.dts 
    28 new file mode 100644 
    29 index 0000000..759142f 
    3025--- /dev/null 
    3126+++ b/arch/arm/boot/dts/mt7623-evb.dts 
     
    193188+        pinctrl-0 = <&pinctrl_pcie_default>; 
    194189+}; 
    195 diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi 
    196 new file mode 100644 
    197 index 0000000..ba74ed9 
    198190--- /dev/null 
    199191+++ b/arch/arm/boot/dts/mt7623.dtsi 
     
    547539+       }; 
    548540+}; 
    549 --  
    550 1.7.10.4 
    551  
  • trunk/target/linux/mediatek/patches/0067-arm-mediatek-add-mt7623-support.patch

    r47354 r47694  
    1212 create mode 100644 include/dt-bindings/reset-controller/mt7623-resets.h 
    1313 
    14 diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig 
    15 index 7704818..5393d25 100644 
    1614--- a/arch/arm/mach-mediatek/Kconfig 
    1715+++ b/arch/arm/mach-mediatek/Kconfig 
     
    2927        bool "MediaTek MT8127 SoCs support" 
    3028        default ARCH_MEDIATEK 
    31 diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c 
    32 index 6b38d67..ab8cf21 100644 
    3329--- a/arch/arm/mach-mediatek/mediatek.c 
    3430+++ b/arch/arm/mach-mediatek/mediatek.c 
    35 @@ -29,6 +29,7 @@ static void __init mediatek_timer_init(void) 
     31@@ -29,6 +29,7 @@ static void __init mediatek_timer_init(v 
    3632        void __iomem *gpt_base = 0; 
    3733  
     
    4137            of_machine_is_compatible("mediatek,mt8127")) { 
    4238                /* turn on GPT6 which ungates arch timer clocks */ 
    43 @@ -48,6 +49,7 @@ static void __init mediatek_timer_init(void) 
     39@@ -48,6 +49,7 @@ static void __init mediatek_timer_init(v 
    4440 static const char * const mediatek_board_dt_compat[] = { 
    4541        "mediatek,mt6589", 
     
    4945        "mediatek,mt8135", 
    5046        NULL, 
    51 diff --git a/include/dt-bindings/reset-controller/mt7623-resets.h b/include/dt-bindings/reset-controller/mt7623-resets.h 
    52 new file mode 100644 
    53 index 0000000..28a7d69 
    5447--- /dev/null 
    5548+++ b/include/dt-bindings/reset-controller/mt7623-resets.h 
     
    114107+ 
    115108+#endif /* _DT_BINDINGS_RESET_CONTROLLER_MT7623 */ 
    116 --  
    117 1.7.10.4 
    118  
  • trunk/target/linux/mediatek/patches/0068-SDK_compat.patch

    r47354 r47694  
    2222 create mode 100644 arch/arm/mach-mediatek/rt_mmap.h 
    2323 
    24 diff --git a/arch/arm/include/asm/mach/mt_irq.h b/arch/arm/include/asm/mach/mt_irq.h 
    25 new file mode 100644 
    26 index 0000000..ff265e0 
    2724--- /dev/null 
    2825+++ b/arch/arm/include/asm/mach/mt_irq.h 
     
    202199+ 
    203200+#endif 
    204 diff --git a/arch/arm/include/asm/rt2880/mt_irq.h b/arch/arm/include/asm/rt2880/mt_irq.h 
    205 new file mode 100644 
    206 index 0000000..ff265e0 
    207201--- /dev/null 
    208202+++ b/arch/arm/include/asm/rt2880/mt_irq.h 
     
    382376+ 
    383377+#endif 
    384 diff --git a/arch/arm/include/asm/rt2880/rt_mmap.h b/arch/arm/include/asm/rt2880/rt_mmap.h 
    385 new file mode 100644 
    386 index 0000000..e86b3bb 
    387378--- /dev/null 
    388379+++ b/arch/arm/include/asm/rt2880/rt_mmap.h 
     
    446437+//for backward-compatible 
    447438+#define RALINK_FE_RST                  RSTCTL_FE_RST 
    448 diff --git a/arch/arm/include/asm/rt2880/surfboardint.h b/arch/arm/include/asm/rt2880/surfboardint.h 
    449 new file mode 100644 
    450 index 0000000..4581598 
    451439--- /dev/null 
    452440+++ b/arch/arm/include/asm/rt2880/surfboardint.h 
     
    494482+ 
    495483+ 
    496 diff --git a/arch/arm/include/asm/rt2880/x_define_irq.h b/arch/arm/include/asm/rt2880/x_define_irq.h 
    497 new file mode 100644 
    498 index 0000000..4b2e669 
    499484--- /dev/null 
    500485+++ b/arch/arm/include/asm/rt2880/x_define_irq.h 
     
    660645+X_DEFINE_IRQ(MT_FE_QDMA_IRQ_ID             , 231, H,LEVEL) 
    661646+X_DEFINE_IRQ(MT_FE_ORIG_IRQ_ID             , 232, H,LEVEL) 
    662 diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c 
    663 index ab8cf21..c0e373b 100644 
    664647--- a/arch/arm/mach-mediatek/mediatek.c 
    665648+++ b/arch/arm/mach-mediatek/mediatek.c 
     
    851834  
    852835 #define GPT6_CON_MT65xx 0x10008060 
    853 @@ -55,7 +235,13 @@ static const char * const mediatek_board_dt_compat[] = { 
     836@@ -55,7 +235,13 @@ static const char * const mediatek_board 
    854837        NULL, 
    855838 }; 
     
    865848+       .map_io         = mt_map_io, 
    866849 MACHINE_END 
    867 diff --git a/arch/arm/mach-mediatek/mt_reg_base.h b/arch/arm/mach-mediatek/mt_reg_base.h 
    868 new file mode 100644 
    869 index 0000000..cf2bb9e 
    870850--- /dev/null 
    871851+++ b/arch/arm/mach-mediatek/mt_reg_base.h 
     
    15111491+ 
    15121492+#endif 
    1513 diff --git a/arch/arm/mach-mediatek/rt_mmap.h b/arch/arm/mach-mediatek/rt_mmap.h 
    1514 new file mode 100644 
    1515 index 0000000..e86b3bb 
    15161493--- /dev/null 
    15171494+++ b/arch/arm/mach-mediatek/rt_mmap.h 
     
    15751552+//for backward-compatible 
    15761553+#define RALINK_FE_RST                  RSTCTL_FE_RST 
    1577 --  
    1578 1.7.10.4 
    1579  
  • trunk/target/linux/mediatek/patches/0069-arm-mediatek-add-mt7623-support-to-pmic-wrapper.patch

    r47354 r47694  
    99 1 file changed, 296 insertions(+), 49 deletions(-) 
    1010 
    11 diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c 
    12 index f432291..9ff02a1 100644 
    1311--- a/drivers/soc/mediatek/mtk-pmic-wrap.c 
    1412+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c 
     
    336334 { 
    337335        return wrp->type == PWRAP_MT8135; 
    338 @@ -475,6 +677,16 @@ static int pwrap_read(struct pmic_wrapper *wrp, u32 adr, u32 *rdata) 
     336@@ -475,6 +677,16 @@ static int pwrap_read(struct pmic_wrappe 
    339337        return 0; 
    340338 } 
     
    353351 { 
    354352        return pwrap_read(context, adr, rdata); 
    355 @@ -535,7 +747,7 @@ static int pwrap_init_sidly(struct pmic_wrapper *wrp) 
     353@@ -535,7 +747,7 @@ static int pwrap_init_sidly(struct pmic_ 
    356354  
    357355        for (i = 0; i < 4; i++) { 
     
    362360                        dev_dbg(wrp->dev, "[Read Test] pass, SIDLY=%x\n", i); 
    363361                        pass |= 1 << i; 
    364 @@ -561,6 +773,14 @@ static int pwrap_init_reg_clock(struct pmic_wrapper *wrp) 
     362@@ -561,6 +773,14 @@ static int pwrap_init_reg_clock(struct p 
    365363                pwrap_writel(wrp, 0x4, PWRAP_CSHEXT_READ); 
    366364                pwrap_writel(wrp, 0x0, PWRAP_CSLEXT_START); 
     
    377375                pwrap_writel(wrp, 0x0, PWRAP_CSHEXT_WRITE); 
    378376                pwrap_writel(wrp, 0x4, PWRAP_CSHEXT_READ); 
    379 @@ -581,7 +801,7 @@ static bool pwrap_is_pmic_cipher_ready(struct pmic_wrapper *wrp) 
     377@@ -581,7 +801,7 @@ static bool pwrap_is_pmic_cipher_ready(s 
    380378        u32 rdata; 
    381379        int ret; 
     
    386384                return 0; 
    387385  
    388 @@ -606,12 +826,16 @@ static int pwrap_init_cipher(struct pmic_wrapper *wrp) 
     386@@ -606,12 +826,16 @@ static int pwrap_init_cipher(struct pmic 
    389387        } 
    390388  
     
    409407        /* wait for cipher data ready@AP */ 
    410408        ret = pwrap_wait_for_state(wrp, pwrap_is_cipher_ready); 
    411 @@ -628,7 +852,7 @@ static int pwrap_init_cipher(struct pmic_wrapper *wrp) 
     409@@ -628,7 +852,7 @@ static int pwrap_init_cipher(struct pmic 
    412410        } 
    413411  
     
    418416        if (ret) { 
    419417                dev_err(wrp->dev, "cipher mode idle fail, ret=%d\n", ret); 
    420 @@ -638,8 +862,8 @@ static int pwrap_init_cipher(struct pmic_wrapper *wrp) 
     418@@ -638,8 +862,8 @@ static int pwrap_init_cipher(struct pmic 
    421419        pwrap_writel(wrp, 1, PWRAP_CIPHER_MODE); 
    422420  
     
    429427                dev_err(wrp->dev, "rdata=0x%04X\n", rdata); 
    430428                return -EFAULT; 
    431 @@ -657,12 +881,17 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     429@@ -657,12 +881,17 @@ static int pwrap_init(struct pmic_wrappe 
    432430        if (wrp->rstc_bridge) 
    433431                reset_control_reset(wrp->rstc_bridge); 
     
    448446        ret = pwrap_reset_spislave(wrp); 
    449447        if (ret) 
    450 @@ -674,6 +903,9 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     448@@ -674,6 +903,9 @@ static int pwrap_init(struct pmic_wrappe 
    451449  
    452450        pwrap_writel(wrp, 1, PWRAP_WACS2_EN); 
     
    458456        if (ret) 
    459457                return ret; 
    460 @@ -684,7 +916,7 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     458@@ -684,7 +916,7 @@ static int pwrap_init(struct pmic_wrappe 
    461459                return ret; 
    462460  
     
    467465        /* Check IDLE & INIT_DONE in advance */ 
    468466        ret = pwrap_wait_for_state(wrp, pwrap_is_fsm_idle_and_sync_idle); 
    469 @@ -696,7 +928,7 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     467@@ -696,7 +928,7 @@ static int pwrap_init(struct pmic_wrappe 
    470468        pwrap_writel(wrp, 1, PWRAP_DIO_EN); 
    471469  
     
    476474                dev_err(wrp->dev, "Read test failed after switch to DIO mode: 0x%04x != 0x%04x\n", 
    477475                                PWRAP_DEW_READ_TEST_VAL, rdata); 
    478 @@ -709,12 +941,13 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     476@@ -709,12 +941,13 @@ static int pwrap_init(struct pmic_wrappe 
    479477                return ret; 
    480478  
     
    492490  
    493491        if (pwrap_is_mt8135(wrp)) 
    494 @@ -728,7 +961,16 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     492@@ -728,7 +961,16 @@ static int pwrap_init(struct pmic_wrappe 
    495493        pwrap_writel(wrp, 0xf, PWRAP_WDT_UNIT); 
    496494        pwrap_writel(wrp, 0xffffffff, PWRAP_WDT_SRC_EN); 
     
    510508        if (pwrap_is_mt8135(wrp)) { 
    511509                /* enable pwrap events and pwrap bridge in AP side */ 
    512 @@ -743,15 +985,15 @@ static int pwrap_init(struct pmic_wrapper *wrp) 
     510@@ -743,15 +985,15 @@ static int pwrap_init(struct pmic_wrappe 
    513511                writel(0x7ff, wrp->bridge_base + PWRAP_MT8135_BRIDGE_INT_EN); 
    514512  
     
    531529                        return -EFAULT; 
    532530                } 
    533 @@ -795,6 +1037,9 @@ static const struct regmap_config pwrap_regmap_config = { 
     531@@ -795,6 +1037,9 @@ static const struct regmap_config pwrap_ 
    534532  
    535533 static struct of_device_id of_pwrap_match_tbl[] = { 
     
    541539                .data = &pwrap_mt8135, 
    542540        }, { 
    543 @@ -824,6 +1069,8 @@ static int pwrap_probe(struct platform_device *pdev) 
     541@@ -824,6 +1069,8 @@ static int pwrap_probe(struct platform_d 
    544542  
    545543        type = of_id->data; 
     
    550548        wrp->arb_en_all = type->arb_en_all; 
    551549        wrp->dev = &pdev->dev; 
    552 --  
    553 1.7.10.4 
    554  
  • trunk/target/linux/mediatek/patches/0070-clk-mediatek-Export-CPU-mux-clocks-for-CPU-frequency.patch

    r47354 r47694  
    2424 create mode 100644 drivers/clk/mediatek/clk-cpumux.h 
    2525 
    26 diff --git a/drivers/clk/mediatek/Makefile b/drivers/clk/mediatek/Makefile 
    27 index 19a3763..fe07e26 100644 
    2826--- a/drivers/clk/mediatek/Makefile 
    2927+++ b/drivers/clk/mediatek/Makefile 
     
    3432 obj-y += clk-mt7623.o 
    3533 obj-y += clk-mt8135.o 
    36 diff --git a/drivers/clk/mediatek/clk-cpumux.c b/drivers/clk/mediatek/clk-cpumux.c 
    37 new file mode 100644 
    38 index 0000000..593df45 
    3934--- /dev/null 
    4035+++ b/drivers/clk/mediatek/clk-cpumux.c 
     
    159154+       return 0; 
    160155+} 
    161 diff --git a/drivers/clk/mediatek/clk-cpumux.h b/drivers/clk/mediatek/clk-cpumux.h 
    162 new file mode 100644 
    163 index 0000000..dddaad5 
    164156--- /dev/null 
    165157+++ b/drivers/clk/mediatek/clk-cpumux.h 
     
    195187+ 
    196188+#endif /* __DRV_CLK_CPUMUX_H */ 
    197 --  
    198 1.7.10.4 
    199  
  • trunk/target/linux/mediatek/patches/0071-clk.patch

    r47354 r47694  
    88 1 file changed, 83 insertions(+), 111 deletions(-) 
    99 
    10 diff --git a/drivers/clk/mediatek/clk-mt7623.c b/drivers/clk/mediatek/clk-mt7623.c 
    11 index 07843bb..d46b2ad 100644 
    1210--- a/drivers/clk/mediatek/clk-mt7623.c 
    1311+++ b/drivers/clk/mediatek/clk-mt7623.c 
     
    2018 static DEFINE_SPINLOCK(mt7623_clk_lock); 
    2119  
    22 @@ -37,18 +38,11 @@ static void mtk_clk_enable_critical(void) 
     20@@ -37,18 +38,11 @@ static void mtk_clk_enable_critical(void 
    2321        clk_prepare_enable(mt7623_top_clk_data->clks[CLK_TOP_RTC_SEL]); 
    2422 } 
     
    4341        FACTOR(CLK_TOP_UNIVPLL_624M, "univpll_624m", "univpll", 1, 2), 
    4442        FACTOR(CLK_TOP_UNIVPLL_416M, "univpll_416m", "univpll", 1, 3), 
    45 @@ -61,13 +55,6 @@ static const struct mtk_fixed_factor top_divs[] __initconst = { 
     43@@ -61,13 +55,6 @@ static const struct mtk_fixed_factor top 
    4644        FACTOR(CLK_TOP_AUDPLL_D16, "audpll_d16", "audpll", 1, 16), 
    4745        FACTOR(CLK_TOP_AUDPLL_24, "audpll_d24", "audpll", 1, 24), 
     
    5755  
    5856        FACTOR(CLK_TOP_SYSPLL1_D2, "syspll1_d2", "mainpll_650m", 1, 2), 
    59 @@ -85,9 +72,6 @@ static const struct mtk_fixed_factor top_divs[] __initconst = { 
     57@@ -85,9 +72,6 @@ static const struct mtk_fixed_factor top 
    6058        FACTOR(CLK_TOP_SYSPLL_D5, "syspll_d5", "mainpll_260m", 1, 1), 
    6159        FACTOR(CLK_TOP_SYSPLL_D7, "syspll_d7", "mainpll_185p6m", 1, 1), 
     
    6765        FACTOR(CLK_TOP_UNIVPLL1_D4, "univpll1_d4", "univpll_624m", 1, 4), 
    6866        FACTOR(CLK_TOP_UNIVPLL1_D8, "univpll1_d8", "univpll_624m", 1, 8), 
    69 @@ -110,9 +94,6 @@ static const struct mtk_fixed_factor top_divs[] __initconst = { 
     67@@ -110,9 +94,6 @@ static const struct mtk_fixed_factor top 
    7068  
    7169        FACTOR(CLK_TOP_UNIVPLL_D5, "univpll_d5", "univpll_249p6m", 1, 1), 
     
    7775  
    7876 static const char * const axi_parents[] __initconst = { 
    79 @@ -155,18 +136,6 @@ static const char * const pwm_parents[] __initconst = { 
     77@@ -155,18 +136,6 @@ static const char * const pwm_parents[] 
    8078        "univpll1_d4", 
    8179 }; 
     
    9694        "clk26m", 
    9795        "mmpll_ck", 
    98 @@ -178,17 +147,6 @@ static const char * const mfg_parents[] __initconst = { 
     96@@ -178,17 +147,6 @@ static const char * const mfg_parents[] 
    9997        "univpll1_d2", 
    10098 }; 
     
    114112        "clk26m", 
    115113        "univpll2_d8", 
    116 @@ -277,35 +235,6 @@ static const char * const scp_parents[] __initconst = { 
     114@@ -277,35 +235,6 @@ static const char * const scp_parents[] 
    117115        "dmpll_d4", 
    118116 }; 
     
    150148        "clk26m", 
    151149        "audpll", 
    152 @@ -317,17 +246,6 @@ static const char * const apll_parents[] __initconst = { 
     150@@ -317,17 +246,6 @@ static const char * const apll_parents[] 
    153151        "clk26m", 
    154152 }; 
     
    168166        "clk32k", 
    169167        "external_32k", 
    170 @@ -367,9 +285,7 @@ static const struct mtk_composite top_muxes[] __initconst = { 
     168@@ -367,9 +285,7 @@ static const struct mtk_composite top_mu 
    171169                0x0140, 24, 3, INVALID_MUX_GATE_BIT), 
    172170        /* CLK_CFG_1 */ 
     
    178176        MUX_GATE(CLK_TOP_UART_SEL, "uart_sel", uart_parents, 0x0060, 0, 1, 7), 
    179177        MUX_GATE(CLK_TOP_SPI_SEL, "spi_sel", spi_parents, 0x0060, 8, 3, 15), 
    180 @@ -384,12 +300,8 @@ static const struct mtk_composite top_muxes[] __initconst = { 
     178@@ -384,12 +300,8 @@ static const struct mtk_composite top_mu 
    181179        /* CLK_CFG_4 */ 
    182180        MUX_GATE(CLK_TOP_PMICSPI_SEL, "pmicspi_sel", pmic_spi_parents, 0x0080, 0, 4, 7), 
     
    191189        MUX_GATE(CLK_TOP_RTC_SEL, "rtc_sel", rtc_parents, 0x00a0, 0, 2, 7), 
    192190        MUX_GATE(CLK_TOP_NFI2X_SEL, "nfi2x_sel", nfi2x_parents, 0x00a0, 8, 3, 15), 
    193 @@ -428,6 +340,17 @@ static const struct mtk_gate infra_clks[] __initconst = { 
     191@@ -428,6 +340,17 @@ static const struct mtk_gate infra_clks[ 
    194192        GATE_ICG(CLK_INFRA_PMIC_WRAP, "pmic_wrap_ck", "axi_sel", 23), 
    195193 }; 
     
    209207        .set_ofs = 0x0008, 
    210208        .clr_ofs = 0x0010, 
    211 @@ -499,6 +422,29 @@ static const struct mtk_gate peri_gates[] __initconst = { 
     209@@ -499,6 +422,29 @@ static const struct mtk_gate peri_gates[ 
    212210        GATE_PERI1(CLK_PERI_NFI_PAD, "nfi_pad_ck", "axi_sel", 2), 
    213211 }; 
     
    239237        "clk26m", 
    240238        "uart_sel", 
    241 @@ -525,10 +471,9 @@ static void __init mtk_topckgen_init(struct device_node *node) 
     239@@ -525,10 +471,9 @@ static void __init mtk_topckgen_init(str 
    242240  
    243241        mt7623_top_clk_data = clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); 
     
    251249        r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); 
    252250        if (r) 
    253 @@ -547,7 +492,10 @@ static void __init mtk_infrasys_init(struct device_node *node) 
     251@@ -547,7 +492,10 @@ static void __init mtk_infrasys_init(str 
    254252        clk_data = mtk_alloc_clk_data(CLK_INFRA_NR_CLK); 
    255253  
     
    263261        clk_prepare_enable(clk_data->clks[CLK_INFRA_M4U]); 
    264262  
    265 @@ -588,35 +536,59 @@ static void __init mtk_pericfg_init(struct device_node *node) 
     263@@ -588,35 +536,59 @@ static void __init mtk_pericfg_init(stru 
    266264 } 
    267265 CLK_OF_DECLARE(mtk_pericfg, "mediatek,mt7623-pericfg", mtk_pericfg_init); 
     
    338336  
    339337 static void __init mtk_apmixedsys_init(struct device_node *node) 
    340 --  
    341 1.7.10.4 
    342  
  • trunk/target/linux/mediatek/patches/0072-mfd.patch

    r47354 r47694  
    1313 create mode 100644 include/linux/regulator/mt6323-regulator.h 
    1414 
    15 diff --git a/drivers/mfd/mt6323-core.c b/drivers/mfd/mt6323-core.c 
    16 index 012c620..9b7f5b9 100644 
    1715--- a/drivers/mfd/mt6323-core.c 
    1816+++ b/drivers/mfd/mt6323-core.c 
     
    167165 #ifdef CON