]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Input: usbtouchscreen - fix control-request directions
authorJohan Hovold <johan@kernel.org>
Mon, 24 May 2021 17:02:59 +0000 (10:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 25 May 2021 03:56:11 +0000 (20:56 -0700)
commit41e81022a04a0294c55cfa7e366bc14b9634c66e
treec756a1ca0bd37c6f82087cac21c46c3b583bc290
parent05665cef4b745cb46b1d1b8e96deaa25464092d3
Input: usbtouchscreen - fix control-request directions

The direction of the pipe argument must match the request-type direction
bit or control requests may fail depending on the host-controller-driver
implementation.

Fix the four control requests which erroneously used usb_rcvctrlpipe().

Fixes: 1d3e20236d7a ("[PATCH] USB: usbtouchscreen: unified USB touchscreen driver")
Fixes: 24ced062a296 ("usbtouchscreen: add support for DMC TSC-10/25 devices")
Fixes: 9e3b25837a20 ("Input: usbtouchscreen - add support for e2i touchscreen controller")
Signed-off-by: Johan Hovold <johan@kernel.org>
Cc: stable@vger.kernel.org # 2.6.17
Link: https://lore.kernel.org/r/20210524092048.4443-1-johan@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/usbtouchscreen.c