diff --git a/debian/changelog b/debian/changelog index 5bcc84a5b464b..1c0a27e8b8b5f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +linux-wb (6.8.0-wb162) stable; urgency=medium + + * usb: gadget: composite: report bcdUSB 0x0210 when WebUSB is enabled, + so that Chromium reads the WebUSB landing page and shows the + plug-in notification for the Debug Network gadget + + -- Evgeny Boger Mon, 31 Aug 2026 17:04:48 +0300 + linux-wb (6.8.0-wb161) stable; urgency=medium * pinctrl-sunxi: fix output latch corruption on GPIO writes: a write to diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 0ace45b66a31c..7f7579d11843d 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -1838,7 +1838,13 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) cdev->desc.bcdUSB = cpu_to_le16(0x0210); } } else { - if (gadget->lpm_capable || cdev->use_webusb) + /* + * WebUSB requires bcdUSB >= 2.10; Chromium does not + * read the landing page from a device below that. + */ + if (cdev->use_webusb) + cdev->desc.bcdUSB = cpu_to_le16(0x0210); + else if (gadget->lpm_capable) cdev->desc.bcdUSB = cpu_to_le16(0x0201); else cdev->desc.bcdUSB = cpu_to_le16(0x0200);