Re: [RFC PATCH v2 0/7] virtio-usb: add dual-role virtio USB driver
From: Greg Kroah-Hartman
Date: Tue Dec 01 2026 - 15:09:46 EST
On Tue, Dec 01, 2026 at 06:35:29PM +0100, Igor Skalkin wrote:
> This series adds a driver for the virtio USB device: a dual-role
> paravirtualized USB controller. Each port of the device is either a
> USB host controller port, backed by a per-port HS+SS usb_hcd pair, or
> a USB device controller (UDC). Dual-role ports can switch between the
> two roles at runtime, and the switch is exposed through the USB role
> switch class. This is a device-driven role switch, not USB OTG:
> there is no HNP/SRP, ID pin or OTG descriptor involved.
>
> The device is described in the virtio-usb specification proposal,
> currently at RFC v3 on virtio-comment:
>
> https://lore.kernel.org/virtio-comment/20260611130826.287372-1-vasilii.ianikeev@xxxxxxxxxxxxxxxx/T/
>
> This series is an RFC because the specification is still under
> review. The protocol header in patch 2 follows spec RFC v3.
>
> The driver was tested against two device backends: a proprietary one
> and one based on QEMU. The QEMU backend is currently under review and
> will be sent upstream soon.
>
> Series layout:
>
> - 1/7 syncs the device ID (49) from the virtio specification into
> virtio_ids.h. The driver does not build without it.
> - 2/7 adds the protocol header and the driver skeleton.
> - 3/7 and 4/7 add the host and the device role.
> - 5/7 adds the per-port role query, which is needed when the device
> offers both roles.
> - 6/7 adds runtime host/device role switching.
> - 7/7 lets the device supply a name prefix for a port's UDC.
>
> Changes since v1:
>
> - Marked as RFC, since the specification is still under review.
> - Rebased onto v7.4-rc5. The virtio_ids.h patch is now part of the
> series (1/7).
> - Series restructured: v1 6/8 ("rework endpoint lifecycle to an
> async split-phase state machine") and v1 7/8 ("add SuperSpeed
> device-role support") are folded into the device role patch
> (4/7). The OTG patches are renamed to "per-port role query" (5/7)
> and "host/device role switch" (6/7).
> - checkpatch, sparse and kernel-doc cleanups throughout.
You forgot the big DO NOT DO THIS AT ALL! review comment from me
previously?
{sigh}