From: Robert Baldyga Date: Mon, 10 Feb 2014 09:42:43 +0000 (+0100) Subject: usb: gadget: f_fs: add poll for endpoint 0 X-Git-Tag: v3.15-rc1~137^2~25^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23de91e970a410a30b5927b9a749ed1dfd914140;p=pandora-kernel.git usb: gadget: f_fs: add poll for endpoint 0 This patch adds poll function for file representing ep0. Ability of read from or write to ep0 file is related with actual state of ffs: - When desctiptors or strings are not written yet, POLLOUT flag is set. - If there is any event to read, POLLIN flag is set. - If setup request was read, POLLIN and POLLOUT flag is set, to allow send response (by performing I/O operation consistent with setup request direction) or set stall (by performing I/O operation opposite setup request direction). Signed-off-by: Robert Baldyga Acked-by: Michal Nazarewicz Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed