Skip to contentSkip to conversation

media: uvcvideo: Fix InterfaceProtocol for Quanta camera

PATCH Superseded Ricardo Ribalda 2 participants 5 messages Aug 8, 2022 – Aug 22, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: uvcvideo: Fix InterfaceProtocol for Quanta camera

The device is using a different InterfaceProtocol than the one set in the original quirk.

Fixes 95f03d973478 ("media: uvcvideo: Limit power line control for Quanta cameras")

---

This was fixed on the last version of the patchset. Unfortunately I did checked that it was the version merged :(.

It is too late to land it in this version?

 drivers/media/usb/uvc/uvc_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/uvc/uvc_driver.c +1 -1
index 9c05776f11d1..6556158a8888 100644
@@ -2740,7 +2740,7 @@ static const struct usb_device_id uvc_ids[] = {
 	  .idProduct		= 0x4034,
 	  .bInterfaceClass	= USB_CLASS_VIDEO,
 	  .bInterfaceSubClass	= 1,
-	  .bInterfaceProtocol	= 0,
+	  .bInterfaceProtocol	= 1,
 	  .driver_info		= (kernel_ulong_t)&uvc_ctrl_power_line_limited },
 	/* LogiLink Wireless Webcam */
 	{ .match_flags		= USB_DEVICE_ID_MATCH_DEVICE
Signature · 1 line
2.37.1.559.g78731f0fdb-goog
#1 lore raw

Hi

Friendly ping on text-mode with the correct account ;)

Regards!

Quoted 33 lines · Ricardo Ribalda

The device is using a different InterfaceProtocol than the one set in the original quirk.

Fixes 95f03d973478 ("media: uvcvideo: Limit power line control for Quanta cameras")

---

This was fixed on the last version of the patchset. Unfortunately I did checked that it was the version merged :(.

It is too late to land it in this version?

 drivers/media/usb/uvc/uvc_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/uvc/uvc_driver.c +1 -2
index 9c05776f11d1..6556158a8888 100644
@@ -2740,7 +2740,7 @@ static const struct usb_device_id uvc_ids[] = {
          .idProduct            = 0x4034,
          .bInterfaceClass      = USB_CLASS_VIDEO,
          .bInterfaceSubClass   = 1,
-         .bInterfaceProtocol   = 0,
+         .bInterfaceProtocol   = 1,
          .driver_info          = (kernel_ulong_t)&uvc_ctrl_power_line_limited },
        /* LogiLink Wireless Webcam */
        { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE
--

2.37.1.559.g78731f0fdb-goog

Signature · 1 line
Ricardo Ribalda
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Ricardo Ribalda

Hi Ricardo,

Thank you for the patch.

Quoted 9 lines · Ricardo Ribalda

The device is using a different InterfaceProtocol than the one set in the original quirk.

Fixes 95f03d973478 ("media: uvcvideo: Limit power line control for Quanta cameras")

---

This was fixed on the last version of the patchset. Unfortunately I did checked that it was the version merged :(.

Oops :-(

Quoted 1 line

It is too late to land it in this version?

I think it can be considered as a v6.0 fix, yes.

drivers/media/usb/uvc/uvc_driver.c static const struct usb_device_id uvc_ids[] = { · line 2743

Quoted 13 lines
 drivers/media/usb/uvc/uvc_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/uvc/uvc_driver.c +1 -1
index 9c05776f11d1..6556158a8888 100644
@@ -2740,7 +2740,7 @@ static const struct usb_device_id uvc_ids[] = {
 	  .idProduct		= 0x4034,
 	  .bInterfaceClass	= USB_CLASS_VIDEO,
 	  .bInterfaceSubClass	= 1,
-	  .bInterfaceProtocol	= 0,
+	  .bInterfaceProtocol	= 1,

Should we use UVC_PC_PROTOCOL_15 here ?

Quoted 3 lines
drivers/media/usb/uvc/uvc_driver.c +0 -0
 	  .driver_info		= (kernel_ulong_t)&uvc_ctrl_power_line_limited },
 	/* LogiLink Wireless Webcam */
 	{ .match_flags		= USB_DEVICE_ID_MATCH_DEVICE
Signature · 3 lines
Regards,

Laurent Pinchart
maintainer
#3 lore raw
Quoted 7 lines · Laurent Pinchart

Hi Ricardo,

Thank you for the patch.

Quoted 2 lines · Ricardo Ribalda

The device is using a different InterfaceProtocol than the one set in the original quirk.

Also, I would mention that the device implements UVC 1.5:

The Quanta 0408:4034 camera implements UVC 1.5, and thus sets bInterfaceProtocol to UVC_PC_PROTOCOL_15. Commit 95f03d973478 ("media:
uvcvideo: Limit power line control for Quanta cameras") added a quirk for the device that incorrectly specified the UVC 1.0 protocol, rendering the quirk inoperative. Fix it.

As this is a v6.0 fix, would you mind submitting a v2 with these changes ? Mauro could then pick it up directly.

Quoted 34 lines
Quoted 6 lines
Fixes 95f03d973478 ("media: uvcvideo: Limit power line control for Quanta cameras")

---

This was fixed on the last version of the patchset. Unfortunately I did checked that it was the version merged :(.

Oops :-(

Quoted 1 line

It is too late to land it in this version?

I think it can be considered as a v6.0 fix, yes.

drivers/media/usb/uvc/uvc_driver.c static const struct usb_device_id uvc_ids[] = { · line 2743

Quoted 13 lines
 drivers/media/usb/uvc/uvc_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/uvc/uvc_driver.c +1 -1
index 9c05776f11d1..6556158a8888 100644
@@ -2740,7 +2740,7 @@ static const struct usb_device_id uvc_ids[] = {
 	  .idProduct		= 0x4034,
 	  .bInterfaceClass	= USB_CLASS_VIDEO,
 	  .bInterfaceSubClass	= 1,
-	  .bInterfaceProtocol	= 0,
+	  .bInterfaceProtocol	= 1,

Should we use UVC_PC_PROTOCOL_15 here ?

Quoted 3 lines
drivers/media/usb/uvc/uvc_driver.c +0 -0
 	  .driver_info		= (kernel_ulong_t)&uvc_ctrl_power_line_limited },
 	/* LogiLink Wireless Webcam */
 	{ .match_flags		= USB_DEVICE_ID_MATCH_DEVICE
Signature · 3 lines
Regards,

Laurent Pinchart