1. 06 8月, 2015 2 次提交
  2. 05 8月, 2015 1 次提交
  3. 31 7月, 2015 1 次提交
  4. 08 5月, 2015 2 次提交
  5. 09 3月, 2015 1 次提交
  6. 30 1月, 2015 1 次提交
  7. 11 11月, 2014 1 次提交
  8. 04 11月, 2014 4 次提交
  9. 25 9月, 2014 1 次提交
  10. 20 12月, 2013 1 次提交
    • A
      usb: musb: fix setting JZ4740 gadget periphal mode on reset · 23db9fd2
      Apelete Seketeli 提交于
      JZ4740 USB Device Controller is not OTG compatible and does not have
      DEVCTL register in silicon.
      
      During ethernet-over-usb transactions, on reset, musb driver tries to
      read from DEVCTL and consequently sets device as host (A-Device)
      instead of peripheral (B-Device), which makes it a composite device to
      the USB gadget driver.
      This induces a kernel panic during power down where the USB gadget
      driver does a null pointer dereference when trying to access the
      composite device configuration.
      
      On reset, do not rely on DEVCTL value for setting gadget peripheral
      mode. Use is_otg flag instead to set it to B-Device.
      Signed-off-by: NApelete Seketeli <apelete@seketeli.net>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      23db9fd2
  11. 18 12月, 2013 1 次提交
    • R
      usb: gadget: add "maxpacket_limit" field to struct usb_ep · e117e742
      Robert Baldyga 提交于
      This patch adds "maxpacket_limit" to struct usb_ep. This field contains
      maximum value of maxpacket supported by driver, and is set in driver probe.
      This value should be used by autoconfig() function, because value of field
      "maxpacket" is set to value from endpoint descriptor when endpoint becomes
      enabled. So when autoconfig() function will be called again for this endpoint,
      "maxpacket" value will contain wMaxPacketSize from descriptior instead of
      maximum packet size for this endpoint.
      
      For this reason this patch adds new field "maxpacket_limit" which contains
      value of maximum packet size (which defines maximum endpoint capabilities).
      This value is used in ep_matches() function used by autoconfig().
      
      Value of "maxpacket_limit" should be set in UDC driver probe function, using
      usb_ep_set_maxpacket_limit() function, defined in gadget.h. This function
      set choosen value to both "maxpacket_limit" and "maxpacket" fields.
      
      This patch modifies UDC drivers by adding support for maxpacket_limit.
      Signed-off-by: NRobert Baldyga <r.baldyga@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      e117e742
  12. 26 11月, 2013 1 次提交
    • A
      usb: fix musb gadget to enable OTG mode conditionally · fd3923a9
      Apelete Seketeli 提交于
      The musb driver is usable in host, gadget or dual role mode depending
      on the kernel configuration.
      
      However, the musb gadget part of the driver is enabling OTG mode
      whether the driver is built for dual role or gadget only mode. This
      induces a bug for gadget only USB device controllers where the kernel
      tries to use Host Negotiation Protocol with such controllers, which
      causes a panic.
      
      This behaviour is now fixed by enabling OTG mode only when musb driver
      is built for dual role mode.
      Signed-off-by: NApelete Seketeli <apelete@seketeli.net>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      fd3923a9
  13. 15 10月, 2013 1 次提交
  14. 12 10月, 2013 1 次提交
  15. 11 10月, 2013 1 次提交
    • S
      usb: musb: start musb on the udc side, too · 001dd84a
      Sebastian Andrzej Siewior 提交于
      I have am335x-evm with one port running in OTG mode. Since commit
      fe4cb091 ("usb: musb: gadget: remove hcd initialization") the loaded
      gadget does non pop up on the host. All I see is
      |usb 4-5: new high-speed USB device number 52 using ehci-pci
      |usb 4-5: device descriptor read/64, error -110
      
      Since a later commit 2cc65fea ("usb: musb: add musb_host_setup() and
      musb_host_cleanup()) the gadget shows up on the host again but only
      in OTG mode (because we have the host init code running). It does not
      work in device only mode.
      If running in OTG mode and the gadget is removed and added back (rmmod
      followed by modprobe of a gadget) then the same error is pops up on the
      host side.
      
      This patch ensures that the gadget side also executes musb_start() which
      puts the chip in "connect accept" mode. With this change the device
      works in OTG & device mode and the gadget can be added & removed
      multiple times.
      A device (if musb is in OTG mode acting as a host) is only recognized if
      it is attached during module load (musb_hdrc module). After the device
      unplugged and plugged again the host does not recognize it. We get a
      buch of errors if musb running in OTG mode, attached to a host and no
      gadget is loaded. Bah.
      This is one step forward. Host & device only mode should work. I will
      look at OTG later. I looked at this before commit fe4cb091 and OTG wasn't
      working there perfectly so I am not sure that it is a regression :)
      
      Cc: <stable@vger.kernel.org> # v3.11
      Cc: Daniel Mack <zonque@gmail.com>
      Cc: Peter Korsgaard <jacmet@sunsite.dk>
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      001dd84a
  16. 26 9月, 2013 1 次提交
  17. 18 9月, 2013 1 次提交
    • B
      usb: musb: fix otg default state · 1374a430
      Bin Liu 提交于
      Right after the musb_hdrc driver is loaded, the otg default state
      is a_idle, and Mode=Host, which are set by musb_host_setup().
      
      This causes the following kernel message during musb gadget
      enumeration.
      
      	CAUTION: musb: Babble Interrupt Occurred
      
      This patch sets the otg default state to b_idle, and its Mode to
      Peripheral.
      
      It has been validated on TI AM335x GP EVM USB0 port with g_zero.
      Signed-off-by: NBin Liu <b-liu@ti.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      1374a430
  18. 28 8月, 2013 3 次提交
  19. 14 8月, 2013 1 次提交
  20. 29 7月, 2013 1 次提交
  21. 29 5月, 2013 1 次提交
  22. 02 4月, 2013 1 次提交
  23. 22 3月, 2013 1 次提交
  24. 18 3月, 2013 8 次提交
  25. 10 1月, 2013 1 次提交
  26. 22 11月, 2012 1 次提交