1. 29 5月, 2013 1 次提交
  2. 18 3月, 2013 12 次提交
  3. 04 3月, 2013 1 次提交
  4. 24 1月, 2013 1 次提交
    • F
      usb: dwc3: gadget: change HIRD threshold to 12 · 1a947746
      Felipe Balbi 提交于
      First of all, that 28 value makes no sense as
      HIRD threshold is a 4-bit value, second of all
      it's causing issues for OMAP5.
      
      Using 12 because commit cbc725b3 (usb: dwc3:
      keep default hird threshold value as 4b1100)
      had the intention of setting the maximum allowed
      value of 0xc.
      
      Also, original code has been wrong forever, so
      this should be backported as far back as
      possible.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      1a947746
  5. 18 1月, 2013 10 次提交
  6. 22 11月, 2012 1 次提交
  7. 15 10月, 2012 1 次提交
    • F
      usb: dwc3: gadget: fix 'endpoint always busy' bug · 041d81f4
      Felipe Balbi 提交于
      If a USB transfer has already been started, meaning
      we have already issued StartTransfer command to that
      particular endpoint, DWC3_EP_BUSY flag has also
      already been set.
      
      When we try to cancel this transfer which is already
      in controller's cache, we will not receive XferComplete
      event and we must clear DWC3_EP_BUSY in order to allow
      subsequent requests to be properly started.
      
      The best place to clear that flag is right after issuing
      DWC3_DEPCMD_ENDTRANSFER.
      
      Cc: stable@vger.kernel.org # v3.4 v3.5 v3.6
      Reported-by: NMoiz Sonasath <m-sonasath@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      041d81f4
  8. 07 9月, 2012 2 次提交
  9. 31 8月, 2012 1 次提交
    • C
      usb: dwc3: set up burst size only superspeed mode · d2e9a13a
      Chanho Park 提交于
      When connection is established non-ss mode, endpoint.maxburst is correctly set
      to 0, this means that current code will set maxburst bitfield on DEPCFG's
      parameter 0 to the highest possible value (0x0f) which is wrong.
      
      Even though this hasn't caused any issues so far (HW seems to ignore that when
      not running in SS mode) we want to make sure maxburst bitfield is only set to
      anything other than zero if we're running on SuperSpeed mode. In order to
      achieve that, let's check for gadget's operating speed before setting maxburst
      bitfield when issuing DEPCFG command.
      
      [ balbi@ti.com : improved commit log a bit in order to clarify the situation ]
      Signed-off-by: NChanho Park <chanho61.park@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      d2e9a13a
  10. 15 8月, 2012 1 次提交
    • F
      usb: dwc3: gadget: warn about endpoint already enabled before changing ep name · c6f83f38
      Felipe Balbi 提交于
      In case some gadget driver tries to enable an endpoint
      which is already enabled, we print a nice WARN so we
      can track broken gadget drivers. The only problem is that
      we're printing the WARN when we already changed endpoint's
      name, which would result in endpoints named as:
      
      ep1in-bulk-bulk-bulk-bulk-bulk-bulk-bulk
      
      To prevent that, we will continue to print the WARN,
      but do so before changing endpoint's name and return
      early.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      c6f83f38
  11. 09 8月, 2012 1 次提交
  12. 07 8月, 2012 2 次提交
    • P
      usb: dwc3: gadget: correct missed isoc when endpoint is busy · 79c9046e
      Pratyush Anand 提交于
      When MISSED_ISOC is set, BUSY is also set. Since, we are handling
      MISSED_ISOC as a separate case in third scenario, therefore handle only
      BUSY but not MISSED_ISOC in second scenario.
      Signed-off-by: NPratyush Anand <pratyush.anand@st.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      79c9046e
    • M
      usb: dwc3: gadget: Fix sparse warnings · 348e026f
      Moiz Sonasath 提交于
      This patch fixes the following sparse warnings:
      
      drivers/usb/dwc3/gadget.c:1096:7: warning: symbol 'ret' shadows an earlier one
      drivers/usb/dwc3/gadget.c:1058:8: originally declared here
      drivers/usb/dwc3/gadget.c:1100:16: warning: symbol 'dwc' shadows an earlier one
      drivers/usb/dwc3/gadget.c:1057:15: originally declared here
      drivers/usb/dwc3/gadget.c:1118:16: warning: symbol 'dwc' shadows an earlier one
      drivers/usb/dwc3/gadget.c:1057:15: originally declared here
      drivers/usb/dwc3/gadget.c:1800:19: warning: symbol 'dep' shadows an earlier one
      drivers/usb/dwc3/gadget.c:1778:18: originally declared here
      
      Also, fix the potential checkpatch errors around the if() loops that
      this fix patch can create.
      Signed-off-by: NMoiz Sonasath <m-sonasath@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      348e026f
  13. 03 8月, 2012 1 次提交
  14. 02 7月, 2012 5 次提交