🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: org.infradead.lists.linux-mediatek
Article #1

[PATCH v3] ufs: core: change hwq_id type and value

#1
From: peter.wang
Date: Fri, 09 May 2025 02:16
28 lines
5697 bytes
From: Peter Wang <peter.wang@mediatek.com>

Change the type of hwq_id to u32 because the member id of struct
ufs_hw_queue is u32 (hwq->id) and the trace entry hwq_id is also u32.
Set hwq_id to 0 if mcq is not supported, as SDB mode only supports
one hardware queue.

Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
---
 drivers/ufs/core/ufshcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
index 7735421e3991..14e4cfbcb9eb 100644
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -432,7 +432,7 @@ static void ufshcd_add_command_trace(struct ufs_hba *hba, unsigned int tag,
 	u8 opcode = 0, group_id = 0;
 	u32 doorbell = 0;
 	u32 intr;
-	int hwq_id = -1;
+	u32 hwq_id = 0;
 	struct ufshcd_lrb *lrbp = &hba->lrb[tag];
 	struct scsi_cmnd *cmd = lrbp->cmd;
 	struct request *rq = scsi_cmd_to_rq(cmd);
-- 
2.45.2
Technical Details
Message-ID: <20250509021648.412098-1-peter.wang@mediatek.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!nntp.lore.kernel.org!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <20250509021648.412098-1-peter.wang@mediatek.com>
Subject: [PATCH v3] ufs: core: change hwq_id type and value
Date: Fri, 9 May 2025 10:16:12 +0800
From: <peter.wang@mediatek.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!nntp.lore.kernel.org!not-for-mail
Received: from mailgw01.mediatek.com (unknown [60.244.123.138])
 (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 54FF77B3E1
Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138
ARC-Seal: ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
 t=1746757017; cv=none; b=YrGga08sJE7ZJEeXPyxdOW+TDL1cXUHGObJfWBWVf9jibm5S8/PGahLvIzZi4m1mrGVVVVCvnSh4COaw0+f8wwI1W3dMSPWdLSDISISs/2YfEx3VcIPwh6HsFDtefTgkIALaGTL9njPPrkeFZekUxNqzEC7vc9qS5U6/5jw/BuA=
ARC-Message-Signature: ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org;
 s=arc-20240116; t=1746757017; c=relaxed/simple;
 bh=qZP3i48F/N2Wu6mr7MTWyQN1f4PpAOANYW57ldzzejU=;
 h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=MPXOjQa8heBU+0QPPEH4beAkv3PhX/554r/MCy/6ngg7OHeXxKnUoMWLqJaG43FIxW0putwQxXCx9viXsOAyMKlbHTHQ8AGajNtesdYNYGDJ93g9BkpNGugnf+yG3XS/LqXTS05fVwDuyaSc323Ag3pESEo31EAqzL4XEAaVWyQ=
ARC-Authentication-Results: ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=rASLwYt+; arc=none smtp.client-ip=60.244.123.138
Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com
Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com
Authentication-Results: smtp.subspace.kernel.org;
 dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="rASLwYt+"
X-UUID: aa7fd62e2c7b11f0813e4fe1310efc19-20250509
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk;
 h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=MKfd8pBOXHAFy3qwu17VLlqq5nJItW8E69HpXZQ5qVk=;
 b=rASLwYt+0+U9j1gyeauChZOtej177A/ilrxrZb20Wy84sYvoMxNe6b3qWT9Wmz6WdsyrtuDi8fXZbp0mTuRKA8AF5JHkolXXv26oJxELpiRrpJPG8Hp0p81RpEqxEi5W3DvLZRINTDD+CIw3Ld3OeyvWWUTYVOJgpgJ3xNWcYRM=;
X-CID-P-RULE: Release_Ham
X-CID-O-INFO: VERSION:1.2.1,REQID:ef2796ec-1eaa-4218-b7f2-4cd6fe0b46ed,IP:0,UR
 release,TS:-5
X-CID-META: VersionHash:0ef645f,CLOUDID:f1f3c2e0-512b-41ef-ab70-9303a9a81417,B
 ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0|50,EDM:-3,IP:ni
 l,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES
 :1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0
X-CID-BVR: 0,NGT
X-CID-BAS: 0,NGT,0,_
X-CID-FACTOR: TF_CID_SPAM_SNR
X-UUID: aa7fd62e2c7b11f0813e4fe1310efc19-20250509
Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com
 (envelope-from <peter.wang@mediatek.com>)
 (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256)
Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by
 MTKMBS09N2.mediatek.inc (172.21.101.94) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
Received: from mtksitap99.mediatek.inc (10.233.130.16) by
 mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id
To: <linux-scsi@vger.kernel.org>, <martin.petersen@oracle.com>,
 <avri.altman@wdc.com>, <alim.akhtar@samsung.com>, <jejb@linux.ibm.com>
CC: <wsd_upstream@mediatek.com>, <linux-mediatek@lists.infradead.org>,
 <peter.wang@mediatek.com>, <chun-hung.wu@mediatek.com>,
 <alice.chao@mediatek.com>, <cc.chou@mediatek.com>,
 <chaotian.jing@mediatek.com>, <jiajie.hao@mediatek.com>,
 <yi-fan.peng@mediatek.com>, <qilin.tan@mediatek.com>, <lin.gui@mediatek.com>,
 <tun-yu.yu@mediatek.com>, <eddie.huang@mediatek.com>,
 <naomi.chu@mediatek.com>, <ed.tsai@mediatek.com>, <bvanassche@acm.org>,
 <quic_ziqichen@quicinc.com>
X-Mailer: git-send-email 2.45.2
Precedence: bulk
X-Mailing-List: linux-scsi@vger.kernel.org
List-Id: <linux-scsi.vger.kernel.org>
List-Subscribe: <mailto:linux-scsi+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:linux-scsi+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain
Newsgroups: org.kernel.vger.linux-scsi,org.infradead.lists.linux-mediatek