Received: from 004.mia.mailroute.net (004.mia.mailroute.net [199.89.3.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58EB63054DE for ; Tue, 14 Oct 2025 20:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.3.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760473139; cv=none; b=Y8YJDkpbukswUSNzHO/im1X+TD1YlRR8hMd21zvq0F2g4Nc2T3KKYdh8azolFEai8eljYh67WtdlvCoy8j7im1DQr9Eigw/rGa3AeX1I2+ozUierBYfRvMQOdheqoFCfX6Ot3+GNSQvObzrncqmTncAjHjugw5bjZ1RDvKDFYjQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760473139; c=relaxed/simple; bh=jrefN08ZN0OIYZuYqoTxlBI4RRxbazcOxPJQ9ZMZw0k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hbkInQPds9I0/B6MR8KrHI9FlI6R1OIjm+HSdXxbZhVA/0A2fYRYcquynY+bzRLSwPdD13y9ziPJp5Ib6/uis8qb4YCQJdbDavO6RA1ETV7N7/tYZ+cEKT2KDUpDblxxKfSzsnVAa35VGO+K2uRsTAiPXuX0V4/BfgvK9j2f/QE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=Mz4ozOvA; arc=none smtp.client-ip=199.89.3.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="Mz4ozOvA" Received: from localhost (localhost [127.0.0.1]) by 004.mia.mailroute.net (Postfix) with ESMTP id 4cmQXd3Gvqzm0ysd; Tue, 14 Oct 2025 20:18:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received:received; s=mr01; t=1760473135; x=1763065136; bh=uduV4 IPZyq7MYGRqsIZfkMITUC3mTuU92EF9NtdMZx0=; b=Mz4ozOvAY66YOrl+cu/Bi 0YwqVtQBmxJCTQS1gXDg4o8mvtflX0e82oy3ebXEJxoV6i6856qyvTP00AcLz4Bz YePbZGCie4FKD5dnVfFvhcbTRFh+cgJFG+5LtMO/Yl4+h1D2RN44xt4zaL6f+Nre wox5t0etNZvSwwUOGArtShC4N+LJ1Y0MKb/Rt71qrAvbXa8+RWul0x6/6O557FVT s7QdgsQDoOzgck6Liq92S2N+02y9iPpr+TN5ZCTFrjCWJmme/HUz9R5g8hgY2AAB wVRfEH6UcYNKZTRFMlSyMWPZ1hfvK5/QnL4L1tVjWtBFheMJ02fu5hNHQFJGcWgb A== X-Virus-Scanned: by MailRoute Received: from 004.mia.mailroute.net ([127.0.0.1]) by localhost (004.mia [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id xpYDfTYzR0Yk; Tue, 14 Oct 2025 20:18:55 +0000 (UTC) Received: from bvanassche.mtv.corp.google.com (unknown [104.135.180.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 004.mia.mailroute.net (Postfix) with ESMTPSA id 4cmQXT6TLgzm0yVD; Tue, 14 Oct 2025 20:18:49 +0000 (UTC) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Avri Altman , Peter Wang , "James E.J. Bottomley" , Matthias Brugger , AngeloGioacchino Del Regno , Bean Huo Subject: [PATCH v6 09/28] ufs: core: Change the type of one ufshcd_add_cmd_upiu_trace() argument Date: Tue, 14 Oct 2025 13:15:51 -0700 Message-ID: <20251014201707.3396650-10-bvanassche@acm.org> X-Mailer: git-send-email 2.51.0.788.g6d19910ace-goog In-Reply-To: <20251014201707.3396650-1-bvanassche@acm.org> References: <20251014201707.3396650-1-bvanassche@acm.org> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Change the 'tag' argument into an LRB pointer. This patch prepares for th= e removal of the hba->lrb[] array. Reviewed-by: Avri Altman Reviewed-by: Peter Wang Signed-off-by: Bart Van Assche --- drivers/ufs/core/ufshcd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index 8339fec975b9..0677438a2b06 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -403,10 +403,11 @@ static void ufshcd_configure_wb(struct ufs_hba *hba= ) ufshcd_wb_toggle_buf_flush(hba, true); } =20 -static void ufshcd_add_cmd_upiu_trace(struct ufs_hba *hba, unsigned int = tag, +static void ufshcd_add_cmd_upiu_trace(struct ufs_hba *hba, + struct ufshcd_lrb *lrb, enum ufs_trace_str_t str_t) { - struct utp_upiu_req *rq =3D hba->lrb[tag].ucd_req_ptr; + struct utp_upiu_req *rq =3D lrb->ucd_req_ptr; struct utp_upiu_header *header; =20 if (!trace_ufshcd_upiu_enabled()) @@ -415,7 +416,7 @@ static void ufshcd_add_cmd_upiu_trace(struct ufs_hba = *hba, unsigned int tag, if (str_t =3D=3D UFS_CMD_SEND) header =3D &rq->header; else - header =3D &hba->lrb[tag].ucd_rsp_ptr->header; + header =3D &lrb->ucd_rsp_ptr->header; =20 trace_ufshcd_upiu(hba, str_t, header, &rq->sc.cdb, UFS_TSF_CDB); @@ -489,7 +490,7 @@ static void ufshcd_add_command_trace(struct ufs_hba *= hba, unsigned int tag, return; =20 /* trace UPIU also */ - ufshcd_add_cmd_upiu_trace(hba, tag, str_t); + ufshcd_add_cmd_upiu_trace(hba, lrbp, str_t); if (!trace_ufshcd_command_enabled()) return; =20