1. 06 11月, 2012 2 次提交
  2. 31 10月, 2012 1 次提交
  3. 19 10月, 2012 1 次提交
  4. 15 10月, 2012 2 次提交
  5. 11 9月, 2012 4 次提交
  6. 07 9月, 2012 3 次提交
  7. 31 8月, 2012 3 次提交
    • M
      usb: gadget: get rid of USB_GADGET_{DUAL,SUPER}SPEED · 85b8614d
      Michal Nazarewicz 提交于
      This commit removes USB_GADGET_DUALSPEED and USB_GADGET_SUPERSPEED
      Kconfig options.  Since now kernel allows many UDC drivers to be
      compiled, those options may turn to no longer be valid.  For
      instance, if someone decides to build UDC that supports super
      speed and UDC that supports high speed only, the latter will be
      "assumed" to support super speed since USB_GADGET_SUPERSPEED will
      be selected by the former.
      
      The test of whether CONFIG_USB_GADGET_*SPEED was defined was just
      an optimisation which removed otherwise dead code (ie. if UDC is
      not dual speed, there is no need to handle cases that can happen
      if speed is high).  This commit removes those checks.
      Signed-off-by: NMichal Nazarewicz <mina86@mina86.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      85b8614d
    • 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
    • O
      usb: dwc3: core: memory ordering fix in close · 2a540edf
      Oliver Neukum 提交于
      As a bitmap is used for free/used. As a device freed
      all memory operations must be scheduled before the bitmap
      is manipulated.
      Signed-off-by: NOliver Neukum <oneukum@suse.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      2a540edf
  8. 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
  9. 10 8月, 2012 1 次提交
  10. 09 8月, 2012 1 次提交
  11. 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
  12. 03 8月, 2012 9 次提交
    • F
      usb: dwc3: ep0: make sure to reinitilize ep1 on STALL · 2dfe37d4
      Felipe Balbi 提交于
      When issuing SetStall on ep0, we must make sure to
      reinitialize all flags on physical ep1 too.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      2dfe37d4
    • F
      usb: dwc3: ep0: fix status phase delayed status direction · 7125d584
      Felipe Balbi 提交于
      commit 68d3e668 (usb: dwc3: ep0: fix for possible early
      delayed_status) added handling for early delayed status,
      but the current code only works because so far delayed
      status will always be on the IN direction.
      
      This patch makes the code more robust by making sure that
      we can handle all directions properly.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      7125d584
    • F
      usb: dwc3: ep0: drop XferNotReady(DATA) support · 2e3db064
      Felipe Balbi 提交于
      Due to the late Silicon limitation found, we are
      now pre-starting DATA phase's TRBs. If, still, we
      get XferNotReady(DATA) we will ignore it unless
      we're getting it for the wrong direction.
      
      In that case we must keep the error case handling
      plus add a ENDTRANSFER command to forcefully end
      the Data TRB we started previously, then continue
      to SetStall and so on.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      2e3db064
    • F
      usb: dwc3: ep0: move DATA phase away from on-demand · fca8892a
      Felipe Balbi 提交于
      We uncovered a limitation of this core WRT to the
      Link Layer Compliance Suite's TD7.06.
      
      On that test, host will start a GetDescriptor(DEVICE)
      standard request, but it will do so only on the
      SETUP phase, meaning there will *NOT* be any DATA or
      STATUS phases.
      
      The idea of the test is to verify robustness of the
      IP WRT framing errors, so the test will send a
      sequence of different SETUP_DPs each with a different
      framing error and the Suite expects us to be able to
      receive all SETUP_DPs with no timeouts.
      
      This core, has the ability to tell us which phase the
      host is expecting before we start it. Whenever we
      receive a TP or DP when no transfers are cached on
      the internal IP's caches, the IP will generate a
      XferNotReady event with status informing us (in case
      of physical ep0/ep1) if it's related to DATA or STATUS
      phases - SETUP phase is expected to be prestarted.
      
      Because we're always waiting for XferNotReady
      events for DATA and STATUS phases, we will never
      be able to know that the Host wants to start another
      SETUP phase instead, which will render us "not
      compliant" with TD7.06.
      
      In order to "fix" the problem we must not rely
      on XferNotReady events for the DATA phase  and try
      to always pre-start DATA transfers on physical
      endpoints 0 and 1. If host goes back to SETUP phase
      from DATA phase we will receive a XferComplete for
      that phase with TRB's status set to SETUP_PENDING,
      which is only useful for printing a debugging log as
      the core expects us to still go through to the STATUS
      phase, initiate a CONTROL_STATUS TRB just so it
      completes right away and, only then, we go back to
      the pending SETUP phase.
      
      SNPS has decided to modify the programming model of
      the core so that on-demand DATA phases will not be
      supported anymore. Note that this limitation does not
      affect 2-stage transfers, meaning that if TD7.06 would
      start a 2-stage transfer instead of a 3-stage transfer,
      we would receive a "fake" XferNotReady(STATUS) which
      would complete right after being initiated with
      SETUP_PENDING status.
      
      Other endpoints are also not affected, so we can still
      use on-demand transfers on Bulk/Isoc/Interrupt endpoints.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      fca8892a
    • F
      usb: dwc3: ep0: ignore XferNotReady(STATUS) when we're not expecting it · 77fa6df8
      Felipe Balbi 提交于
      Databook doesn't say we should stall if we
      get XferNotReady(STATUS) while we're expecting
      something else.
      
      Instead of stalling and restarting, tests have
      proven that ignoring the event is far more
      effective.
      
      This problem has been caught while rewriting
      ep0 handling in order we pass Link Layer TD7.6.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      77fa6df8
    • F
      usb: dwc3: ep0: drop dead code · 4635d3f2
      Felipe Balbi 提交于
      There's no such thing as XferNotReady(SETUP), we
      can safely drop all that code with no problems
      whatsoever.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      4635d3f2
    • F
      usb: dwc3: ep0: split the special cases on ep0_queue · d9b33c60
      Felipe Balbi 提交于
      We can return early from each if () branch
      and split the special cases for clarity. While
      at that also add a comment to the delayed_status
      case.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      d9b33c60
    • F
      usb: dwc3: ep0: drop unnecessary variable · 35f75696
      Felipe Balbi 提交于
      When returning from ep0_queue, we have an
      unnecessary ret variable which is always
      zero. Remove it.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      35f75696
    • F
      usb: dwc3: gadget: set Ignore Sequence Number bit from ConnectDone Event · 4b345c9a
      Felipe Balbi 提交于
      Databook says we should set Ignore Sequence Number bit
      from ConnectDone Event, so let's do so.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      4b345c9a
  13. 02 7月, 2012 5 次提交
  14. 26 6月, 2012 1 次提交
  15. 25 6月, 2012 4 次提交