1. 18 Mar, 2013 1 commit
    • Lukasz Majewski's avatar
      usb:composite:fix Provide function data when addressing device with only one interface · f7b4162e
      Lukasz Majewski authored
      
      
      This commit fixes problems with some non-standard requests send with
      device address instead of interface address (bmRequestType.Receipent field).
      
      This happens with dfu-util (debian version: 0.5), which address non standard
      requests (like w_value=0x21 and bRequest=GET_DESCRIPTOR) to device.
      Without this fix, the above request is STALLED, and hence causes dfu-util
      to assume some standard configuration (packet size = 1024B instead of 4096B)
      In turn it displays following errors:
      Error obtaining DFU functional descriptor
      Warning: Assuming DFU version 1.0
      Warning: Transfer size can not be detected
      ...
      Warning: Trying default transfer size 1024
      
      This fix allows passing non-standard request to function setup code, where
      it shall be handled.
      
      Tested at: 	Trats (exynos4210)
      Tested with:DFU and UMS gadgets
      Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      f7b4162e
  2. 16 Mar, 2013 2 commits
  3. 17 Dec, 2012 3 commits
  4. 27 Nov, 2012 1 commit
  5. 19 Nov, 2012 2 commits
  6. 04 Nov, 2012 1 commit
    • Tom Rini's avatar
      usb gadget ether: Fix warning in is_eth_addr_valid() · 57a87a25
      Tom Rini authored
      
      
      The gadget ethernet driver needs to keep copies of the MAC address (at
      both endpoints) as strings so it needs a custom function for validation
      of the MAC.  It was not however performing a totally correct check and
      also was emitting a warning about a set but unused variable.  The
      solution to both is that after checking the string contents we use the
      standard test for a valid MAC.
      
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Marek Vasut <marex@denx.de>
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      57a87a25
  7. 16 Oct, 2012 1 commit
  8. 15 Oct, 2012 4 commits
  9. 01 Sep, 2012 2 commits
  10. 23 May, 2012 1 commit
  11. 20 May, 2012 4 commits
  12. 30 Apr, 2012 1 commit
  13. 28 Mar, 2012 1 commit
    • Vipin KUMAR's avatar
      Enable high speed support for USB device framework and usbtty · f9da0f89
      Vipin KUMAR authored
      
      
      This patch adds the support for high speed in usb device framework and usbtty
      driver. This feature has been kept within a macro CONFIG_USBD_HS, so the board
      configuration files have to define this macro to enable high speed support.
      
      Along with that specific peripheral drivers also need to define a function to
      let the framework know that the enumeration has happened at high speed.
      This function prototype is "int is_usbd_high_speed(void)"
      Signed-off-by: default avatarVipin Kumar <vipin.kumar@st.com>
      Signed-off-by: default avatarAmit Virdi <amit.virdi@st.com>
      f9da0f89
  14. 18 Mar, 2012 6 commits
  15. 20 Dec, 2011 1 commit
    • Anatolij Gustschin's avatar
      usb: s3c_udc_otg: fix GCC 4.6 build warnings · ea2d9159
      Anatolij Gustschin authored
      
      
      Fix:
      In file included from s3c_udc_otg.c:216:0:
      s3c_udc_otg_xfer_dma.c: In function 'complete_tx':
      s3c_udc_otg_xfer_dma.c:280:33: warning: variable 'is_short' set but not used
      s3c_udc_otg_xfer_dma.c:280:6: warning: variable 'ep_tsr' set but not used
      s3c_udc_otg_xfer_dma.c: In function 's3c_udc_irq':
      s3c_udc_otg_xfer_dma.c:469:16: warning: variable 'flags' set but not used
      s3c_udc_otg_xfer_dma.c:468:18: warning: variable 'gintmsk' set but not used
      s3c_udc_otg_xfer_dma.c: In function 's3c_queue':
      s3c_udc_otg_xfer_dma.c:582:14: warning: variable 'gintsts' set but not used
      s3c_udc_otg_xfer_dma.c:581:16: warning: variable 'flags' set but not used
      s3c_udc_otg_xfer_dma.c: In function 's3c_ep0_read':
      s3c_udc_otg_xfer_dma.c:778:6: warning: variable 'ret' set but not used
      s3c_udc_otg_xfer_dma.c: In function 's3c_udc_set_halt':
      s3c_udc_otg_xfer_dma.c:1020:16: warning: variable 'flags' set but not used
      s3c_udc_otg_xfer_dma.c: In function 's3c_ep0_setup':
      s3c_udc_otg_xfer_dma.c:1258:13: warning: initialization from incompatible
      pointer type [enabled by default]
      s3c_udc_otg_xfer_dma.c:1239:16: warning: variable 'is_in' set but not used
      s3c_udc_otg_xfer_dma.c:1239:9: warning: variable 'bytes' set but not used
      s3c_udc_otg.c: In function 'usb_gadget_register_driver':
      s3c_udc_otg.c:292:16: warning: variable 'flags' set but not used
      s3c_udc_otg.c: In function 'usb_gadget_unregister_driver':
      s3c_udc_otg.c:338:16: warning: variable 'flags' set but not used
      s3c_udc_otg.c: In function 's3c_ep_enable':
      s3c_udc_otg.c:582:16: warning: variable 'flags' set but not used
      s3c_udc_otg.c: In function 's3c_ep_disable':
      s3c_udc_otg.c:646:16: warning: variable 'flags' set but not used
      s3c_udc_otg.c: In function 's3c_dequeue':
      s3c_udc_otg.c:704:16: warning: variable 'flags' set but not used
      Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Remy Bohmer <linux@bohmer.net>
      ea2d9159
  16. 19 Dec, 2011 1 commit
  17. 16 Dec, 2011 1 commit
    • Tom Rini's avatar
      USB: Use (get|put)_unaligned for accessing wMaxPacketSize · b2fb47f1
      Tom Rini authored
      In 97929877
      
       Stefan describes a usecase
      where the previous behavior of leaving wMaxPacketSize be unaligned
      caused fatal problems.  The initial fix for this problem was incomplete
      however as it showed another cases of non-aligned access that previously
      worked implicitly.  This switches to making sure that all access of
      wMaxPacketSize are done via (get|put)_unaligned.
      
      In order to maintain a level of readability to the code in some cases
      we now use a variable for the value of wMaxPacketSize and in others, a
      macro.
      
      Cc: Minkyu Kang <mk7.kang@samsung.com>
      Cc: Remy Bohmer <linux@bohmer.net>
      
      OpenRISC:
      Tested-by: default avatarStefan Kristiansson <stefan.kristiansson@saunalahti.fi>
      
      Beagleboard xM, Pandaboard run-tested, s5p_goni build-tested.
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      b2fb47f1
  18. 11 Dec, 2011 3 commits
  19. 09 Dec, 2011 2 commits
  20. 06 Dec, 2011 1 commit
  21. 27 Mar, 2011 1 commit