<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/usb/dwc2/hcd.c, branch v4.2</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>usb: dwc2: host: allocate qtd before atomic enqueue</title>
<updated>2015-07-06T17:34:08+00:00</updated>
<author>
<name>Mian Yousaf Kaukab</name>
<email>yousaf.kaukab@intel.com</email>
</author>
<published>2015-06-29T09:05:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=b5a468a6aa1ca9176594cd603760d80fa1e8b15e'/>
<id>b5a468a6aa1ca9176594cd603760d80fa1e8b15e</id>
<content type='text'>
To avoid sleep while atomic bugs, allocate qtd before calling
dwc2_hcd_urb_enqueue. No need to pass mem_flags to
dwc2_hcd_urb_enqueue any more as no memory allocations are done in it.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Tested-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Tested-by: Doug Anderson &lt;dianders@chromium.org&gt;
Signed-off-by: Mian Yousaf Kaukab &lt;yousaf.kaukab@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To avoid sleep while atomic bugs, allocate qtd before calling
dwc2_hcd_urb_enqueue. No need to pass mem_flags to
dwc2_hcd_urb_enqueue any more as no memory allocations are done in it.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Tested-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Tested-by: Doug Anderson &lt;dianders@chromium.org&gt;
Signed-off-by: Mian Yousaf Kaukab &lt;yousaf.kaukab@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: dwc2: host: allocate qh before atomic enqueue</title>
<updated>2015-07-06T17:34:08+00:00</updated>
<author>
<name>Mian Yousaf Kaukab</name>
<email>yousaf.kaukab@intel.com</email>
</author>
<published>2015-06-29T09:05:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=b58e6ceef96f2fbcb1698b0a7c7df59fdea0aa32'/>
<id>b58e6ceef96f2fbcb1698b0a7c7df59fdea0aa32</id>
<content type='text'>
To avoid sleep while atomic bugs, allocate qh before calling
dwc2_hcd_urb_enqueue. qh pointer can be used directly now instead of
passing ep-&gt;hcpriv as double pointer.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Tested-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Tested-by: Doug Anderson &lt;dianders@chromium.org&gt;
Signed-off-by: Mian Yousaf Kaukab &lt;yousaf.kaukab@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To avoid sleep while atomic bugs, allocate qh before calling
dwc2_hcd_urb_enqueue. qh pointer can be used directly now instead of
passing ep-&gt;hcpriv as double pointer.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Tested-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Tested-by: Doug Anderson &lt;dianders@chromium.org&gt;
Signed-off-by: Mian Yousaf Kaukab &lt;yousaf.kaukab@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: dwc2: hcd: fix build warning</title>
<updated>2015-05-13T17:03:23+00:00</updated>
<author>
<name>Felipe Balbi</name>
<email>balbi@ti.com</email>
</author>
<published>2015-05-08T18:30:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=3521a399dae8d66fc784cef70a78e65ce73e364f'/>
<id>3521a399dae8d66fc784cef70a78e65ce73e364f</id>
<content type='text'>
commit db62b9a804b4 (usb: dwc2: host: don't
use dma_alloc_coherent with irqs disabled)
introduced a build warning by using NULL
as an integer. Fix that by just using 0 instead
of NULL.

Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit db62b9a804b4 (usb: dwc2: host: don't
use dma_alloc_coherent with irqs disabled)
introduced a build warning by using NULL
as an integer. Fix that by just using 0 instead
of NULL.

Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: dwc2: remove dwc2_platform.ko</title>
<updated>2015-04-29T20:20:11+00:00</updated>
<author>
<name>Mian Yousaf Kaukab</name>
<email>yousaf.kaukab@intel.com</email>
</author>
<published>2015-04-29T20:09:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=2d1165a4b95e25aed83fed737d53ab0c87b831e6'/>
<id>2d1165a4b95e25aed83fed737d53ab0c87b831e6</id>
<content type='text'>
As dwc2 pci module is now exporting dwc2 platform device, include
platform.o in dwc2-y and remove USB_DWC2_PLATFORM configuration
option. Driver will be built as two modules, dwc2.ko and dwc2_pci.ko.
dwc2.ko is the new platform driver.

Remove all EXPORT_SYMBOL_GPL as they are not needed any more.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Mian Yousaf Kaukab &lt;yousaf.kaukab@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As dwc2 pci module is now exporting dwc2 platform device, include
platform.o in dwc2-y and remove USB_DWC2_PLATFORM configuration
option. Driver will be built as two modules, dwc2.ko and dwc2_pci.ko.
dwc2.ko is the new platform driver.

Remove all EXPORT_SYMBOL_GPL as they are not needed any more.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Mian Yousaf Kaukab &lt;yousaf.kaukab@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: dwc2: host: implement test mode</title>
<updated>2015-04-29T20:20:05+00:00</updated>
<author>
<name>Jingwu Lin</name>
<email>jingwu.lin@intel.com</email>
</author>
<published>2015-04-29T20:09:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=96d480e65ea0e4e950f75029b8a1ff4c1269f8b0'/>
<id>96d480e65ea0e4e950f75029b8a1ff4c1269f8b0</id>
<content type='text'>
Add support for SetPortFeature(PORT_TEST) for root port.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Jingwu Lin &lt;jingwu.lin@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for SetPortFeature(PORT_TEST) for root port.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Jingwu Lin &lt;jingwu.lin@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: dwc2: host: don't use dma_alloc_coherent with irqs disabled</title>
<updated>2015-04-29T20:20:00+00:00</updated>
<author>
<name>Gregory Herrero</name>
<email>gregory.herrero@intel.com</email>
</author>
<published>2015-04-29T20:09:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=db62b9a804b465f5050438eb06151c99c625ec9a'/>
<id>db62b9a804b465f5050438eb06151c99c625ec9a</id>
<content type='text'>
Align buffer must be allocated using kmalloc since irqs are disabled.
Coherency is handled through dma_map_single which can be used with irqs
disabled.

Reviewed-by: Julius Werner &lt;jwerner@chromium.org&gt;
Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Gregory Herrero &lt;gregory.herrero@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Align buffer must be allocated using kmalloc since irqs are disabled.
Coherency is handled through dma_map_single which can be used with irqs
disabled.

Reviewed-by: Julius Werner &lt;jwerner@chromium.org&gt;
Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Gregory Herrero &lt;gregory.herrero@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: dwc2: host: spinlock urb_enqueue</title>
<updated>2015-04-29T20:19:55+00:00</updated>
<author>
<name>Gregory Herrero</name>
<email>gregory.herrero@intel.com</email>
</author>
<published>2015-04-29T20:09:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=33ad261aa62be02f0cedeb4d5735cc726de84a3f'/>
<id>33ad261aa62be02f0cedeb4d5735cc726de84a3f</id>
<content type='text'>
During urb_enqueue, if the urb can't be queued to the endpoint,
the urb is freed without any spinlock protection.
This leads to memory corruption when concurrent urb_dequeue try to free
same urb-&gt;hcpriv.
Thus, ensure the whole urb_enqueue in spinlocked.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Gregory Herrero &lt;gregory.herrero@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
During urb_enqueue, if the urb can't be queued to the endpoint,
the urb is freed without any spinlock protection.
This leads to memory corruption when concurrent urb_dequeue try to free
same urb-&gt;hcpriv.
Thus, ensure the whole urb_enqueue in spinlocked.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Gregory Herrero &lt;gregory.herrero@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: dwc2: host: add bus_suspend/bus_resume callback</title>
<updated>2015-04-29T20:19:44+00:00</updated>
<author>
<name>Gregory Herrero</name>
<email>gregory.herrero@intel.com</email>
</author>
<published>2015-04-29T20:09:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=99a657983a1e03fd3b8495199bb0a4870c1abda4'/>
<id>99a657983a1e03fd3b8495199bb0a4870c1abda4</id>
<content type='text'>
Update controller state to indicate suspend entry.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Gregory Herrero &lt;gregory.herrero@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update controller state to indicate suspend entry.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Gregory Herrero &lt;gregory.herrero@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: dwc2: host: register handle to the phy</title>
<updated>2015-04-29T20:19:39+00:00</updated>
<author>
<name>Mian Yousaf Kaukab</name>
<email>yousaf.kaukab@intel.com</email>
</author>
<published>2015-04-29T20:09:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=9df4ceac8b359b6c261c10132fd3a49558bebd16'/>
<id>9df4ceac8b359b6c261c10132fd3a49558bebd16</id>
<content type='text'>
If phy driver is present register hcd handle to it.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Mian Yousaf Kaukab &lt;yousaf.kaukab@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If phy driver is present register hcd handle to it.

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Mian Yousaf Kaukab &lt;yousaf.kaukab@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: dwc2: set parameter values in probe function</title>
<updated>2015-04-29T20:19:02+00:00</updated>
<author>
<name>Mian Yousaf Kaukab</name>
<email>yousaf.kaukab@intel.com</email>
</author>
<published>2015-04-29T20:09:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=ecb176c63ac49ddcea83b0171ead1372bb78c165'/>
<id>ecb176c63ac49ddcea83b0171ead1372bb78c165</id>
<content type='text'>
So the parameters can be used in both host and gadget modes.
Also consolidate param functions in the core.h

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Mian Yousaf Kaukab &lt;yousaf.kaukab@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So the parameters can be used in both host and gadget modes.
Also consolidate param functions in the core.h

Acked-by: John Youn &lt;johnyoun@synopsys.com&gt;
Signed-off-by: Mian Yousaf Kaukab &lt;yousaf.kaukab@intel.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
