| From 6ca8af3c8fb584f3424a827f554ff74f898c27cd Mon Sep 17 00:00:00 2001 |
| From: Mael GUERIN <mael.guerin@murena.io> |
| Date: Wed, 6 Aug 2025 18:44:03 +0200 |
| Subject: USB: storage: Add unusual-devs entry for Novatek NTK96550-based camera |
| |
| From: Mael GUERIN <mael.guerin@murena.io> |
| |
| commit 6ca8af3c8fb584f3424a827f554ff74f898c27cd upstream. |
| |
| Add the US_FL_BULK_IGNORE_TAG quirk for Novatek NTK96550-based camera |
| to fix USB resets after sending SCSI vendor commands due to CBW and |
| CSW tags difference, leading to undesired slowness while communicating |
| with the device. |
| |
| Please find below the copy of /sys/kernel/debug/usb/devices with my |
| device plugged in (listed as TechSys USB mass storage here, the |
| underlying chipset being the Novatek NTK96550-based camera): |
| |
| T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0 |
| D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 |
| P: Vendor=0603 ProdID=8611 Rev= 0.01 |
| S: Manufacturer=TechSys |
| S: Product=USB Mass Storage |
| S: SerialNumber=966110000000100 |
| C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA |
| I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage |
| E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms |
| E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms |
| |
| Signed-off-by: Mael GUERIN <mael.guerin@murena.io> |
| Cc: stable <stable@kernel.org> |
| Acked-by: Alan Stern <stern@rowland.harvard.edu> |
| Link: https://lore.kernel.org/r/20250806164406.43450-1-mael.guerin@murena.io |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| --- |
| drivers/usb/storage/unusual_devs.h | 7 +++++++ |
| 1 file changed, 7 insertions(+) |
| |
| --- a/drivers/usb/storage/unusual_devs.h |
| +++ b/drivers/usb/storage/unusual_devs.h |
| @@ -934,6 +934,13 @@ UNUSUAL_DEV( 0x05e3, 0x0723, 0x9451, 0x |
| USB_SC_DEVICE, USB_PR_DEVICE, NULL, |
| US_FL_SANE_SENSE ), |
| |
| +/* Added by Maƫl GUERIN <mael.guerin@murena.io> */ |
| +UNUSUAL_DEV( 0x0603, 0x8611, 0x0000, 0xffff, |
| + "Novatek", |
| + "NTK96550-based camera", |
| + USB_SC_SCSI, USB_PR_BULK, NULL, |
| + US_FL_BULK_IGNORE_TAG ), |
| + |
| /* |
| * Reported by Hanno Boeck <hanno@gmx.de> |
| * Taken from the Lycoris Kernel |