<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/usb/gadget, branch v3.3.2</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>usb gadget: fix a section mismatch when compiling g_ffs with CONFIG_USB_FUNCTIONFS_ETH</title>
<updated>2012-04-02T17:31:55+00:00</updated>
<author>
<name>Lothar Waßmann</name>
<email>LW@KARO-electronics.de</email>
</author>
<published>2012-03-11T14:08:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=4e6a69464c389da6179cf3cad0365d72e78614be'/>
<id>4e6a69464c389da6179cf3cad0365d72e78614be</id>
<content type='text'>
commit 8d0698428822ce63f7269e7fe81fc4580807b9ac upstream.

 commit 28824b18ac4705e876a282a15ea0de8fc957551f:
 |Author: Michal Nazarewicz &lt;m.nazarewicz@samsung.com&gt;
 |Date:   Wed May 5 12:53:13 2010 +0200
 |
 |    USB: gadget: __init and __exit tags removed
 |
 |    __init, __initdata and __exit tags have have been removed from
 |    various files to make it possible for gadgets that do not use
 |    the __init/__exit tags to use those.
 obviously missed (at least) this case leading to a section mismatch in
 g_ffs.c when compiling with CONFIG_USB_FUNCTIONFS_ETH enabled.

Signed-off-by: Lothar Waßmann &lt;LW@KARO-electronics.de&gt;
Acked-by: Michal Nazarewicz &lt;mina86@mina86.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 8d0698428822ce63f7269e7fe81fc4580807b9ac upstream.

 commit 28824b18ac4705e876a282a15ea0de8fc957551f:
 |Author: Michal Nazarewicz &lt;m.nazarewicz@samsung.com&gt;
 |Date:   Wed May 5 12:53:13 2010 +0200
 |
 |    USB: gadget: __init and __exit tags removed
 |
 |    __init, __initdata and __exit tags have have been removed from
 |    various files to make it possible for gadgets that do not use
 |    the __init/__exit tags to use those.
 obviously missed (at least) this case leading to a section mismatch in
 g_ffs.c when compiling with CONFIG_USB_FUNCTIONFS_ETH enabled.

Signed-off-by: Lothar Waßmann &lt;LW@KARO-electronics.de&gt;
Acked-by: Michal Nazarewicz &lt;mina86@mina86.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>usb: fsl_udc_core: Fix scheduling while atomic dump message</title>
<updated>2012-04-02T17:31:35+00:00</updated>
<author>
<name>Peter Chen</name>
<email>peter.chen@freescale.com</email>
</author>
<published>2012-02-16T01:36:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=89469a5e4603f6e648add57e312c69704ff42617'/>
<id>89469a5e4603f6e648add57e312c69704ff42617</id>
<content type='text'>
commit c5cc5ed86667d4ae74fe40ee4ed893f4b46aba05 upstream.

When loading g_ether gadget, there is below message:

Backtrace:
[&lt;80012248&gt;] (dump_backtrace+0x0/0x10c) from [&lt;803cb42c&gt;] (dump_stack+0x18/0x1c)
r7:00000000 r6:80512000 r5:8052bef8 r4:80513f30
[&lt;803cb414&gt;] (dump_stack+0x0/0x1c) from [&lt;8000feb4&gt;] (show_regs+0x44/0x50)
[&lt;8000fe70&gt;] (show_regs+0x0/0x50) from [&lt;8004c840&gt;] (__schedule_bug+0x68/0x84)
r5:8052bef8 r4:80513f30
[&lt;8004c7d8&gt;] (__schedule_bug+0x0/0x84) from [&lt;803cd0e4&gt;] (__schedule+0x4b0/0x528)
r5:8052bef8 r4:809aad00
[&lt;803ccc34&gt;] (__schedule+0x0/0x528) from [&lt;803cd214&gt;] (_cond_resched+0x44/0x58)
[&lt;803cd1d0&gt;] (_cond_resched+0x0/0x58) from [&lt;800a9488&gt;] (dma_pool_alloc+0x184/0x250)
 r5:9f9b4000 r4:9fb4fb80
 [&lt;800a9304&gt;] (dma_pool_alloc+0x0/0x250) from [&lt;802a8ad8&gt;] (fsl_req_to_dtd+0xac/0x180)
[&lt;802a8a2c&gt;] (fsl_req_to_dtd+0x0/0x180) from [&lt;802a8ce4&gt;] (fsl_ep_queue+0x138/0x274)
[&lt;802a8bac&gt;] (fsl_ep_queue+0x0/0x274) from [&lt;7f004328&gt;] (composite_setup+0x2d4/0xfac [g_ether])
[&lt;7f004054&gt;] (composite_setup+0x0/0xfac [g_ether]) from [&lt;802a9bb4&gt;] (fsl_udc_irq+0x8dc/0xd38)
[&lt;802a92d8&gt;] (fsl_udc_irq+0x0/0xd38) from [&lt;800704f8&gt;] (handle_irq_event_percpu+0x54/0x188)
[&lt;800704a4&gt;] (handle_irq_event_percpu+0x0/0x188) from [&lt;80070674&gt;] (handle_irq_event+0x48/0x68)
[&lt;8007062c&gt;] (handle_irq_event+0x0/0x68) from [&lt;800738ec&gt;] (handle_level_irq+0xb4/0x138)
 r5:80514f94 r4:80514f40
 [&lt;80073838&gt;] (handle_level_irq+0x0/0x138) from [&lt;8006ffa4&gt;] (generic_handle_irq+0x38/0x44)
 r7:00000012 r6:80510b1c r5:80529860 r4:80512000
 [&lt;8006ff6c&gt;] (generic_handle_irq+0x0/0x44) from [&lt;8000f4c4&gt;] (handle_IRQ+0x54/0xb4)
[&lt;8000f470&gt;] (handle_IRQ+0x0/0xb4) from [&lt;800085b8&gt;] (tzic_handle_irq+0x64/0x94)
 r9:412fc085 r8:00000000 r7:80513f30 r6:00000001 r5:00000000
 r4:00000000
 [&lt;80008554&gt;] (tzic_handle_irq+0x0/0x94) from [&lt;8000e680&gt;] (__irq_svc+0x40/0x60)

The reason of above dump message is calling dma_poll_alloc with can-schedule
mem_flags at atomic context.

To fix this problem, below changes are made:
- fsl_req_to_dtd doesn't need to be protected by spin_lock_irqsave,
as struct usb_request can be access at process context. Move lock
to beginning of hardware visit (fsl_queue_td).
- Change the memory flag which using to allocate dTD descriptor buffer,
the memory flag can be from gadget layer.

It is tested at i.mx51 bbg board with g_mass_storage, g_ether, g_serial.

Signed-off-by: Peter Chen &lt;peter.chen@freescale.com&gt;
Acked-by: Li Yang &lt;leoli@freescale.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit c5cc5ed86667d4ae74fe40ee4ed893f4b46aba05 upstream.

When loading g_ether gadget, there is below message:

Backtrace:
[&lt;80012248&gt;] (dump_backtrace+0x0/0x10c) from [&lt;803cb42c&gt;] (dump_stack+0x18/0x1c)
r7:00000000 r6:80512000 r5:8052bef8 r4:80513f30
[&lt;803cb414&gt;] (dump_stack+0x0/0x1c) from [&lt;8000feb4&gt;] (show_regs+0x44/0x50)
[&lt;8000fe70&gt;] (show_regs+0x0/0x50) from [&lt;8004c840&gt;] (__schedule_bug+0x68/0x84)
r5:8052bef8 r4:80513f30
[&lt;8004c7d8&gt;] (__schedule_bug+0x0/0x84) from [&lt;803cd0e4&gt;] (__schedule+0x4b0/0x528)
r5:8052bef8 r4:809aad00
[&lt;803ccc34&gt;] (__schedule+0x0/0x528) from [&lt;803cd214&gt;] (_cond_resched+0x44/0x58)
[&lt;803cd1d0&gt;] (_cond_resched+0x0/0x58) from [&lt;800a9488&gt;] (dma_pool_alloc+0x184/0x250)
 r5:9f9b4000 r4:9fb4fb80
 [&lt;800a9304&gt;] (dma_pool_alloc+0x0/0x250) from [&lt;802a8ad8&gt;] (fsl_req_to_dtd+0xac/0x180)
[&lt;802a8a2c&gt;] (fsl_req_to_dtd+0x0/0x180) from [&lt;802a8ce4&gt;] (fsl_ep_queue+0x138/0x274)
[&lt;802a8bac&gt;] (fsl_ep_queue+0x0/0x274) from [&lt;7f004328&gt;] (composite_setup+0x2d4/0xfac [g_ether])
[&lt;7f004054&gt;] (composite_setup+0x0/0xfac [g_ether]) from [&lt;802a9bb4&gt;] (fsl_udc_irq+0x8dc/0xd38)
[&lt;802a92d8&gt;] (fsl_udc_irq+0x0/0xd38) from [&lt;800704f8&gt;] (handle_irq_event_percpu+0x54/0x188)
[&lt;800704a4&gt;] (handle_irq_event_percpu+0x0/0x188) from [&lt;80070674&gt;] (handle_irq_event+0x48/0x68)
[&lt;8007062c&gt;] (handle_irq_event+0x0/0x68) from [&lt;800738ec&gt;] (handle_level_irq+0xb4/0x138)
 r5:80514f94 r4:80514f40
 [&lt;80073838&gt;] (handle_level_irq+0x0/0x138) from [&lt;8006ffa4&gt;] (generic_handle_irq+0x38/0x44)
 r7:00000012 r6:80510b1c r5:80529860 r4:80512000
 [&lt;8006ff6c&gt;] (generic_handle_irq+0x0/0x44) from [&lt;8000f4c4&gt;] (handle_IRQ+0x54/0xb4)
[&lt;8000f470&gt;] (handle_IRQ+0x0/0xb4) from [&lt;800085b8&gt;] (tzic_handle_irq+0x64/0x94)
 r9:412fc085 r8:00000000 r7:80513f30 r6:00000001 r5:00000000
 r4:00000000
 [&lt;80008554&gt;] (tzic_handle_irq+0x0/0x94) from [&lt;8000e680&gt;] (__irq_svc+0x40/0x60)

The reason of above dump message is calling dma_poll_alloc with can-schedule
mem_flags at atomic context.

To fix this problem, below changes are made:
- fsl_req_to_dtd doesn't need to be protected by spin_lock_irqsave,
as struct usb_request can be access at process context. Move lock
to beginning of hardware visit (fsl_queue_td).
- Change the memory flag which using to allocate dTD descriptor buffer,
the memory flag can be from gadget layer.

It is tested at i.mx51 bbg board with g_mass_storage, g_ether, g_serial.

Signed-off-by: Peter Chen &lt;peter.chen@freescale.com&gt;
Acked-by: Li Yang &lt;leoli@freescale.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>USB: gadget: Make g_hid device class conform to spec.</title>
<updated>2012-04-02T17:31:34+00:00</updated>
<author>
<name>Orjan Friberg</name>
<email>of@flatfrog.com</email>
</author>
<published>2012-03-07T16:16:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=a41390f5657a1de04acb4c99c089a678030aede5'/>
<id>a41390f5657a1de04acb4c99c089a678030aede5</id>
<content type='text'>
commit 33d2832ab0149a26418d360af3c444969a63fb28 upstream.

HID devices should specify this in their interface descriptors, not in the
device descriptor. This fixes a "missing hardware id" bug under Windows 7 with
a VIA VL800 (3.0) controller.

Signed-off-by: Orjan Friberg &lt;of@flatfrog.com&gt;
Cc: Felipe Balbi &lt;balbi@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 33d2832ab0149a26418d360af3c444969a63fb28 upstream.

HID devices should specify this in their interface descriptors, not in the
device descriptor. This fixes a "missing hardware id" bug under Windows 7 with
a VIA VL800 (3.0) controller.

Signed-off-by: Orjan Friberg &lt;of@flatfrog.com&gt;
Cc: Felipe Balbi &lt;balbi@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>usb: gadgetfs: return number of bytes on ep0 read request</title>
<updated>2012-04-02T17:31:34+00:00</updated>
<author>
<name>Thomas Faber</name>
<email>thfabba@gmx.de</email>
</author>
<published>2012-03-02T08:41:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=5c9e6ce0ca99917cda4a9a07b5442c793f98cfea'/>
<id>5c9e6ce0ca99917cda4a9a07b5442c793f98cfea</id>
<content type='text'>
commit 85b4b3c8c189e0159101f7628a71411af072ff69 upstream.

A read from GadgetFS endpoint 0 during the data stage of a control
request would always return 0 on success (as returned by
wait_event_interruptible) despite having written data into the user
buffer.
This patch makes it correctly set the return value to the number of
bytes read.

Signed-off-by: Thomas Faber &lt;thfabba@gmx.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 85b4b3c8c189e0159101f7628a71411af072ff69 upstream.

A read from GadgetFS endpoint 0 during the data stage of a control
request would always return 0 on success (as returned by
wait_event_interruptible) despite having written data into the user
buffer.
This patch makes it correctly set the return value to the number of
bytes read.

Signed-off-by: Thomas Faber &lt;thfabba@gmx.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>usb: gadget: Clear usb_endpoint_descriptor inside the struct usb_ep on disable</title>
<updated>2012-04-02T17:31:34+00:00</updated>
<author>
<name>Ido Shayevitz</name>
<email>idos@codeaurora.org</email>
</author>
<published>2012-02-08T11:56:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=528169bfacc07e1536bdabdc1ef42deaa5c6ae60'/>
<id>528169bfacc07e1536bdabdc1ef42deaa5c6ae60</id>
<content type='text'>
commit f9c56cdd3905c96c600456203637bd7ec8ec6383 upstream.

This fix a bug in f_serial, which expect the ep-&gt;desc to be NULL after
disabling an endpoint.

Signed-off-by: Ido Shayevitz &lt;idos@codeaurora.org&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit f9c56cdd3905c96c600456203637bd7ec8ec6383 upstream.

This fix a bug in f_serial, which expect the ep-&gt;desc to be NULL after
disabling an endpoint.

Signed-off-by: Ido Shayevitz &lt;idos@codeaurora.org&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>usb: gadget: zero: fix bug in loopback autoresume handling</title>
<updated>2012-01-30T09:10:20+00:00</updated>
<author>
<name>Timo Juhani Lindfors</name>
<email>timo.lindfors@iki.fi</email>
</author>
<published>2012-01-29T14:12:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=683da59d7b8ae04891636d4b59893cd4e9b0b7e5'/>
<id>683da59d7b8ae04891636d4b59893cd4e9b0b7e5</id>
<content type='text'>
ab943a2e125b (USB: gadget: gadget zero uses new suspend/resume hooks)
introduced a copy-paste error where f_loopback.c writes to a variable
declared in f_sourcesink.c. This prevents one from creating gadgets
that only have a loopback function.

Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Timo Juhani Lindfors &lt;timo.lindfors@iki.fi&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ab943a2e125b (USB: gadget: gadget zero uses new suspend/resume hooks)
introduced a copy-paste error where f_loopback.c writes to a variable
declared in f_sourcesink.c. This prevents one from creating gadgets
that only have a loopback function.

Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Timo Juhani Lindfors &lt;timo.lindfors@iki.fi&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: gadget: f_mass_storage: Use "bool" instead of "int" in fsg_module_parameters</title>
<updated>2012-01-24T13:43:13+00:00</updated>
<author>
<name>Fabio Estevam</name>
<email>festevam@gmail.com</email>
</author>
<published>2012-01-12T18:09:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=4b5203f1883e2dd49273e9f91235c36a0708aad1'/>
<id>4b5203f1883e2dd49273e9f91235c36a0708aad1</id>
<content type='text'>
Fix the following build warnings:

 CC [M]  drivers/usb/gadget/acm_ms.o
drivers/usb/gadget/acm_ms.c: In function ‘__check_ro’:
drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type
drivers/usb/gadget/acm_ms.c: In function ‘__check_removable’:
drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type
drivers/usb/gadget/acm_ms.c: In function ‘__check_cdrom’:
drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type
drivers/usb/gadget/acm_ms.c: In function ‘__check_nofua’:
drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type
drivers/usb/gadget/acm_ms.c: In function ‘__check_stall’:
drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type
  CC [M]  drivers/usb/gadget/mass_storage.o
drivers/usb/gadget/mass_storage.c: In function ‘__check_ro’:
drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type
drivers/usb/gadget/mass_storage.c: In function ‘__check_removable’:
drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type
drivers/usb/gadget/mass_storage.c: In function ‘__check_cdrom’:
drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type
drivers/usb/gadget/mass_storage.c: In function ‘__check_nofua’:
drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type
drivers/usb/gadget/mass_storage.c: In function ‘__check_stall’:
drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type

Declare the fsg_module_parameters fields as "bool" so that they can match the types
passed in FSG_MODULE_PARAM_ARRAY macro.

Since commit 493c90ef (module_param: check that bool parameters really are bool.),
moduleparam.h was changed in a way that the "bool" parameter type now really
requires "bool" type and no longer allows "unsigned int".

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Acked-by: Michal Nazarewicz &lt;mina86@mina86.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>
Fix the following build warnings:

 CC [M]  drivers/usb/gadget/acm_ms.o
drivers/usb/gadget/acm_ms.c: In function ‘__check_ro’:
drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type
drivers/usb/gadget/acm_ms.c: In function ‘__check_removable’:
drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type
drivers/usb/gadget/acm_ms.c: In function ‘__check_cdrom’:
drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type
drivers/usb/gadget/acm_ms.c: In function ‘__check_nofua’:
drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type
drivers/usb/gadget/acm_ms.c: In function ‘__check_stall’:
drivers/usb/gadget/acm_ms.c:119: warning: return from incompatible pointer type
  CC [M]  drivers/usb/gadget/mass_storage.o
drivers/usb/gadget/mass_storage.c: In function ‘__check_ro’:
drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type
drivers/usb/gadget/mass_storage.c: In function ‘__check_removable’:
drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type
drivers/usb/gadget/mass_storage.c: In function ‘__check_cdrom’:
drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type
drivers/usb/gadget/mass_storage.c: In function ‘__check_nofua’:
drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type
drivers/usb/gadget/mass_storage.c: In function ‘__check_stall’:
drivers/usb/gadget/mass_storage.c:94: warning: return from incompatible pointer type

Declare the fsg_module_parameters fields as "bool" so that they can match the types
passed in FSG_MODULE_PARAM_ARRAY macro.

Since commit 493c90ef (module_param: check that bool parameters really are bool.),
moduleparam.h was changed in a way that the "bool" parameter type now really
requires "bool" type and no longer allows "unsigned int".

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Acked-by: Michal Nazarewicz &lt;mina86@mina86.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: gadget: check for streams only for SS udcs</title>
<updated>2012-01-24T13:43:12+00:00</updated>
<author>
<name>Sebastian Andrzej Siewior</name>
<email>bigeasy@linutronix.de</email>
</author>
<published>2012-01-11T20:42:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=c74c930082fd407e3b9e503d855d78777a8e5a84'/>
<id>c74c930082fd407e3b9e503d855d78777a8e5a84</id>
<content type='text'>
Currently the UASP gadget fails to bind on an UDC which does not provide
stream support. This is true for all udc in tree except for dummy and
dwc3 since they don't support SuperSpeed.
There is no need to test for the availability of stream support on those
UDCs because we will never even try to use them. I think it is sane to
assume that StreamSupport is always available on SuperSpeed since it is
one of the key features.
The host side will only allocate on SS so this part is also fine.

Signed-off-by: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently the UASP gadget fails to bind on an UDC which does not provide
stream support. This is true for all udc in tree except for dummy and
dwc3 since they don't support SuperSpeed.
There is no need to test for the availability of stream support on those
UDCs because we will never even try to use them. I think it is sane to
assume that StreamSupport is always available on SuperSpeed since it is
one of the key features.
The host side will only allocate on SS so this part is also fine.

Signed-off-by: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: gadget: fsl_udc: fix the usage of udc-&gt;max_ep</title>
<updated>2012-01-24T13:43:10+00:00</updated>
<author>
<name>Peter Chen</name>
<email>peter.chen@freescale.com</email>
</author>
<published>2012-01-11T05:39:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=118d63f7f84cd400ba537f5d318c035c95c6776d'/>
<id>118d63f7f84cd400ba537f5d318c035c95c6776d</id>
<content type='text'>
The max_ep is the number of endpoint * 2.

But in dtd_complete_irq, it does again * 2, it will deference wrong memory
after scanning max_ep - 1.

The another similar problem is at USB_REQ_SET_FEATURE (the pipe number
should be 0 and max_ep - 1).

Signed-off-by: Peter Chen &lt;peter.chen@freescale.com&gt;
Signed-off-by: Matthieu castet &lt;matthieu.castet@parrot.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>
The max_ep is the number of endpoint * 2.

But in dtd_complete_irq, it does again * 2, it will deference wrong memory
after scanning max_ep - 1.

The another similar problem is at USB_REQ_SET_FEATURE (the pipe number
should be 0 and max_ep - 1).

Signed-off-by: Peter Chen &lt;peter.chen@freescale.com&gt;
Signed-off-by: Matthieu castet &lt;matthieu.castet@parrot.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb: gadget: SS Isoc endpoints use comp_desc-&gt;bMaxBurst too</title>
<updated>2012-01-24T13:42:57+00:00</updated>
<author>
<name>Paul Zimmerman</name>
<email>Paul.Zimmerman@synopsys.com</email>
</author>
<published>2012-01-16T21:24:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=9e878a6bfa9e1cf70cf77caeca60a0465d77954b'/>
<id>9e878a6bfa9e1cf70cf77caeca60a0465d77954b</id>
<content type='text'>
SuperSpeed Isoc endpoints also use the bMaxBurst value from the
companion descriptor. See section 9.6.7 in the USB 3.0 spec.

Signed-off-by: Paul Zimmerman &lt;paulz@synopsys.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>
SuperSpeed Isoc endpoints also use the bMaxBurst value from the
companion descriptor. See section 9.6.7 in the USB 3.0 spec.

Signed-off-by: Paul Zimmerman &lt;paulz@synopsys.com&gt;
Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
