Skip to content

usbcore: Add quirk for 255-byte initial config read

Nikhil Solanke linux-doc linux-usb lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usbcore: Add quirk for 255-bytes initial config readDocumentation/admin-guide/kernel-parameters.txt drivers/usb/core/config.c drivers/usb/core/quirks.c +1 more+49 -75 replies
2/2USB: hub: Split announce_device() to log device identity before enumerationdrivers/usb/core/hub.c+12 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] usbcore: Add quirk for 255-byte initial config read

This series adds a quirk for USB devices that fail enumeration when the initial GET_DESCRIPTOR(CONFIGURATION) request uses wLength=9.

Patch 1 adds USB_QUIRK_WINDOWS_CONFIG_REQ_SIZE which causes usb_get_configuration() to use wLength=255 for the initial config descriptor request, mirroring long-standing Windows behavior.

Patch 2 splits announce_device() to log device identity before enumeration, improving failure diagnosis.

Nikhil Solanke (2):
usbcore: Add quirk for 255-bytes initial config read
USB: hub: Split announce_device() to log device identity before
enumeration

 .../admin-guide/kernel-parameters.txt         | 10 +++++
 drivers/usb/core/config.c                     | 39 +++++++++++++++----
 drivers/usb/core/hub.c                        | 16 ++++++--
 drivers/usb/core/quirks.c                     |  4 ++
 include/linux/usb/quirks.h                    |  3 ++
 5 files changed, 61 insertions(+), 11 deletions(-)
Signature · 1 line
2.55.0