1. 12 Sep, 2016 1 commit
    • Lu Baolu's avatar
      usb: dwc3: fix Clear Stall EP command failure · 5e6c88d2
      Lu Baolu authored
      Commit 50c763f8 ("usb: dwc3: Set the ClearPendIN bit on Clear
      Stall EP command") sets ClearPendIN bit for all IN endpoints of
      v2.60a+ cores. This causes ClearStall command fails on 2.60+ cores
      operating in HighSpeed mode.
      
      In page 539 of 2.60a specification:
      
      "When issuing Clear Stall command for IN endpoints in SuperSpeed
      mode, the software must set the "ClearPendIN" bit to '1' to
      clear any pending IN transcations, so that the device does not
      expect any ACK TP from the host for the data sent earlier."
      
      It's obvious that we only need to apply this rule to those IN
      endpoints that currently operating in SuperSpeed mode.
      
      Fixes: 50c763f8 ("usb: dwc3: Set the ClearPendIN bit on Clear Stall EP command")
      Cc: <stable@vger.kernel.org> # v4.7+
      Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
      Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
      5e6c88d2
  2. 09 Sep, 2016 4 commits
  3. 08 Sep, 2016 4 commits
  4. 07 Sep, 2016 1 commit
    • Thinh Nguyen's avatar
      usb: dwc3: Fix dr_mode validation · 9d6173e1
      Thinh Nguyen authored
      This patch follows the similar fix in dwc2. See
      commit 5268ed9d ("usb: dwc2: Fix dr_mode validation")
      
      Currently, the dr_mode is only checked against the module configuration.
      It also needs to be checked against the hardware capablities.
      
      The driver now checks if both the module configuration and hardware are
      capable of the dr_mode value. If not, then it will issue a warning and
      fall back to a supported value. If it is unable to fall back to a
      suitable value, then the probe will fail.
      
      Behavior summary:
      
            module          :  actual
       HW   config  dr_mode :  dr_mode
      ---------------------------------
       host  host   any     :  host
       host  dev    any     :  INVALID
       host  otg    any     :  host
      
       dev   host   any     :  INVALID
       dev   dev    any     :  dev
       dev   otg    any     :  dev
      
       otg   host   any     :  host
       otg   dev    any     :  dev
       otg   otg    any     :  dr_mode
      Signed-off-by: default avatarThinh Nguyen <thinhn@synopsys.com>
      Signed-off-by: default avatarJohn Youn <johnyoun@synopsys.com>
      Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
      9d6173e1
  5. 06 Sep, 2016 9 commits
  6. 31 Aug, 2016 13 commits
  7. 29 Aug, 2016 8 commits