Merge tag 'lsk-v4.4-17.07-android' of git://git.linaro.org/kernel/linux-linaro-stable.git
authorHuang, Tao <huangtao@rock-chips.com>
Wed, 26 Jul 2017 11:32:04 +0000 (19:32 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 26 Jul 2017 11:32:04 +0000 (19:32 +0800)
LSK 17.07 v4.4-android

* tag 'lsk-v4.4-17.07-android': (402 commits)
  dt/vendor-prefixes: remove redundant vendor
  Linux 4.4.77
  saa7134: fix warm Medion 7134 EEPROM read
  x86/mm/pat: Don't report PAT on CPUs that don't support it
  ext4: check return value of kstrtoull correctly in reserved_clusters_store
  staging: comedi: fix clean-up of comedi_class in comedi_init()
  staging: vt6556: vnt_start Fix missing call to vnt_key_init_table.
  tcp: fix tcp_mark_head_lost to check skb len before fragmenting
  md: fix super_offset endianness in super_1_rdev_size_change
  md: fix incorrect use of lexx_to_cpu in does_sb_need_changing
  perf tools: Use readdir() instead of deprecated readdir_r() again
  perf tests: Remove wrong semicolon in while loop in CQM test
  perf trace: Do not process PERF_RECORD_LOST twice
  perf dwarf: Guard !x86_64 definitions under #ifdef else clause
  perf pmu: Fix misleadingly indented assignment (whitespace)
  perf annotate browser: Fix behaviour of Shift-Tab with nothing focussed
  perf tools: Remove duplicate const qualifier
  perf script: Use readdir() instead of deprecated readdir_r()
  perf thread_map: Use readdir() instead of deprecated readdir_r()
  perf tools: Use readdir() instead of deprecated readdir_r()
  ...

Conflicts:
Makefile
drivers/Kconfig
drivers/Makefile
drivers/usb/dwc3/gadget.c

Change-Id: Ib4aae2e34ebbf0d7953c748a33f673acb3e744fc

19 files changed:
1  2 
Documentation/devicetree/bindings/vendor-prefixes.txt
Makefile
arch/arm64/kernel/armv8_deprecated.c
drivers/Kconfig
drivers/Makefile
drivers/base/platform.c
drivers/cpufreq/cpufreq.c
drivers/hid/hid-ids.h
drivers/hid/i2c-hid/i2c-hid.c
drivers/media/v4l2-core/videobuf2-core.c
drivers/nvme/host/pci.c
drivers/perf/arm_pmu.c
drivers/usb/core/hcd.c
drivers/usb/core/hub.c
drivers/usb/dwc3/dwc3-st.c
drivers/usb/dwc3/gadget.c
fs/proc/task_mmu.c
kernel/signal.c
sound/soc/soc-core.c

diff --cc Makefile
index e65600a262380e20cc3aefe4dc17c0fdb7174a90,0372b7517112f8f99af76a1fc5b6c078c59a89bd..bc99cfe86851214f1176f5b2ada83f76b510f1c9
+++ b/Makefile
@@@ -650,6 -633,12 +650,17 @@@ endi
  # Tell gcc to never replace conditional load with a non-conditional one
  KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
  
+ # check for 'asm goto'
+ ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
+       KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
+       KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
++else ifneq ($(findstring aarch64-linux-android, $(CROSS_COMPILE)),)
++# It seems than android gcc can't pass gcc-goto.sh check, but asm goto work.
++# So let's active it.
++      KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
++      KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
+ endif
  ifdef CONFIG_READABLE_ASM
  # Disable optimizations that make assembler listings hard to read.
  # reorder blocks reorders the control in the function
index 884b317e56c35958f498e4d7dd2e0253afcde23f,373a80e9ed67b6ff13ffb0ff7e718d52a5e91e36..10d3642deb7c303cbf5712ac57258d4e8f7d90a3
@@@ -299,8 -299,9 +299,9 @@@ do {                                                               
        _ASM_EXTABLE(0b, 4b)                                    \
        _ASM_EXTABLE(1b, 4b)                                    \
        : "=&r" (res), "+r" (data), "=&r" (temp)                \
-       : "r" (addr), "i" (-EAGAIN), "i" (-EFAULT)              \
+       : "r" ((unsigned long)addr), "i" (-EAGAIN),             \
+         "i" (-EFAULT)                                         \
 -      : "memory")
 +      : "memory");                                            \
        uaccess_disable();                                      \
  } while (0)
  
diff --cc drivers/Kconfig
index a1a41f20b7a3d28f8f6143a77a5a19e563adf289,63baceb6c118549f4471e8d6e33a26f6fb1e84e6..4f5b62381941b01c0f1439674c3ead62db293a52
@@@ -200,8 -198,6 +200,10 @@@ source "drivers/hwtracing/intel_th/Kcon
  
  source "drivers/fpga/Kconfig"
  
+ source "drivers/tee/Kconfig"
 +source "drivers/rk_nand/Kconfig"
 +
 +source "drivers/headset_observe/Kconfig"
 +
  endmenu
index eb16de1014f863768f8f7c484861314f206f4fb3,a2a1fbd53bbeeae7338a881fd0ae088545376921..3aa00384faf6750ce0e6a63932b83579de19498f
@@@ -174,5 -173,4 +174,6 @@@ obj-$(CONFIG_STM)          += hwtracing/stm
  obj-$(CONFIG_ANDROID)         += android/
  obj-$(CONFIG_NVMEM)           += nvmem/
  obj-$(CONFIG_FPGA)            += fpga/
+ obj-$(CONFIG_TEE)             += tee/
 +obj-$(CONFIG_RK_NAND)         += rk_nand/
 +obj-$(CONFIG_RK_HEADSET)      += headset_observe/
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 89a2f712fdfe32f5fc0a6fc0681b0d8db005e2a2,81db2fa08cad6beea9b1b5590e2dbf4b223b58ee..b163f7647162671fa2f069cda41d478a7d4bef8e
@@@ -230,11 -224,10 +230,11 @@@ static int st_dwc3_probe(struct platfor
  
        dwc3_data->syscfg_reg_off = res->start;
  
-       dev_vdbg(&pdev->dev, "glue-logic addr 0x%p, syscfg-reg offset 0x%x\n",
+       dev_vdbg(&pdev->dev, "glue-logic addr 0x%pK, syscfg-reg offset 0x%x\n",
                 dwc3_data->glue_base, dwc3_data->syscfg_reg_off);
  
 -      dwc3_data->rstc_pwrdn = devm_reset_control_get(dev, "powerdown");
 +      dwc3_data->rstc_pwrdn =
 +              devm_reset_control_get_exclusive(dev, "powerdown");
        if (IS_ERR(dwc3_data->rstc_pwrdn)) {
                dev_err(&pdev->dev, "could not get power controller\n");
                ret = PTR_ERR(dwc3_data->rstc_pwrdn);
index 46c7bb4cfd10412b2db15d5d6a9ee4d4f5526143,d3bd1afd63021f4107a52dba34982355249a1264..24c851dd1736c89b61e4a496f864a6982dab46d0
@@@ -1093,22 -1095,6 +1093,22 @@@ static int __dwc3_gadget_ep_queue(struc
        struct dwc3             *dwc = dep->dwc;
        int                     ret;
  
-       if (WARN(req->dep != dep, "request %p belongs to '%s'\n",
 +      if (!dep->endpoint.desc) {
 +              dwc3_trace(trace_dwc3_gadget,
 +                              "trying to queue request %p to disabled %s",
 +                              &req->request, dep->endpoint.name);
 +              return -ESHUTDOWN;
 +      }
 +
++      if (WARN(req->dep != dep, "request %pK belongs to '%s'\n",
 +                              &req->request, req->dep->name)) {
 +              dwc3_trace(trace_dwc3_gadget, "request %p belongs to '%s'",
 +                              &req->request, req->dep->name);
 +              return -EINVAL;
 +      }
 +
 +      pm_runtime_get(dwc->dev);
 +
        req->request.actual     = 0;
        req->request.status     = -EINPROGRESS;
        req->direction          = dep->direction;
Simple merge
diff --cc kernel/signal.c
Simple merge
Simple merge