From nobody Mon Jul 7 23:18:20 2025 X-Original-To: dev-commits-src-main@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 4bbgCL4YThz61VVW; Mon, 07 Jul 2025 23:18:22 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bbgCK4Rt5z41VN; Mon, 07 Jul 2025 23:18:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1751930301; 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=5snfnYVx8mMTgIHe2Uw1NvSDf5rBhoCF9gpTDqcplaw=; b=WxrzRblZOEdxJvJeDsVv5SNVhWfgfHr3d+CKXYcMrmT5cAwy7fgOkJ5GxPQKvbwSxf9C5R sluov9LXcKb0nXFTo7NmRdpk+QmsQfLbGyq2vh1Etviz/ghe3Xy5poZkmXgnSXsAhM8hmN tw9u67TP1GFt1YGGSrIvzUaOeE4x3tlod9jXG8eywU9u7H5sPrO0SbFtlZ8Qrm6xQzmOpd PN48L0vBI4LSiRpTY6x6XZURBUA2EwcCsR3IwFN2OqT+qfN45mFYsQgzAto1qddKXP2FvP Dh7rbjdqmGiwkLQdXTJEgOFu+GV5KJaPHrdELBJgCdn2+8F6GoF8ui+lIO+rQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1751930301; 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=5snfnYVx8mMTgIHe2Uw1NvSDf5rBhoCF9gpTDqcplaw=; b=gCGUDsZil6UT9kVRoJfaxGOM6yTvHpVb1/lmOx9BXAyB8gIvOBzMelo0IbDlPlt0YiKfHz HYY3RhozRlJVOOkBYgO2lCWFlozFZMzIONaErjaLUiEsnZVtLMN603Xb+ZtFvGrwR6EJ8K bI7VktSAzfT8UUdgKmoYyvqsP0Xxd7BYC3y33Ft9+K+1IIq6W/dk3aNr2p71GAvbKY0G3E Mk/rAtAjY098rV66spAaU2H3ttp5tWRj447uYRHsqMOYh6xL+04MTKLca+z5WuMLyxxztv h1msGQ0UwtfZ0UU50qTPnd57lapmc3A2hqQ4gaZ1S71JIJLBxmI1zWpBV3whrw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1751930301; a=rsa-sha256; cv=none; b=BScOgaJvuB0pGd4qJxP0GopT/y7k3If78u5g7b6TpyEtw5HeiwkyxfkpZjKv7SzHa9m4zF giFaQUr8xEHagIuQ9dbeqHTfPNmWu/V4q2X+5fKqqwflh6NfEVFc/Zt9Hxq0XEC3yViI2O 36VRrEvqyMHWS1K1q6iHG+r1lAB9//LL8l7DbojgHBWZcCBa6/0klH0nluhLNc6RhlR6tX d6DWh70l/ytkr4KJzH1OtCW+gdCx3xVuDh93Fey6qQ59yujJ2LqwiWpZM9SmZco7EmWU9Z pEHsRfWC7lnMOh2KN89yRAiQQE7IgoaYYMrx05POzT7S6PpxnqGr/tbEeN2ppQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bbgCJ73ZTz19pR; Mon, 07 Jul 2025 23:18:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 567NIK0W045686; Mon, 7 Jul 2025 23:18:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 567NIKW3045683; Mon, 7 Jul 2025 23:18:20 GMT (envelope-from git) Date: Mon, 7 Jul 2025 23:18:20 GMT Message-Id: <202507072318.567NIKW3045683@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: a2056e854957 - main - cam/mmc: Use xpt_path_inq instead of hand-rollded equivalent List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a2056e854957dce7f8a4c1feb7d0220be9697385 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=a2056e854957dce7f8a4c1feb7d0220be9697385 commit a2056e854957dce7f8a4c1feb7d0220be9697385 Author: Warner Losh AuthorDate: 2025-07-07 20:04:51 +0000 Commit: Warner Losh CommitDate: 2025-07-07 23:17:00 +0000 cam/mmc: Use xpt_path_inq instead of hand-rollded equivalent There's no reason to inline xpt_path_inq here. While there was a mismatch between this use (CAM_PRIORITY_NONE) and the old xpt_path_inq code (which used CAM_PRIORITY_NORMAL), xpt_path_inq has been corrected to use _NONE since this is a non-queued command. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D51168 --- sys/cam/mmc/mmc_da.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/cam/mmc/mmc_da.c b/sys/cam/mmc/mmc_da.c index 9246f95a080e..3815561898bd 100644 --- a/sys/cam/mmc/mmc_da.c +++ b/sys/cam/mmc/mmc_da.c @@ -1523,10 +1523,7 @@ sdda_add_part(struct cam_periph *periph, u_int type, const char *name, bioq_init(&part->bio_queue); - bzero(&cpi, sizeof(cpi)); - xpt_setup_ccb(&cpi.ccb_h, periph->path, CAM_PRIORITY_NONE); - cpi.ccb_h.func_code = XPT_PATH_INQ; - xpt_action((union ccb *)&cpi); + xpt_path_inq(&cpi, periph->path); /* * Register this media as a disk