From: Robert Baldyga Date: Fri, 23 Jan 2015 12:41:01 +0000 (+0100) Subject: usb: gadget: ffs: add eventfd notification about ffs events X-Git-Tag: fixes-v4.0-rc1~102^2^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e33f6fdf735cda1d4580fe6f1878da05718fe73;p=pandora-kernel.git usb: gadget: ffs: add eventfd notification about ffs events Add eventfd which notifies userspace about ep0 events and AIO completion events. It simplifies using of FunctionFS with event loop, because now we need to poll on single file (instead of polling on ep0 and eventfd's supplied to AIO layer). FunctionFS eventfd is not triggered if another eventfd is supplied to AIO layer (in AIO request). It can be useful, for example, when we want to handle AIO transations for chosen endpoint in separate thread. Signed-off-by: Robert Baldyga Acked-by: Michal Nazarewicz Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed