]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: s3c-hsotg: fix can_write limit for non-periodic endpoints
authorRobert Baldyga <r.baldyga@samsung.com>
Tue, 24 Sep 2013 09:24:28 +0000 (11:24 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 1 Oct 2013 14:24:14 +0000 (09:24 -0500)
commit023e2133dc09f942fafa51b67ab64b7dafb2a075
tree7952edab37dd2c06e5030bb41918f8a548bee478
parent2fc39242727bcab7beccd652390fce56d7e79e39
usb: gadget: s3c-hsotg: fix can_write limit for non-periodic endpoints

Value of can_write variable in s3c_hsotg_write_fifo function should be limited
to 512 only for non-periodic endpoints. There was some discrepancy between
comment and code, because comment suggests correct behavior, but in the code
limit was applied to periodic endpoints too. So there is additional check
causing the limitation concerns only non-periodic endpoints.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/s3c-hsotg.c