1. 11 Jun, 2020 1 commit
  2. 08 Jun, 2020 1 commit
  3. 07 Jun, 2020 3 commits
    • Anson Huang's avatar
      mailbox: imx: ONLY IPC MU needs IRQF_NO_SUSPEND flag · b7b2796b
      Anson Huang authored
      IPC MU has no power domain assigned and there could be IPC during
      noirq suspend phase, so IRQF_NO_SUSPEND flag is needed for IPC MU.
      However, for other MUs, they have power domain assigned and their
      power will be turned off during noirq suspend phase, but with
      IRQF_NO_SUSPEND set, their interrupts are NOT disabled even after
      their power turned off, it will cause system crash when mailbox
      driver trys to handle pending interrupts but the MU power is already
      turned off.
      
      So, IRQF_NO_SUSPEND flag should ONLY be added to IPC MU which has
      power domain managed by SCU, then all other MUs' pending interrupts
      after noirq suspend phase will be handled after system resume.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
      b7b2796b
    • Anson Huang's avatar
      mailbox: imx: Add runtime PM callback to handle MU clocks · bb2b2624
      Anson Huang authored
      Some of i.MX8M SoCs have MU clock, they need to be managed in runtime
      to make sure the MU clock can be off in runtime, add runtime PM callback
      to handle MU clock.
      
      And on i.MX8MP, the MU clock is combined with power domain and runtime
      PM is enabled for the clock driver, during noirq suspend/resume phase,
      runtime PM is disabled by device suspend, but the MU context save/restore
      needs to enable MU clock for register access, calling clock prepare/enable
      will trigger runtime resume failure and lead to system suspend failed.
      
      Actually, the MU context save/restore is ONLY necessary for SCU IPC MU,
      other MUs especially on i.MX8MP platforms which have MU clock assigned,
      they need to runtime request/free mailbox channel in the consumer driver,
      so no need to save/restore MU context for them, hence it can avoid this
      issue, so the MU context save/restore is ONLY applied to i.MX platforms
      MU instance without clock present.
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
      bb2b2624
    • Dong Aisheng's avatar
      mailbox: imx: Add context save/restore for suspend/resume · ba5f9fa0
      Dong Aisheng authored
      For "mem" mode suspend on i.MX8 SoCs, MU settings could be
      lost because its power is off, so save/restore is needed
      for MU settings during suspend/resume. However, the restore
      can ONLY be done when MU settings are actually lost, for the
      scenario of settings NOT lost in "freeze" mode suspend, since
      there could be still IPC going on multiple CPUs, restoring the
      MU settings could overwrite the TIE by mistake and cause system
      freeze, so need to make sure ONLY restore the MU settings when
      it is powered off, Anson fixes this by checking whether restore
      is actually needed when resume.
      Signed-off-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
      Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
      Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
      ba5f9fa0
  4. 30 May, 2020 14 commits
  5. 29 May, 2020 18 commits
  6. 28 May, 2020 3 commits
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 75caf310
      Linus Torvalds authored
      Merge misc fixes from Andrew Morton:
       "5 fixes"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        include/asm-generic/topology.h: guard cpumask_of_node() macro argument
        fs/binfmt_elf.c: allocate initialized memory in fill_thread_core_info()
        mm: remove VM_BUG_ON(PageSlab()) from page_mapcount()
        mm,thp: stop leaking unreleased file pages
        mm/z3fold: silence kmemleak false positives of slots
      75caf310
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · d16eea2f
      Linus Torvalds authored
      Pull input fixes from Dmitry Torokhov:
       "Just a few random driver fixups"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: synaptics - add a second working PNP_ID for Lenovo T470s
        Input: applespi - replace zero-length array with flexible-array
        Input: axp20x-pek - always register interrupt handlers
        Input: lm8333 - update contact email
        Input: synaptics-rmi4 - fix error return code in rmi_driver_probe()
        Input: synaptics-rmi4 - really fix attn_data use-after-free
        Input: i8042 - add ThinkPad S230u to i8042 reset list
        Revert "Input: i8042 - add ThinkPad S230u to i8042 nomux list"
        Input: dlink-dir685-touchkeys - fix a typo in driver name
        Input: xpad - add custom init packet for Xbox One S controllers
        Input: evdev - call input_flush_device() on release(), not flush()
        Input: i8042 - add ThinkPad S230u to i8042 nomux list
        Input: usbtouchscreen - add support for BonXeon TP
        Input: cros_ec_keyb - use cros_ec_cmd_xfer_status helper
        Input: mms114 - fix handling of mms345l
        Input: elants_i2c - support palm detection
      d16eea2f
    • Linus Torvalds's avatar
      Merge tag 'csky-for-linus-5.7-rc8' of git://github.com/c-sky/csky-linux · 6b5f2590
      Linus Torvalds authored
      Pull csky fixes from Guo Ren:
       "Another four fixes for csky:
      
         - fix req_syscall debug
      
         - fix abiv2 syscall_trace
      
         - fix preempt enable
      
         - clean up regs usage in entry.S"
      
      * tag 'csky-for-linus-5.7-rc8' of git://github.com/c-sky/csky-linux:
        csky: Fixup CONFIG_DEBUG_RSEQ
        csky: Coding convention in entry.S
        csky: Fixup abiv2 syscall_trace break a4 & a5
        csky: Fixup CONFIG_PREEMPT panic
      6b5f2590