Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16817354 authored by Jack Pham's avatar Jack Pham
Browse files

usb: dwc3: Add DWC3 MSM driver



This change adds the driver for the USB controller on QTI MSM
devices.  This is a snapshot of the driver from msm-4.19 as of
commit 104eef6e1fe8 ("platform: msm: Remove unused local count
variable").

In addition to the msm-4.19 version, this change includes several
fixups to address the following:

  - Building dwc3-msm as a module. It is easiest to just merge
    dbm.c into dwc3-msm.c.
  - Coccinelle warnings, such as assigning 0/1 to a boolean and
    missing newlines from log strings.
  - Conversion of defunct msm_bus API to the interconnect bus
    scaling API.
  - Remove dead host controller handling as it depends on a
    USB_BUS_DIED notification added to usbcore on downstream and
    has not yet been mainlined on this kernel. We will either have
    to bring in the atomic notifier or switch to listening to the
    "ERROR=DEAD" uevent and take action from userspace.
  - Remove extcon blocking notifier and MED_HIGH_CURRENT.
  - Remove usage of PM_QOS_REQ_AFFINE_IRQ as PM QoS support for
    specifying IRQ/CPU affinity is not supported upstream. Just
    request a QoS level for all cores.
  - Endpoints' ep_type EP_TYPE_GSI is now reflected in dep->gsi
  - dwc3_stop_active_transfer() takes a dep directly and added
    an additional parameter to skip IOC
  - Remove RESTART_USB_SESSION notification as the usb_gadget_ops
    restart_session is not supported in upstream
  - dwc3_request->started replaced by DWC3_REQUEST_STATUS_STARTED
  - Switch USB_DR_MODE_DRD enum back to USB_DR_MODE_OTG
  - Directly write GUSB3PIPECTL_SUSPHY and DEVTEN registers instead
    of needing APIs from core
  - Remove clk_set_flags. These aren't needed now.
  - Remove FLOAT charger handling.

Change-Id: I9a13cb5bae2f5c1e98906d1cb52134c2dea0bc80
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 669a7f8d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment