From: Robert Baldyga Date: Tue, 24 Sep 2013 09:24:28 +0000 (+0200) Subject: usb: gadget: s3c-hsotg: fix can_write limit for non-periodic endpoints X-Git-Tag: v3.12-rc4~6^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b377216bd2d313b393ddd4b04c71f700842d104b;p=pandora-kernel.git 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 Signed-off-by: Kyungmin Park Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed