media: dtv5100: fix control-request directions
authorJohan Hovold <johan@kernel.org>
Fri, 21 May 2021 13:28:38 +0000 (15:28 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 12:09:51 +0000 (14:09 +0200)
commit8c8b9a9be2afa8bd6a72ad1130532baab9fab89d
tree2e6cf931de60dde07949c019bdb17695e3b3357a
parentce67eaca95f8ab5c6aae41a10adfe9a6e8efa58c
media: dtv5100: 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 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>
drivers/media/usb/dvb-usb/dtv5100.c