]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: composite: fix ep->maxburst initialization
authorFelipe Balbi <balbi@ti.com>
Wed, 6 Jun 2012 07:20:23 +0000 (10:20 +0300)
committerFelipe Balbi <balbi@ti.com>
Tue, 12 Jun 2012 10:30:25 +0000 (13:30 +0300)
commit41e5e95464ccdda0061b50036aa8e5c4dc9dcc83
tree0d67df8e58fa303a05ad45afd9343f7e96825fd0
parente82f24f8ccb281ac882c112b677d847408dbf30d
usb: gadget: composite: fix ep->maxburst initialization

bMaxBurst field on endpoint companion descriptor
is supposed to contain the number of burst minus
1. When passing that to controller drivers, we
should be passing the real number instead (by
incrementing 1).

While doing that, also fix the assumption on
dwc3 that value comes decremented by one.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c
drivers/usb/gadget/composite.c