summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2019-12-04 03:37:13 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-17 19:46:55 +0100
commitb62df58cd6afa9fe2d19987e66b11b43b1763935 (patch)
treeac349ded9656da82979d2a3f6e1a31f8bc5d1442 /include/linux
parentd2178fc8fda3e045dab9f916c045b408bbd0d006 (diff)
HID: hidraw: Fix returning EPOLLOUT from hidraw_poll
[ Upstream commit 9f3b61dc1dd7b81e99e7ed23776bb64a35f39e1a ] When polling a connected /dev/hidrawX device, it is useful to get the EPOLLOUT when writing is possible. Since writing is possible as soon as the device is connected, always return it. Right now EPOLLOUT is only returned when there are also input reports are available. This works if devices start sending reports when connected, but some HID devices might need an output report first before sending any input reports. This change will allow using EPOLLOUT here as well. Fixes: 378b80370aa1 ("hidraw: Return EPOLLOUT from hidraw_poll") Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Cc: stable@vger.kernel.org Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions