1. 19 Dec, 2018 1 commit
  2. 18 Dec, 2018 2 commits
    • Bin Liu's avatar
      usb: musb: dsps: fix runtime pm for peripheral mode · 54578ee8
      Bin Liu authored
      Since the runtime PM support was added in musb, dsps relies on the timer
      calling otg_timer() to activate the usb subsystem. However the driver
      doesn't enable the timer for peripheral port, then the peripheral port is
      unable to be enumerated by a host if the other usb port is disabled or in
      peripheral mode too.
      
      So let's start the timer for peripheral port too.
      
      Fixes: ea2f35c0 ("usb: musb: Fix sleeping function called from invalid context for hdrc glue")
      Acked-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarBin Liu <b-liu@ti.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      54578ee8
    • Bin Liu's avatar
      usb: musb: dsps: fix otg state machine · 6010abf2
      Bin Liu authored
      Due to lack of ID pin interrupt event on AM335x devices, the musb dsps
      driver uses polling to detect usb device attach for dual-role port.
      
      But in the case if a micro-A cable adapter is attached without a USB device
      attached to the cable, the musb state machine gets stuck in a_wait_vrise
      state waiting for the MUSB_CONNECT interrupt which won't happen due to the
      usb device is not attached. The state is stuck in a_wait_vrise even after
      the micro-A cable is detached, which could cause VBUS retention if then the
      dual-role port is attached to a host port.
      
      To fix the problem, make a_wait_vrise as a transient state, then move the
      state to either a_wait_bcon for host port or a_idle state for dual-role
      port, if no usb device is attached to the port.
      Signed-off-by: default avatarBin Liu <b-liu@ti.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6010abf2
  3. 17 Dec, 2018 4 commits
  4. 12 Dec, 2018 33 commits