<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/usb/dwc3, branch v4.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.2</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2015-07-22T13:52:42Z</updated>
<entry>
<title>usb: dwc3: Reset the transfer resource index on SET_INTERFACE</title>
<updated>2015-07-22T13:52:42Z</updated>
<author>
<name>John Youn</name>
<email>John.Youn@synopsys.com</email>
</author>
<published>2001-09-17T07:00:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=aebda618718157a69c0dc0adb978d69bc2b8723c'/>
<id>urn:sha1:aebda618718157a69c0dc0adb978d69bc2b8723c</id>
<content type='text'>
This fixes an issue introduced in commit b23c843992b6 (usb: dwc3:
gadget: fix DEPSTARTCFG for non-EP0 EPs) that made sure we would
only use DEPSTARTCFG once per SetConfig.

The trick is that we should use one DEPSTARTCFG per SetConfig *OR*
SetInterface. SetInterface was completely missed from the original
patch.

This problem became aparent after commit 76e838c9f776 (usb: dwc3:
gadget: return error if command sent to DEPCMD register fails)
added checking of the return status of device endpoint commands.

'Set Endpoint Transfer Resource' command was caught failing
occasionally. This is because the Transfer Resource
Index was not getting reset during a SET_INTERFACE request.

Finally, to fix the issue, was we have to do is make sure that
our start_config_issued flag gets reset whenever we receive a
SetInterface request.

To verify the problem (and its fix), all we have to do is run
test 9 from testusb with 'testusb -t 9 -s 2048 -a -c 5000'.

Tested-by: Huang Rui &lt;ray.huang@amd.com&gt;
Tested-by: Subbaraya Sundeep Bhatta &lt;subbaraya.sundeep.bhatta@xilinx.com&gt;
Fixes: b23c843992b6 (usb: dwc3: gadget: fix DEPSTARTCFG for non-EP0 EPs)
Cc: &lt;stable@vger.kernel.org&gt; # v3.2+
Signed-off-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: dwc3: core: avoid NULL pointer dereference</title>
<updated>2015-07-06T17:34:08Z</updated>
<author>
<name>Felipe Balbi</name>
<email>balbi@ti.com</email>
</author>
<published>2015-07-02T03:03:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=43cacb03aabe62158d8e5da876054c7d48fc9963'/>
<id>urn:sha1:43cacb03aabe62158d8e5da876054c7d48fc9963</id>
<content type='text'>
commit 3e10a2ce98d1 ("usb: dwc3: add hsphy_interface
property") introduced a possible NULL pointer
dereference because dwc-&gt;hsphy_interface can be
NULL.

In order to fix it, all we have to do is guard
strncmp() against a NULL argument.

Fixes: 3e10a2ce98d1 ("usb: dwc3: add hsphy_interface property")
Tested-by: Murali Karicheri &lt;m-karicheri2@ti.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: dwc3: Use ASCII space in Kconfig</title>
<updated>2015-06-13T00:42:31Z</updated>
<author>
<name>Thierry Reding</name>
<email>treding@nvidia.com</email>
</author>
<published>2015-06-12T13:16:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=50641056d833813b71b0ad51823f7ded8dd62e7f'/>
<id>urn:sha1:50641056d833813b71b0ad51823f7ded8dd62e7f</id>
<content type='text'>
The USB_DWC3_ULPI Kconfig entry uses a UTF-8 non-breaking space (0xca20)
instead of a regular ASCII space (0x20). Commit 2e0d737fc76f ("kconfig:
don't silently ignore unhandled characters") exposes this by warning
about unhandled characters.

Signed-off-by: Thierry Reding &lt;treding@nvidia.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Merge 4.1-rc7 into usb-next</title>
<updated>2015-06-08T17:57:51Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2015-06-08T17:57:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=19915e623458004547c1c2490b09bb923fe69337'/>
<id>urn:sha1:19915e623458004547c1c2490b09bb923fe69337</id>
<content type='text'>
This resolves a merge issue in musb_core.c and we want the fixes that
were in Linus's tree in this branch as well for testing.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'usb-for-v4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next</title>
<updated>2015-06-02T01:47:03Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2015-06-02T01:47:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e152813ff5fea74094ae296367f477411df1ba24'/>
<id>urn:sha1:e152813ff5fea74094ae296367f477411df1ba24</id>
<content type='text'>
Felipe writes:

usb: patches for v4.2 merge window

- dwc2 adds hibernation support
- preparation for sunxi glue to musb driver
- new ULPI bus
- new ULPI PHY driver for TUSB1210
- musb patches to support multiple DMA engines on same binary
- support for R-Car E2 on renesas_usbhs

Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: dwc3: gadget: don't clear EP_BUSY too early</title>
<updated>2015-05-29T15:19:51Z</updated>
<author>
<name>Felipe Balbi</name>
<email>balbi@ti.com</email>
</author>
<published>2015-05-29T15:06:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e18b7975c885bc3a938b9a76daf32957ea0235fa'/>
<id>urn:sha1:e18b7975c885bc3a938b9a76daf32957ea0235fa</id>
<content type='text'>
In case of non-Isochronous transfers, we don't
want to clear DWC3_EP_BUSY flag until XferComplete
event. That's because XferInProgress was only enabled
so we can recycle TRBs and usb_requests quicker, but
there are still other pending requests being transferred.

In order to make sure we don't allow for another StartTransfer
command while the HW is still processing other transfers,
we must keep DWC3_EP_BUSY flag set and this what this patch
does.

Fixes: f3af36511e60 (usb: dwc3: gadget: always enable IOC on
	bulk/interrupt transfers)
Cc: &lt;stable@vger.kernel.org&gt; # v3.15+
Reported-by: sundeep subbaraya &lt;sundeep.lkml@gmail.com&gt;
Tested-by: sundeep subbaraya &lt;sundeep.lkml@gmail.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: dwc3: gadget: return error if command sent to DEPCMD register fails</title>
<updated>2015-05-26T15:39:29Z</updated>
<author>
<name>Subbaraya Sundeep Bhatta</name>
<email>subbaraya.sundeep.bhatta@xilinx.com</email>
</author>
<published>2015-05-21T10:16:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=76e838c9f7765f9a6205b4d558d75a66104bc60d'/>
<id>urn:sha1:76e838c9f7765f9a6205b4d558d75a66104bc60d</id>
<content type='text'>
We need to return error to caller if command is not sent to
controller succesfully.

Signed-off-by: Subbaraya Sundeep Bhatta &lt;sbhatta@xilinx.com&gt;
Fixes: 72246da40f37 (usb: Introduce DesignWare USB3 DRD Driver)
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: dwc3: gadget: return error if command sent to DGCMD register fails</title>
<updated>2015-05-26T15:39:23Z</updated>
<author>
<name>Subbaraya Sundeep Bhatta</name>
<email>subbaraya.sundeep.bhatta@xilinx.com</email>
</author>
<published>2015-05-21T10:16:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=891b1dc022955d36cf4c0f42d383226a930db7ed'/>
<id>urn:sha1:891b1dc022955d36cf4c0f42d383226a930db7ed</id>
<content type='text'>
We need to return error to caller if command is not sent to
controller succesfully.

Signed-off-by: Subbaraya Sundeep Bhatta &lt;sbhatta@xilinx.com&gt;
Fixes: b09bb64239c8 (usb: dwc3: gadget: implement Global Command support)
Cc: &lt;stable@vger.kernel.org&gt; #v3.5+
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: dwc3: gadget: Fix incorrect DEPCMD and DGCMD status macros</title>
<updated>2015-05-26T14:44:55Z</updated>
<author>
<name>Subbaraya Sundeep Bhatta</name>
<email>subbaraya.sundeep.bhatta@xilinx.com</email>
</author>
<published>2015-05-21T10:16:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=459e210c4fd034d20077bcec31fec9472a700fe9'/>
<id>urn:sha1:459e210c4fd034d20077bcec31fec9472a700fe9</id>
<content type='text'>
Fixed the incorrect macro definitions correctly as per databook.

Signed-off-by: Subbaraya Sundeep Bhatta &lt;sbhatta@xilinx.com&gt;
Fixes: b09bb64239c8 (usb: dwc3: gadget: implement Global Command support)
Cc: &lt;stable@vger.kernel.org&gt; #v3.5+
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: dwc3: add ULPI interface support</title>
<updated>2015-05-13T17:06:52Z</updated>
<author>
<name>Heikki Krogerus</name>
<email>heikki.krogerus@linux.intel.com</email>
</author>
<published>2015-05-13T12:26:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=88bc9d194ff69875a4d3c958d969ed2a053c8308'/>
<id>urn:sha1:88bc9d194ff69875a4d3c958d969ed2a053c8308</id>
<content type='text'>
Registers DWC3's ULPI interface with the ULPI bus when it's
available.

Signed-off-by: Heikki Krogerus &lt;heikki.krogerus@linux.intel.com&gt;
Acked-by: David Cohen &lt;david.a.cohen@linux.intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
</entry>
</feed>
