]> git.baikalelectronics.ru Git - kernel.git/commit
media: go7007: Fix URB type for interrupt handling
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Feb 2020 15:45:27 +0000 (16:45 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 2 Mar 2020 14:21:00 +0000 (15:21 +0100)
commite72916024df20c43a84350874764c145114db280
treec09d6a96c7c60632ab51f8e4ff4cb0785c26154e
parentaccd2230214098c6a7e48526ca0fc701cf1485b7
media: go7007: Fix URB type for interrupt handling

Josef reported that his old-and-good Plextor ConvertX M402U video
converter spews lots of WARNINGs on the recent kernels, and it turned
out that the device uses a bulk endpoint for interrupt handling just
like 2250 board.

For fixing it, generalize the check with the proper verification of
the endpoint instead of hard-coded board type check.

Fixes: 42c0d65c060e ("[media] go7007: Fix 2250 urb type")
Reported-and-tested-by: Josef Möllers <josef.moellers@suse.com>
BugLink: https://bugzilla.suse.com/show_bug.cgi?id=1162583
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=206427
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/go7007/go7007-usb.c