From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796155777; b=Kk4hIcgIFRrx1TyhVqRcXg7kNpMFYlV9rDdfo6m4Ty0Qny23vhkCoa3F3HnBD74yEaIJ Q/Q6b7CDAEPyUwV0GiMa3Y7D1AyQLnsNb/T/V0yCyaEekx2HPVdqqsBoYPAkBCggSskxX 5BvayXRKpxc0zHhy+NynpxGOkJHVb8ocWyk54uAogr6Io7hbG+iKD+0t5tFHA4MVcY9aM B3zYgRg8JJdaiPxbRZaiIel/bRYgRncLRXwhk0h9luND2PNYeweR0tIDKZMeNpCKXsqAS fAA4hucQESU0vbPQg7Yca7pCozh3SnQuGueKccQFyCXKC1nafHnf5gz8W+LXZ1e89zw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796155777; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=JK5Kkc87MrHuq9UjTuKULqgYoKlvliIDadAvQIkHusI=; b=PrOhNyycF96/BkgEitUvcwp917FOIdgQmlnK/3/tMeX51oX/60H0TTUI8Gi5Wq2e0Oqs TPVxLeRxKF305hLWliBTNvLa7vVtosSP7n0cE7fS/7PKLO6A1NpzF022KMXepZdML/9iz NWwvJAgt7dWkZ/ZaGrxM8COoAQhKUuKzgWyPFys0c+oij0N32xj90tiiGHdFqBzSObm8k WxB/4DhFxKBh/yxPUfllYFIyt0NoNxldBh3yDY552XKZX/r1v+NI55m9KuSnFS/QAfvIn jWZOMN/6Qi7GdguILEej0CNtVdFEpVsquQuA+iRXVEIGHKhZU0BUX9ew8CkDxcXkjIA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="OVAvko/z"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADF30606A31A; Tue, 1 Dec 2026 20:09:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=OVAvko/z Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE0261F00893; Tue, 1 Dec 2026 20:09:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796155777; bh=JK5Kkc87MrHuq9UjTuKULqgYoKlvliIDadAvQIkHusI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=OVAvko/zkkWmcLSQIiSkbeRheO9VXovpacsgYDB7GWjMpP93g9400Vw6d7NgStqKq evAYty4pqq5+RVYEWkEDNqGt+LjZZtwZTP+agGGyn+dHxKlAu5KLa5W3gTIOHOKZTt 1OWyPqo8UVEzp/KwoZ9MRZT1J8m9U1QfyRsgIsgs= Date: Tue, 1 Dec 2026 21:09:32 +0100 From: Greg Kroah-Hartman To: Igor Skalkin Cc: "Michael S . Tsirkin" , Jason Wang , virtualization@lists.linux.dev, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Eugenio Perez , Xuan Zhuo , Vasilii Ianikeev , Aiswarya Cyriac , Anton Yakovlev , Trilok Soni , Matias Ezequiel Vara Larsen Subject: Re: [RFC PATCH v2 0/7] virtio-usb: add dual-role virtio USB driver Message-ID: <2026120111-ultra-panning-148c@gregkh> References: <20260924160907.145405-1-igor.skalkin@oss.qualcomm.com> X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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@oss.qualcomm.com/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}