1. 17 Dec, 2018 1 commit
  2. 12 Dec, 2018 35 commits
  3. 11 Dec, 2018 4 commits
    • Minas Harutyunyan's avatar
      usb: dwc2: Fix disable all EP's on disconnect · 4fe4f9fe
      Minas Harutyunyan authored
      Disabling all EP's allow to reset EP's to initial state.
      Introduced new function dwc2_hsotg_ep_disable_lock() which
      before calling dwc2_hsotg_ep_disable() function acquire
      hsotg->lock and release on exiting.
      From dwc2_hsotg_ep_disable() function removed acquiring
      hsotg->lock.
      In dwc2_hsotg_core_init_disconnected() function when USB
      reset interrupt asserted disabling all ep’s by
      dwc2_hsotg_ep_disable() function.
      This updates eliminating sparse imbalance warnings.
      
      Reverted changes in dwc2_hostg_disconnect() function.
      Introduced new function dwc2_hsotg_ep_disable_lock().
      Changed dwc2_hsotg_ep_ops. Now disable point to
      dwc2_hsotg_ep_disable_lock() function.
      In functions dwc2_hsotg_udc_stop() and dwc2_hsotg_suspend()
      dwc2_hsotg_ep_disable() function replaced by
      dwc2_hsotg_ep_disable_lock() function.
      In dwc2_hsotg_ep_disable() function removed acquiring
      of hsotg->lock.
      
      Fixes: dccf1bad ("usb: dwc2: Disable all EP's on disconnect")
      Signed-off-by: default avatarMinas Harutyunyan <hminas@synopsys.com>
      Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
      4fe4f9fe
    • Uwe Kleine-König's avatar
      usb: chipidea: imx: allow to configure oc polarity on i.MX25 · 9049fce8
      Uwe Kleine-König authored
      Up to now the polarity of the over current pin was hard coded to active
      high. Use the already defined device tree properties to configure polarity
      on i.MX25, too. In difference to i.MX6/7 use active high behavior if the
      polarity is unspecified to keep compatibility to existing device trees.
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
      9049fce8
    • Uwe Kleine-König's avatar
      usb: chipidea: imx: Warn if oc polarity isn't specified · 1bf4743f
      Uwe Kleine-König authored
      The polarity of the over current detection pin isn't configured on i.MX6/7
      if it's unspecified in the device tree. So the actual configuration depends
      on bootloader behavior which is bad.
      
      So encourage users to fix their device tree by issuing a warning in this
      case.
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
      1bf4743f
    • Uwe Kleine-König's avatar
      usb: chipidea: imx: support configuring for active low oc signal · a82bf696
      Uwe Kleine-König authored
      The status quo on i.MX6 is that if "over-current-active-high" is
      specified in the device tree this is configured as expected. If
      the property is missing polarity isn't changed and so the
      polarity is kept as setup by the bootloader. Reset default is
      active high, so active low can only be used with help by the
      bootloader. On i.MX7 it is similar, but there disabling of
      over current detection has a similar inconsistency.
      
      This patch introduces a new property that allows to explicitly
      configure for active low over current detection and consistently
      sets this up. In the absence of an explicit configuration the
      bit is kept as is. On i.MX7 over current detection is used unless
      disabled in the device tree.
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
      a82bf696