]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: epautoconf: do not change number of streams
authorFelipe Balbi <balbi@ti.com>
Mon, 19 Dec 2011 11:45:01 +0000 (13:45 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 19 Dec 2011 11:45:01 +0000 (13:45 +0200)
commit35c8f0c654c9cd444850ebdfe0cbb73ea73fa6ca
treefb08da5707bb6498a42eef28e10200fd79356e68
parent995c22c9fe6651b99811ad83426148181ac36561
usb: gadget: epautoconf: do not change number of streams

We should not change gadget driver's descriptors just
because we think it's right to do so.

There are several of reasons which would support this
statement but it suffices to say that this was probably
never tested because it updates bmAttributes without
asking the driver if it's ok to do so.

This means that e.g. on UASP gadget it would enable
stream support even for the command endpoint which must
not have stream support enabled.

In fact, this change is fixing the bug introduced by
commit 8ca3d1c (usb: gadget: add streams support to
the gadget framework) which was caught when testing
UASP gadget with dwc3 driver.

Cc: Tatyana Brokhman <tlinder@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/epautoconf.c