From nobody Tue Feb 3 17:27:46 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4f59RR5Clmz6QSZF for ; Tue, 03 Feb 2026 17:27:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f59RR1pFVz3J2n for ; Tue, 03 Feb 2026 17:27:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770139667; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hwIsq4mB/SsPGeyU1mT8lACmZIL1A92xTlgZqu9Bwms=; b=Go+v0W9ni2oxQ/MnL2BL8R0L7YHNqPkHZopo6fMfXNznLLde3sFAmr4Bsk8asBhSo5IFxj utbPBZcnC82kKwGvJiKM/ENFloT9FWGMpsFnQzJq/ykYGoHnbS7f1jsnjrI1aI6j74q3uR Xbxfe8YEcyODEbByC2Kz5W98LF0QuWZinyrT8at/oT8OBcZ4uSiJiI7LOvWjAWBrgXf5Gv sOTlKUq9j45XIFlC2lD8rSDhuv6TmxIXSv3C8W+s7bUCvGiqOLqFgo5bcfRaMA0TkXZPNP UAtCTeCvonLDPZmNveS0JNTI/lBtR7/vDvEtV6T5o1KK/fXunKWA64Kdt+EJzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770139667; a=rsa-sha256; cv=none; b=UnFWQaoiDLMkoMFBIsj52sbhD9fMaJmlI2DyiPyBNMHqyg4O4XiDiw4rGjaBaMnzKlNhPm PuxFxwYJJE6KMtDp+mLO+SfxnuJk1CwfSI/0LkOVnvQKcxzb+SANumV9zJfy1pPXvMyfzN f2om8hbQ1YHELuqqlrTtcuU1pMxzUqv78RG35VFTokIKMGviuSGGl/TgY0vQgRuX8sMsC7 MVVlC2wm+yQbco+qyjLRocmCdfPPjlji1lQhzyP81epJgSzwNTqrUQTqFHGsM/FmJ6tZCB SAy+Fijo62eveXy7kADgGbi9q7tYPYpq31B5WwmnVsSNBhkuNU7Ke4BI3zLGmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770139667; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hwIsq4mB/SsPGeyU1mT8lACmZIL1A92xTlgZqu9Bwms=; b=oFtgxSMTBQDjhF2FAzcWkGSTrWPd1blr8RWlMXGQg4J6K+lA/or1pQsT4R5RhUXDy60NSR j5clLGlpfYtOhmcVvQBL4MMGLOmYpT1LiNyD32klKa+7aPpdox9Ipbf8zjQlVgseNXfz4B q2CqiJcr/XvZ23vE3uKFh/Dl6JDOK5ofu88Rt3Gl6rjcBF/uwPtG2S7HKhRqbHkxZqoNji 4cqGhfaVYtk0X7lbQITAyq/rRqmo4X/GKIHkI8AHusetrWnbH2EoemmzonP1T1N2wBBTQe MdCV3HqQP3RBDKMVn55hLMJJd4TDHq0FpQM4gSi6LtbL0/9nDhQ+S08VCffAhg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4f59RQ6mhyz6S9 for ; Tue, 03 Feb 2026 17:27:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1f914 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 03 Feb 2026 17:27:46 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 2f3f5055e7f6 - main - virtio_p9fs: Use VIRTIO_SIMPLE_PNPINFO List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2f3f5055e7f69567f7aaca2f5b77655df34c4bb0 Auto-Submitted: auto-generated Date: Tue, 03 Feb 2026 17:27:46 +0000 Message-Id: <69823012.1f914.64cc37d0@gitrepo.freebsd.org> The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=2f3f5055e7f69567f7aaca2f5b77655df34c4bb0 commit 2f3f5055e7f69567f7aaca2f5b77655df34c4bb0 Author: Andrew Turner AuthorDate: 2026-02-03 17:13:35 +0000 Commit: Andrew Turner CommitDate: 2026-02-03 17:13:35 +0000 virtio_p9fs: Use VIRTIO_SIMPLE_PNPINFO This allows us to also use the common VIRTIO_SIMPLE_PROBE and to have devmatch load the driver when detected. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D54684 --- sys/dev/virtio/p9fs/virtio_p9fs.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sys/dev/virtio/p9fs/virtio_p9fs.c b/sys/dev/virtio/p9fs/virtio_p9fs.c index aa84d3970698..2b276a60aa9a 100644 --- a/sys/dev/virtio/p9fs/virtio_p9fs.c +++ b/sys/dev/virtio/p9fs/virtio_p9fs.c @@ -84,6 +84,8 @@ static struct virtio_feature_desc virtio_9p_feature_desc[] = { { 0, NULL } }; +VIRTIO_SIMPLE_PNPINFO(virtio_p9fs, VIRTIO_ID_9P, "VirtIO 9P Transport"); + /* We don't currently allow canceling of virtio requests */ static int vt9p_cancel(void *handle, struct p9_req_t *req) @@ -257,13 +259,7 @@ vt9p_alloc_virtqueue(struct vt9p_softc *sc) static int vt9p_probe(device_t dev) { - - /* If the virtio device type is a 9P device, then we claim and attach it */ - if (virtio_get_device_type(dev) != VIRTIO_ID_9P) - return (ENXIO); - device_set_desc(dev, "VirtIO 9P Transport"); - - return (BUS_PROBE_DEFAULT); + return (VIRTIO_SIMPLE_PROBE(dev, virtio_p9fs)); } static void