From: Robert Baldyga Date: Fri, 6 Dec 2013 12:03:45 +0000 (+0100) Subject: usb: gadget: s3c-hsotg: add flush TX FIFO when kill all requests X-Git-Tag: v3.14-rc1~148^2~90^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b963a81a4803fb387d6551ea0fb66876e0c8ff12;p=pandora-kernel.git usb: gadget: s3c-hsotg: add flush TX FIFO when kill all requests This patch adds flushing TX FIFO in kill_all_requests() function in dedicated-fifo mode. It's because when requests are killed (when endpoint is disabled or in case of device reset/disconnection) in FIFO can stay some unsent data. In the worst case FIFO can stay full, and then if endpoint will be back enabled, sending new data will be impossible. Signed-off-by: Robert Baldyga Signed-off-by: Kyungmin Park Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed