1. 07 7月, 2015 3 次提交
  2. 14 5月, 2015 1 次提交
  3. 30 4月, 2015 22 次提交
  4. 10 4月, 2015 1 次提交
  5. 08 4月, 2015 1 次提交
  6. 04 4月, 2015 1 次提交
  7. 20 3月, 2015 2 次提交
  8. 13 3月, 2015 2 次提交
  9. 12 3月, 2015 1 次提交
    • J
      usb: dwc2: pci: Add device mode to the dwc2-pci driver · 9024c495
      John Youn 提交于
      The pci driver now registers a platform driver, like in dwc3, and lets
      its probe function do all the initialization. This allows it to
      account for changes to the platform driver that were not added to the
      pci driver. Also future changes to the probe function don't have to be
      duplicated. This also has the effect of adding device and DRD mode to
      the pci driver. Tested on the Synopsys HAPS PCIe platform.
      Signed-off-by: NJohn Youn <johnyoun@synopsys.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      9024c495
  10. 11 3月, 2015 2 次提交
  11. 05 2月, 2015 1 次提交
    • R
      usb: dwc2: Fix a bug in reading the endpoint directions from reg. · 251a17f5
      Roshan Pius 提交于
      According to  the DWC2 datasheet, the HWCFG1 register stores
      the configured endpoint directions for endpoints 0-15 in bit positions
      0-31.
      ==========================
      Endpoint Direction (EpDir)
      This 32-bit field uses two bits per endpoint to determine the endpoint
      direction.
      Endpoint
      Bits [31:30]: Endpoint 15 direction
      Bits [29:28]: Endpoint 14 direction
      ....
      Bits [3:2]: Endpoint 1 direction
      Bits[1:0]: Endpoint 0 direction (always BIDIR)
      ==========================
      
      The DWC2 driver is currently interpreting the contents of the register
      as directions for endpoints 1-15 which leads to an error in determining
      the configured endpoint directions in the core because the first 2 bits
      determine the direction of endpoint 0 and not 1.
      
      This is based on testing/next branch in Felipe's git.
      Signed-off-by: NRoshan Pius <rpius@chromium.org>
      Acked-by: NJohn Youn <johnyoun@synopsys.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      251a17f5
  12. 31 1月, 2015 3 次提交
    • A
      usb: dwc2: fix USB core dependencies · b7974de8
      Arnd Bergmann 提交于
      It is currently possible to configure the dwc2 driver as built-in
      when host mode or dual-role is enabled, but the USB core is
      a loadable module. This leads to a link failure:
      
      drivers/built-in.o: In function `_dwc2_hcd_start':
      :(.text+0x84538): undefined reference to `usb_hcd_resume_root_hub'
      drivers/built-in.o: In function `_dwc2_hcd_urb_dequeue':
      :(.text+0x84aa0): undefined reference to `usb_hcd_check_unlink_urb'
      :(.text+0x84e4c): undefined reference to `usb_hcd_unlink_urb_from_ep'
      :(.text+0x84e74): undefined reference to `usb_hcd_giveback_urb'
      drivers/built-in.o: In function `dwc2_assign_and_init_hc':
      :(.text+0x86b98): undefined reference to `usb_hcd_unmap_urb_for_dma'
      drivers/built-in.o: In function `_dwc2_hcd_urb_enqueue':
      :(.text+0x8717c): undefined reference to `usb_hcd_link_urb_to_ep'
      :(.text+0x872f4): undefined reference to `usb_hcd_unlink_urb_from_ep'
      drivers/built-in.o: In function `dwc2_host_complete':
      :(.text+0x875d4): undefined reference to `usb_hcd_unlink_urb_from_ep'
      :(.text+0x87600): undefined reference to `usb_hcd_giveback_urb'
      drivers/built-in.o: In function `dwc2_hcd_init':
      :(.text+0x87ba8): undefined reference to `usb_disabled'
      :(.text+0x87d38): undefined reference to `usb_create_hcd'
      :(.text+0x88094): undefined reference to `usb_add_hcd'
      :(.text+0x880dc): undefined reference to `usb_put_hcd'
      drivers/built-in.o: In function `dwc2_hcd_remove':
      :(.text+0x8821c): undefined reference to `usb_remove_hcd'
      :(.text+0x8823c): undefined reference to `usb_put_hcd'
      drivers/built-in.o: In function `dwc2_hc_handle_tt_clear.isra.10':
      :(.text+0x88e2c): undefined reference to `usb_hub_clear_tt_buffer'
      drivers/built-in.o: In function `dwc2_hcd_qtd_add':
      :(.text+0x8b554): undefined reference to `usb_calc_bus_time'
      
      To fix the problem, this patch changes the dependencies so that
      dwc2 host mode can only be enabled if either the USB core is
      built-in or both USB and dwc2 are modules.
      Acked-by: NJohn Youn <johnyoun@synopsys.com>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      b7974de8
    • G
      usb: dwc2: gadget: initialize controller in pullup callback · b4c2378d
      Gregory Herrero 提交于
      USB reset interrupt is no more used to reset the controller.
      Thus, reset the controller in pullup callback as described by
      Synopsys programming guide. Otherwise enumeration sometimes
      fails when usb configuration is switched without physical
      disconnection.
      Tested-by: NRobert Baldyga <r.baldyga@samsung.com>
      Acked-by: NJohn Youn <johnyoun@synopsys.com>
      Signed-off-by: NGregory Herrero <gregory.herrero@intel.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      b4c2378d
    • M
      usb: dwc2: gadget: replace constants with defines · f889f23d
      Mian Yousaf Kaukab 提交于
      Defines are more readable and searchable than constants.
      Tested-by: NRobert Baldyga <r.baldyga@samsung.com>
      Acked-by: NJohn Youn <johnyoun@synopsys.com>
      Signed-off-by: NMian Yousaf Kaukab <yousaf.kaukab@intel.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      f889f23d