diff options
| author | Fabian Henneke <fabian.henneke@gmail.com> | 2019-07-09 13:03:37 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-23 08:18:34 +0100 |
| commit | ae545017ff74ffe09d52909228510da85852b789 (patch) | |
| tree | eedcd2c5772c45358886717038238456dbf051e3 /scripts | |
| parent | 05bbb560f4f40fef38df338f87a17852a308d9dc (diff) | |
hidraw: Return EPOLLOUT from hidraw_poll
[ Upstream commit 378b80370aa1fe50f9c48a3ac8af3e416e73b89f ]
Always return EPOLLOUT from hidraw_poll when a device is connected.
This is safe since writes are always possible (but will always block).
hidraw does not support non-blocking writes and instead always calls
blocking backend functions on write requests. Hence, so far, a call to
poll never returned EPOLLOUT, which confuses tools like socat.
Signed-off-by: Fabian Henneke <fabian.henneke@gmail.com>
In-reply-to: <CA+hv5qkyis03CgYTWeWX9cr0my-d2Oe+aZo+mjmWRXgjrGqyrw@mail.gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
