]> git.baikalelectronics.ru Git - 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)
commit14ad3e65dc022e7e5b89dde34619331913ffad29
treec756a1ca0bd37c6f82087cac21c46c3b583bc290
parent3866a09ec4b857a7baa73b41cbc70e1c0061fa3f
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: a7adc72748c4 ("[PATCH] USB: usbtouchscreen: unified USB touchscreen driver")
Fixes: 35d3f75fbc75 ("usbtouchscreen: add support for DMC TSC-10/25 devices")
Fixes: b80d68ca07b6 ("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