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, 15 Oct 2013 13:46:51 +0000 (08:46 -0500)
commit811f33033f9e6a00756e38990d82214c8c619f4c
treebd465ebc0139ea49d5af7d51a44a87a0bd8094bb
parent8acc8296f94349e7a933dd97e8f5d0ec16d4b4db
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, becouse 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