media: dtv5100: fix control-request directions
authorJohan Hovold <johan@kernel.org>
Fri, 21 May 2021 13:28:38 +0000 (15:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 07:45:02 +0000 (09:45 +0200)
commitdbd58d39784451abab29ee624f0f6055e42d8766
treeb4cdd31aee3acc827f4c6e39a1e2713181acb612
parentdb317a37229b2dd338c4b9348310ca47e462ca67
media: dtv5100: fix control-request directions

commit 8c8b9a9be2afa8bd6a72ad1130532baab9fab89d upstream.

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 control requests which erroneously used usb_rcvctrlpipe().

Fixes: 8466028be792 ("V4L/DVB (8734): Initial support for AME DTV-5100 USB2.0 DVB-T")
Cc: stable@vger.kernel.org # 2.6.28
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/dvb-usb/dtv5100.c