diff options
author | Robert Baldyga <[email protected]> | 2014-02-10 10:42:43 +0100 |
---|---|---|
committer | Felipe Balbi <[email protected]> | 2014-02-18 10:53:01 -0600 |
commit | 23de91e970a410a30b5927b9a749ed1dfd914140 (patch) | |
tree | ee67f15420838b54584eddafde60e8dbc797ab98 /tools/perf/scripts/python | |
parent | 0a7b1f8a70a59fd8215a937f77da20e003b9fc49 (diff) |
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 <[email protected]>
Acked-by: Michal Nazarewicz <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions