Skip to content
Permalink
Chunfeng-Yun/u…
Switch branches/tags

Commits on Jun 17, 2021

  1. usb: xhci-mtk: allow multiple Start-Split in a microframe

    This patch is used to relax bandwidth schedule by allowing multiple
    Start-Split in the same microframe.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Chunfeng Yun authored and intel-lab-lkp committed Jun 17, 2021

Commits on Jun 15, 2021

  1. arm64: dts: qcom: sc7180-trogdor: Add nodes for onboard USB hub

    Add nodes for the onboard USB hub on trogdor devices. Remove the
    'always-on' property from the hub regulator, since the regulator
    is now managed by the onboard_usb_hub driver.
    
    Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
    Link: https://lore.kernel.org/r/20210609150159.v12.5.Ie0d2c1214b767bb5551dd4cad38398bd40e4466f@changeid
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Matthias Kaehlcke authored and gregkh committed Jun 15, 2021
  2. usb: host: xhci-plat: Create platform device for onboard hubs in probe()

    Call onboard_hub_create/destroy_pdevs() from  _probe()/_remove()
    to create/destroy platform devices for onboard USB hubs that may
    be connected to the root hub of the controller. These functions
    are a NOP unless CONFIG_USB_ONBOARD_HUB=y/m.
    
    Also add a field to struct xhci_hcd to keep track of the onboard hub
    platform devices that are owned by the xHCI.
    
    Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
    Link: https://lore.kernel.org/r/20210609150159.v12.4.I7a3a7d9d2126c34079b1cab87aa0b2ec3030f9b7@changeid
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Matthias Kaehlcke authored and gregkh committed Jun 15, 2021
  3. of/platform: Add stubs for of_platform_device_create/destroy()

    Code for platform_device_create() and of_platform_device_destroy() is
    only generated if CONFIG_OF_ADDRESS=y. Add stubs to avoid unresolved
    symbols when CONFIG_OF_ADDRESS is not set.
    
    Acked-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
    Link: https://lore.kernel.org/r/20210609150159.v12.3.I08fd2e1c775af04f663730e9fb4d00e6bbb38541@changeid
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Matthias Kaehlcke authored and gregkh committed Jun 15, 2021
  4. USB: misc: Add onboard_usb_hub driver

    The main issue this driver addresses is that a USB hub needs to be
    powered before it can be discovered. For discrete onboard hubs (an
    example for such a hub is the Realtek RTS5411) this is often solved
    by supplying the hub with an 'always-on' regulator, which is kind
    of a hack. Some onboard hubs may require further initialization
    steps, like changing the state of a GPIO or enabling a clock, which
    requires even more hacks. This driver creates a platform device
    representing the hub which performs the necessary initialization.
    Currently it only supports switching on a single regulator, support
    for multiple regulators or other actions can be added as needed.
    Different initialization sequences can be supported based on the
    compatible string.
    
    Besides performing the initialization the driver can be configured
    to power the hub off during system suspend. This can help to extend
    battery life on battery powered devices which have no requirements
    to keep the hub powered during suspend. The driver can also be
    configured to leave the hub powered when a wakeup capable USB device
    is connected when suspending, and power it off otherwise.
    
    Technically the driver consists of two drivers, the platform driver
    described above and a very thin USB driver that subclasses the
    generic driver. The purpose of this driver is to provide the platform
    driver with the USB devices corresponding to the hub(s) (a hub
    controller may provide multiple 'logical' hubs, e.g. one to support
    USB 2.0 and another for USB 3.x).
    
    Note: the current series only supports hubs connected directly to
    a root hub (through xhci-plat), support for other configurations
    could be added if needed.
    
    Co-developed-by: Ravi Chandra Sadineni <ravisadineni@chromium.org>
    Acked-by: Alan Stern <stern@rowland.harvard.edu>
    Signed-off-by: Ravi Chandra Sadineni <ravisadineni@chromium.org>
    Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
    Link: https://lore.kernel.org/r/20210609150159.v12.2.I7c9a1f1d6ced41dd8310e8a03da666a32364e790@changeid
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Matthias Kaehlcke authored and gregkh committed Jun 15, 2021
  5. dt-bindings: usb: Add binding for Realtek RTS5411 hub controller

    The Realtek RTS5411 is a USB 3.0 hub controller with 4 ports.
    
    This initial version of the binding only describes USB related
    aspects of the RTS5411, it does not cover the option of
    connecting the controller as an i2c slave.
    
    Reviewed-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
    Link: https://lore.kernel.org/r/20210609150159.v12.1.I248292623d3d0f6a4f0c5bc58478ca3c0062b49a@changeid
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Matthias Kaehlcke authored and gregkh committed Jun 15, 2021
  6. usb: mtu3: use clock bulk to get clocks

    Use clock bulk helpers to get/enable/disable clocks, meanwhile
    make sys_ck optional, then will be easier to handle clocks.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/1623139069-8173-24-git-send-email-chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Jun 15, 2021
  7. usb: mtu3: rebuild role switch get/set hooks

    Use common helper ssusb_set_mode() to do role switch instead
    of manual switch helper;
    Remove unnecessary local variable when get role status
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/1623139069-8173-14-git-send-email-chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Jun 15, 2021
  8. usb: mtu3: use force mode for dual role switch

    Force IDDIG status for all three ways of dual role switch, this
    is needed when use Type-C to switch mode.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/1623139069-8173-13-git-send-email-chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Jun 15, 2021
  9. usb: mtu3: add helper to get pointer of ssusb_mtk struct

    Add a helper to get pointer of ssusb_mtk struct from the pointer
    of otg_switch_mtk struct.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/1623139069-8173-12-git-send-email-chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Jun 15, 2021
  10. usb: mtu3: rebuild role switch flow of extcon

    This is a preparation patch to plan to use the same work to
    handle role switch for all three supported ways.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/1623139069-8173-11-git-send-email-chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Jun 15, 2021
  11. usb: mtu3: use enum usb_role instead of private defined ones

    Now we mainly use usb-role-switch to set dual role mode, and all
    three ways supported use the same function to switch mode, use
    usb_role enum will make code clear
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/1623139069-8173-10-git-send-email-chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Jun 15, 2021
  12. usb: mtu3: drop support vbus detection

    Until now it's never used on any platform, and will not used
    later.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/1623139069-8173-9-git-send-email-chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Jun 15, 2021
  13. usb: mtu3: remove wakelock

    Prefer to use /sys/power/wake_lock instead.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/1623139069-8173-8-git-send-email-chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Jun 15, 2021
  14. usb: mtu3: power down port when power down device IP

    When power down device IP, we can also power down device port,
    then power on the port again when power on device ip, it's helpful
    to make device ip enter ip sleep mode.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/1623139069-8173-7-git-send-email-chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Jun 15, 2021
  15. usb: mtu3: power down device IP by default

    Power down device IP by default until @udc_start is called.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/1623139069-8173-6-git-send-email-chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Jun 15, 2021
  16. usb: isp1760: Fix meaningless check in isp1763_run()

    Remove attribution to retval before check, which make it completely
    meaningless, and does't check what it was supposed: the return
    value of the timed function to set up configuration flag.
    
    Fixes: 60d789f ("usb: isp1760: add support for isp1763")
    Tested-by: Rui Miguel Silva <rui.silva@linaro.org>
    Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
    Signed-off-by: Tong Tiangen <tongtiangen@huawei.com>
    Link: https://lore.kernel.org/r/20210611014055.68551-1-tongtiangen@huawei.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Tong Tiangen authored and gregkh committed Jun 15, 2021
  17. usb: renesas-xhci: Replace BIT(15) with macro

    Replace BIT(15) with RENESAS_ROM_STATUS_ROM_EXISTS.
    
    Signed-off-by: Moritz Fischer <mdf@kernel.org>
    Link: https://lore.kernel.org/r/20210614215614.240489-1-mdf@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    mfischer authored and gregkh committed Jun 15, 2021
  18. usb: phy: tegra: Correct definition of B_SESS_VLD_WAKEUP_EN bit

    The B_SESS_VLD_WAKEUP_EN bit 6 was added by a mistake in a previous
    commit. This bit corresponds to B_SESS_END_WAKEUP_EN, which we don't use.
    The B_VBUS_VLD_WAKEUP_EN doesn't exist at all and B_SESS_VLD_WAKEUP_EN
    needs to be in place of it. We don't utilize B-sensors in the driver,
    so it never was a problem, nevertheless let's correct the definition of
    the bits.
    
    Fixes: 3519200 ("usb: phy: tegra: Support waking up from a low power mode")
    Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
    Link: https://lore.kernel.org/r/20210613145936.9902-2-digetx@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    digetx authored and gregkh committed Jun 15, 2021
  19. usb: phy: tegra: Wait for VBUS wakeup status deassertion on suspend

    Some devices need an extra delay after losing VBUS, otherwise VBUS may
    be detected as active at suspend time, preventing the PHY's suspension
    by the VBUS detection sensor. This problem was found on Asus Transformer
    TF700T (Tegra30) tablet device, where the USB PHY wakes up immediately
    from suspend because VBUS sensor continues to detect VBUS as active after
    disconnection. We need to poll the PHY's VBUS wakeup status until it's
    deasserted before suspending PHY in order to fix this minor trouble.
    
    Fixes: 3519200 ("usb: phy: tegra: Support waking up from a low power mode")
    Reported-by: Maxim Schwalm <maxim.schwalm@gmail.com> # Asus TF700T
    Tested-by: Maxim Schwalm <maxim.schwalm@gmail.com> # Asus TF700T
    Reviewed-by: Peter Chen <peter.chen@kernel.org>
    Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
    Link: https://lore.kernel.org/r/20210613145936.9902-1-digetx@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    digetx authored and gregkh committed Jun 15, 2021

Commits on Jun 14, 2021

  1. usb: gadget: fsl: properly remove remnant of MXC support

    Commit a390bef ("usb: gadget: fsl_mxc_udc: Remove the driver")
    didn't remove all the MXC related stuff which can cause build problem
    for LS1021 when enabled again in Kconfig.  This patch remove all the
    remnants.
    
    Reviewed-by: Fabio Estevam <festevam@gmail.com>
    Acked-by: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: Li Yang <leoyang.li@nxp.com>
    Link: https://lore.kernel.org/r/20210612003128.372238-1-leoyang.li@nxp.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Li Yang authored and gregkh committed Jun 14, 2021
  2. Merge tag 'for-5.14-usb' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/tegra/linux into usb-next
    
    Thierry writes:
    
    usb: tegra: Changes for v5.14-rc1
    
    Implements proper suspend/resume for the XUSB controller found on recent
    Tegra chips.
    
    * tag 'for-5.14-usb' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux:
      usb: xhci: tegra: Enable ELPG for runtime/system PM
      usb: xhci: tegra: Unlink power domain devices
      phy: tegra: xusb: Add wake/sleepwalk for Tegra186
      phy: tegra: xusb: Tegra210 host mode VBUS control
      phy: tegra: xusb: Add wake/sleepwalk for Tegra210
      phy: tegra: xusb: Add sleepwalk and suspend/resume
      phy: tegra: xusb: Add Tegra210 lane_iddq operation
      phy: tegra: xusb: Rearrange UPHY init on Tegra210
      phy: tegra: xusb: Move usb3 port init for Tegra210
    gregkh committed Jun 14, 2021
  3. usb: musb: Implement tracing for state change events

    The devctl register on musb is the only way to get state information
    on musb. The hardware can easily get confused because it tries to do
    things on it's own automagically, and things like slow VBUS rise can
    make things fail.
    
    Let's make it easier to debug the ongoing state change issues that
    keep popping up on regular basis and add tracing support.
    
    With these changes we can easily trace musb state change events with:
    
    echo 1 > /sys/kernel/debug/tracing/events/musb/musb_state/enable
    cat /sys/kernel/debug/tracing/trace_pipe
    echo 0 > /sys/kernel/debug/tracing/events/musb/musb_state/enable
    
    Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Cc: Andreas Kemnade <andreas@kemnade.info>
    Cc: Bhushan Shah <bshah@kde.org>
    Cc: Drew Fustini <drew@beagleboard.org>
    Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>
    Link: https://lore.kernel.org/r/20210604080536.12185-2-tony@atomide.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    tmlind authored and gregkh committed Jun 14, 2021
  4. usb: musb: Simplify cable state handling

    Simplify cable state handling a bit to leave out duplicated code.
    We are just scheduling work and showing state info if a recheck is
    needed. No intended functional changes.
    
    Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Cc: Andreas Kemnade <andreas@kemnade.info>
    Cc: Bhushan Shah <bshah@kde.org>
    Cc: Drew Fustini <drew@beagleboard.org>
    Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>
    Link: https://lore.kernel.org/r/20210604080536.12185-1-tony@atomide.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    tmlind authored and gregkh committed Jun 14, 2021
  5. Merge tag 'v5.13-rc6' into usb-next

    We want the usb fixes in here as well, and this resolves some merge
    issues with:
    	drivers/usb/dwc3/debugfs.c
    	drivers/usb/dwc3/gadget.c
    
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    gregkh committed Jun 14, 2021

Commits on Jun 13, 2021

  1. Linux 5.13-rc6

    torvalds committed Jun 13, 2021
  2. Merge tag 'perf-tools-fixes-for-v5.13-2021-06-13' of git://git.kernel…

    ….org/pub/scm/linux/kernel/git/acme/linux
    
    Pull perf tools fixes from Arnaldo Carvalho de Melo:
    
     - Correct buffer copying when peeking events
    
     - Sync cpufeatures/disabled-features.h header with the kernel sources
    
    * tag 'perf-tools-fixes-for-v5.13-2021-06-13' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
      tools headers cpufeatures: Sync with the kernel sources
      perf session: Correct buffer copying when peeking events
    torvalds committed Jun 13, 2021
  3. Merge tag 'nfs-for-5.13-3' of git://git.linux-nfs.org/projects/trondm…

    …y/linux-nfs
    
    Pull NFS client bugfixes from Trond Myklebust:
     "Highlights include:
    
      Stable fixes:
    
       - Fix use-after-free in nfs4_init_client()
    
      Bugfixes:
    
       - Fix deadlock between nfs4_evict_inode() and nfs4_opendata_get_inode()
    
       - Fix second deadlock in nfs4_evict_inode()
    
       - nfs4_proc_set_acl should not change the value of NFS_CAP_UIDGID_NOMAP
    
       - Fix setting of the NFS_CAP_SECURITY_LABEL capability"
    
    * tag 'nfs-for-5.13-3' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
      NFSv4: Fix second deadlock in nfs4_evict_inode()
      NFSv4: Fix deadlock between nfs4_evict_inode() and nfs4_opendata_get_inode()
      NFS: FMODE_READ and friends are C macros, not enum types
      NFS: Fix a potential NULL dereference in nfs_get_client()
      NFS: Fix use-after-free in nfs4_init_client()
      NFS: Ensure the NFS_CAP_SECURITY_LABEL capability is set when appropriate
      NFSv4: nfs4_proc_set_acl needs to restore NFS_CAP_UIDGID_NOMAP on error.
    torvalds committed Jun 13, 2021
  4. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    Pull SCSI fixes from James Bottomley:
     "Four reasonably small fixes to the core for scsi host allocation
      failure paths.
    
      The root problem is that we're not freeing the memory allocated by
      dev_set_name(), which involves a rejig of may of the free on error
      paths to do put_device() instead of kfree which, in turn, has several
      other knock on ramifications and inspection turned up a few other
      lurking bugs"
    
    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      scsi: core: Only put parent device if host state differs from SHOST_CREATED
      scsi: core: Put .shost_dev in failure path if host state changes to RUNNING
      scsi: core: Fix failure handling of scsi_add_host_with_dma()
      scsi: core: Fix error handling of scsi_host_alloc()
    torvalds committed Jun 13, 2021

Commits on Jun 12, 2021

  1. Merge tag 'riscv-for-linus-5.13-rc6' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/riscv/linux
    
    Pull RISC-V fixes from Palmer Dabbelt:
    
     - A pair of XIP fixes: one to fix alternatives, and one to turn off the
       rest of the features that require code modification
    
     - A fix to a type that was causing some alternatives to break
    
     - A build fix for BUILTIN_DTB
    
    * tag 'riscv-for-linus-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
      riscv: Fix BUILTIN_DTB for sifive and microchip soc
      riscv: alternative: fix typo in macro name
      riscv: code patching only works on !XIP_KERNEL
      riscv: xip: support runtime trap patching
    torvalds committed Jun 12, 2021
  2. mm: relocate 'write_protect_seq' in struct mm_struct

    0day robot reported a 9.2% regression for will-it-scale mmap1 test
    case[1], caused by commit 57efa1f ("mm/gup: prevent gup_fast from
    racing with COW during fork").
    
    Further debug shows the regression is due to that commit changes the
    offset of hot fields 'mmap_lock' inside structure 'mm_struct', thus some
    cache alignment changes.
    
    From the perf data, the contention for 'mmap_lock' is very severe and
    takes around 95% cpu cycles, and it is a rw_semaphore
    
            struct rw_semaphore {
                    atomic_long_t count;	/* 8 bytes */
                    atomic_long_t owner;	/* 8 bytes */
                    struct optimistic_spin_queue osq; /* spinner MCS lock */
                    ...
    
    Before commit 57efa1f adds the 'write_protect_seq', it happens to
    have a very optimal cache alignment layout, as Linus explained:
    
     "and before the addition of the 'write_protect_seq' field, the
      mmap_sem was at offset 120 in 'struct mm_struct'.
    
      Which meant that count and owner were in two different cachelines,
      and then when you have contention and spend time in
      rwsem_down_write_slowpath(), this is probably *exactly* the kind
      of layout you want.
    
      Because first the rwsem_write_trylock() will do a cmpxchg on the
      first cacheline (for the optimistic fast-path), and then in the
      case of contention, rwsem_down_write_slowpath() will just access
      the second cacheline.
    
      Which is probably just optimal for a load that spends a lot of
      time contended - new waiters touch that first cacheline, and then
      they queue themselves up on the second cacheline."
    
    After the commit, the rw_semaphore is at offset 128, which means the
    'count' and 'owner' fields are now in the same cacheline, and causes
    more cache bouncing.
    
    Currently there are 3 "#ifdef CONFIG_XXX" before 'mmap_lock' which will
    affect its offset:
    
      CONFIG_MMU
      CONFIG_MEMBARRIER
      CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES
    
    The layout above is on 64 bits system with 0day's default kernel config
    (similar to RHEL-8.3's config), in which all these 3 options are 'y'.
    And the layout can vary with different kernel configs.
    
    Relayouting a structure is usually a double-edged sword, as sometimes it
    can helps one case, but hurt other cases.  For this case, one solution
    is, as the newly added 'write_protect_seq' is a 4 bytes long seqcount_t
    (when CONFIG_DEBUG_LOCK_ALLOC=n), placing it into an existing 4 bytes
    hole in 'mm_struct' will not change other fields' alignment, while
    restoring the regression.
    
    Link: https://lore.kernel.org/lkml/20210525031636.GB7744@xsang-OptiPlex-9020/ [1]
    Reported-by: kernel test robot <oliver.sang@intel.com>
    Signed-off-by: Feng Tang <feng.tang@intel.com>
    Reviewed-by: John Hubbard <jhubbard@nvidia.com>
    Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
    Cc: Peter Xu <peterx@redhat.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    ftang1 authored and torvalds committed Jun 12, 2021
  3. Merge tag 'usb-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/usb
    
    Pull USB fixes from Greg KH:
     "Here are a number of tiny USB fixes for 5.13-rc6.
    
      There are more than I would normally like, but there's been a bunch of
      people banging on the gadget and dwc3 and typec code recently for I
      think an Android release, which has resulted in a number of small
      fixes. It's nice to see companies send fixes upstream for this type of
      work, a notable change from years ago.
    
      Anyway, fixes in here are:
    
       - usb-serial device id updates
    
       - usb-serial cp210x driver fixes for broken firmware versions
    
       - typec fixes for crazy charging devices and other reported problems
    
       - dwc3 fixes for reported problems found
    
       - gadget fixes for reported problems
    
       - tiny xhci fixes
    
       - other small fixes for reported issues.
    
       - revert of a problem fix found by linux-next testing
    
      All of these have passed 0-day and linux-next testing with no reported
      problems (the revert for the found linux-next build problem included)"
    
    * tag 'usb-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (44 commits)
      Revert "usb: gadget: fsl: Re-enable driver for ARM SoCs"
      usb: typec: mux: Fix copy-paste mistake in typec_mux_match
      usb: typec: ucsi: Clear PPM capability data in ucsi_init() error path
      usb: gadget: fsl: Re-enable driver for ARM SoCs
      usb: typec: wcove: Use LE to CPU conversion when accessing msg->header
      USB: serial: cp210x: fix CP2102N-A01 modem control
      USB: serial: cp210x: fix alternate function for CP2102N QFN20
      usb: misc: brcmstb-usb-pinmap: check return value after calling platform_get_resource()
      usb: dwc3: ep0: fix NULL pointer exception
      usb: gadget: eem: fix wrong eem header operation
      usb: typec: intel_pmc_mux: Put ACPI device using acpi_dev_put()
      usb: typec: intel_pmc_mux: Add missed error check for devm_ioremap_resource()
      usb: typec: intel_pmc_mux: Put fwnode in error case during ->probe()
      usb: typec: tcpm: Do not finish VDM AMS for retrying Responses
      usb: fix various gadget panics on 10gbps cabling
      usb: fix various gadgets null ptr deref on 10gbps cabling.
      usb: pci-quirks: disable D3cold on xhci suspend for s2idle on AMD Renoir
      usb: f_ncm: only first packet of aggregate needs to start timer
      USB: f_ncm: ncm_bitrate (speed) is unsigned
      MAINTAINERS: usb: add entry for isp1760
      ...
    torvalds committed Jun 12, 2021
  4. Merge tag 'tty-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/tty
    
    Pull serial driver fix from Greg KH:
     "A single 8250_exar serial driver fix for a reported problem with a
      change that happened in 5.13-rc1.
    
      It has been in linux-next with no reported problems"
    
    * tag 'tty-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
      serial: 8250_exar: Avoid NULL pointer dereference at ->exit()
    torvalds committed Jun 12, 2021
  5. Merge tag 'staging-5.13-rc6' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/gregkh/staging
    
    Pull staging driver fixes from Greg KH:
     "Two tiny staging driver fixes:
    
       - ralink-gdma driver authorship information fixed up
    
       - rtl8723bs driver fix for reported regression
    
      Both have been in linux-next for a while with no reported problems"
    
    * tag 'staging-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
      staging: ralink-gdma: Remove incorrect author information
      staging: rtl8723bs: Fix uninitialized variables
    torvalds committed Jun 12, 2021
  6. Merge tag 'driver-core-5.13-rc6' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/gregkh/driver-core
    
    Pull driver core fix from Greg KH:
     "A single debugfs fix for 5.13-rc6, fixing a bug in
      debugfs_read_file_str() that showed up in 5.13-rc1.
    
      It has been in linux-next for a full week with no
      reported problems"
    
    * tag 'driver-core-5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
      debugfs: Fix debugfs_read_file_str()
    torvalds committed Jun 12, 2021
Older