From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 003.mia.mailroute.net (003.mia.mailroute.net [199.89.3.6]) (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 D9C003009D5 for ; Fri, 12 Sep 2025 18:25:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.3.6 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757701545; cv=none; b=mS72dH3M5dc9TR+zdHxdDmvWbsDwXoC3HIuA1bi6t3U5729Ty/b5M7+VggKA4JoyQA6lE1Wyns8WoAD9dk/plAfyxqx7prN+ntaneNP45/+1NmtqRE+Wa7N5dtx+tXrYf0xTuP2hYgJTAlLUK45PywGkdcFnMu4aQTrAJhqv0LI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757701545; c=relaxed/simple; bh=a1sIiXLMBv256B8Rp7I4QqvJyYSW9yumX0NbwpjcFqw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fJj0//6UUBHkfYGwobOxSRz28kyO8lJ74+SKi0QweWtT7JICvG4rM1SIImX3QfJDCxV/0nafu7oxdS7O4xyFWpxmfNwCLw9R8WIHhG60k80lxttoMHI2eVMHrYO6sZF3x+Kj9LMpP3z7lFWx/3hRxf51MxtwhsRiGoR3icnuxCQ= 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=nn6KHLbY; arc=none smtp.client-ip=199.89.3.6 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="nn6KHLbY" Received: from localhost (localhost [127.0.0.1]) by 003.mia.mailroute.net (Postfix) with ESMTP id 4cNjXl1bYtzlgqVJ; Fri, 12 Sep 2025 18:25:43 +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=1757701541; x=1760293542; bh=BXWg1 kByskEngRcn9nIius0ohaR/3Hmaoar/9IT1Bjk=; b=nn6KHLbYVb/XRi8d9OVpU e4Y7vVjP8Gu3PwyDt57hSkVNPVLOuxqqscFP2YoR6J02RmXzbQyxr2CqpyyAAAys mvQupzrOgrdbaV/HriU2up7jkGtKfA+LOrlLrqyAkqUbFDfRi/UIyzCB6c9wJt0q UBaJN0eb5yI2+iI1SbUwd+5Lyn5MaADF4s7Mg9Inx5sV2Dov3fTYHZXM6p5zRPxV GKkd3WKnrAUTtP1YYOfcpZv2N9FmziZSw7RHIK7LKQNLHYDiGVsfgxNoY6Sl7+NG pRmhgOc7N18nfPhbOf9Q9RPKz6ORgByY3YlNHZumDh8AZs5aN6nrucl3dFfTOn9z g== X-Virus-Scanned: by MailRoute Received: from 003.mia.mailroute.net ([127.0.0.1]) by localhost (003.mia [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id Ds_DjeIRoeUK; Fri, 12 Sep 2025 18:25:41 +0000 (UTC) Received: from bvanassche.mtv.corp.google.com (unknown [104.135.204.82]) (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 003.mia.mailroute.net (Postfix) with ESMTPSA id 4cNjXb37zbzltBDH; Fri, 12 Sep 2025 18:25:34 +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 v4 09/29] ufs: core: Change the type of one ufshcd_add_cmd_upiu_trace() argument Date: Fri, 12 Sep 2025 11:21:30 -0700 Message-ID: <20250912182340.3487688-10-bvanassche@acm.org> X-Mailer: git-send-email 2.51.0.384.g4c02a37b29-goog In-Reply-To: <20250912182340.3487688-1-bvanassche@acm.org> References: <20250912182340.3487688-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 e2157128e3bf..9eb11bb33e85 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -405,10 +405,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()) @@ -417,7 +418,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); @@ -491,7 +492,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