From patchwork Fri Jan 5 02:10:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Lee X-Patchwork-Id: 185194 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5980796dyb; Thu, 4 Jan 2024 18:12:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+LUNMFOBq7A+7h5zm9+kwr7+mwzeVvrcvqw2oi/OZdt08VMJiRVH0d22nJbZrsHhscvxT X-Received: by 2002:a50:9e28:0:b0:554:3e0:3188 with SMTP id z37-20020a509e28000000b0055403e03188mr885764ede.41.1704420741971; Thu, 04 Jan 2024 18:12:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704420741; cv=none; d=google.com; s=arc-20160816; b=oPQ1jQj6oU0kgGacNpJhVtgFCrkBeMqX6XD/iHQ8037MFEbnjfuRoWKq2iyyDyQIHh X62kRWFpexnWKdMUTEf0zLSkzTtVTnUaxlHadX18QRkSU3z23dfZOAHPE4KN4YdDkhMG 09CQbq7i5LUzZZPLfPA+BmgVSr8SuI6LNGy7iCwotFIKQWcciGFfCdK0r6LHYfSmEnDx QuOCofIhwW7WOphnXFH50q5WAV7kW76CYNH7ugkcjlVHIvvJ2V/s2U/Qrm+koLck5KCC v+476ni2o53X4wu+z+3RoHmZR+DCEn8aPlenVF6rN6Atthd4Iw8lIcNBYdP3a2WmjngR fyUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=C/AtuzkF8iWjKMQX6Oumxw5fvfn0zC3sVDPau/SXw2A=; fh=nxvPpl59/27yoQF/0PbCTzkTqsZdJwhYhF0rVu9cGIM=; b=x9trtUiCzOKN+6EWLFAqQIiX5CQzoUkfXiBuTnlM+NAAoYEZYEPxVKyoYYkXvJlZKi 6Pw8ExajBjXDNGqvM1yTlk1Q+VeZfbzYNUJPfmugjLhURg0kaCB6AZ1mFaKFPvhVv+bW /KsXzXJwUqIBELV3uxfKUzv9REJ66LgZEnKMXKYUmtlyAmXnuzR1M2BqdanPKxGSZh06 gYwFN4HpeDdDJk7l8YKGjae2QnUDUXh+vz+XmB4PQtCbXWX33wlqEV5sazGIymXzpc/G NhpHVFeHgBc9IJVGgiPVM5yohsj6sVVLhzn8Teu2hSjBK0o4wpcv8NH/HVcEMKs0vAA2 QxWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=U84Awtko; spf=pass (google.com: domain of linux-kernel+bounces-17406-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17406-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dj1-20020a05640231a100b00554c01b4588si258352edb.257.2024.01.04.18.12.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 18:12:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17406-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=U84Awtko; spf=pass (google.com: domain of linux-kernel+bounces-17406-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17406-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 63F621F2336D for ; Fri, 5 Jan 2024 02:12:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB0C85662; Fri, 5 Jan 2024 02:11:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="U84Awtko" X-Original-To: linux-kernel@vger.kernel.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (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 E3F9B1FC8 for ; Fri, 5 Jan 2024 02:11:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240105021139epoutp0460fcc97c39c874be1cbc9ea9ed8b1daa~nUZiRt6za2838328383epoutp04a for ; Fri, 5 Jan 2024 02:11:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240105021139epoutp0460fcc97c39c874be1cbc9ea9ed8b1daa~nUZiRt6za2838328383epoutp04a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1704420699; bh=C/AtuzkF8iWjKMQX6Oumxw5fvfn0zC3sVDPau/SXw2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U84Awtkomeuh0amjdLfBiPZQlKvocYlBeo2qG5nuZ/vhz4a1wz+93khBlGpd9i5nB hvJrpvnrGTNSArq46qeZSHHmT31bDqyH3Vei6bm46jGX36LceuvyymPuKUuyKucj4x KgB0r1MTW9ZRSo1XZAHyTtbyD3DD7TCutwUzQx9A= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20240105021139epcas1p22aeba110aa935e98547d7de2ef732ad7~nUZhvFvCe1382913829epcas1p2F; Fri, 5 Jan 2024 02:11:39 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.36.223]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4T5n570DV4z4x9Px; Fri, 5 Jan 2024 02:11:39 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 82.2C.09739.A5567956; Fri, 5 Jan 2024 11:11:38 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20240105021138epcas1p3fdfa70996ddbd282c1067de02e39dbd4~nUZhNZy7T2938829388epcas1p3r; Fri, 5 Jan 2024 02:11:38 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240105021138epsmtrp19a1b844be0f2970057413a9074b60f8b~nUZhMcw9O2569625696epsmtrp12; Fri, 5 Jan 2024 02:11:38 +0000 (GMT) X-AuditID: b6c32a37-c0bff7000000260b-85-6597655ac821 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 87.B3.08755.A5567956; Fri, 5 Jan 2024 11:11:38 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.100.232]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240105021138epsmtip199cef65cacc1b0e95f64dc375a5c4f8d~nUZg3w29D2103221032epsmtip1X; Fri, 5 Jan 2024 02:11:38 +0000 (GMT) From: Chanwoo Lee To: alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, quic_cang@quicinc.com, mani@kernel.org, quic_asutoshd@quicinc.com, powen.kao@mediatek.com, quic_nguyenb@quicinc.com, cw9316.lee@samsung.com, yang.lee@linux.alibaba.com, peter.wang@mediatek.com, athierry@redhat.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: grant.jung@samsung.com, jt77.jang@samsung.com, dh0421.hwang@samsung.com, sh043.lee@samsung.com Subject: [PATCH 1/2] ufs:mcq:Use ufshcd_mcq_req_to_hwq() to simplify updating hwq. Date: Fri, 5 Jan 2024 11:10:40 +0900 Message-Id: <20240105021041.20400-2-cw9316.lee@samsung.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20240105021041.20400-1-cw9316.lee@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEJsWRmVeSWpSXmKPExsWy7bCmgW5U6vRUg/ffLC0ezNvGZvFwy1NW i5c/r7JZTPvwk9lixqk2Vot9106yW/z6u57dYtGNbUwWO56fYbe4vGsOm0X39R1sFgc+rGK0 WH78H5PF1k+/WS3e3v3PYrGwYy6LxaRrG9gspr44zm7R9Gcfi8XSrTcZLd41HmZ0EPW4fMXb Y9OqTjaPnQ8tPSYsOsDo0XJyP4vHx6e3WDwm7qnzeL/vKptH35ZVjB6fN8l5tB/oZgrgjsq2 yUhNTEktUkjNS85PycxLt1XyDo53jjc1MzDUNbS0MFdSyEvMTbVVcvEJ0HXLzAH6U0mhLDGn FCgUkFhcrKRvZ1OUX1qSqpCRX1xiq5RakJJTYFagV5yYW1yal66Xl1piZWhgYGQKVJiQndE1 7yBLwQuOindzshoY17B3MXJySAiYSFyctZKli5GLQ0hgB6PE64kfmSGcT4wSc6/cYIVwvjFK HH64lAmm5cOcGW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cfi8XSrTcZLd41HmZ0EPW4fMXb Y9OqTjaPnQ8tPSYsOsDo0XJyP4vHx6e3WDwm7qnzeL/vKptH35ZVjB6fN8l5tB/oZgrgjuKy SUnNySxLLdK3S+DK6Jp3kKXgBUfFuzlZDYxr2LsYOTkkBEwkPsyZwdbFyMUhJLCbUeJF72pm iISUxO7954ESHEC2sMThw8UgYSGBT4wSM+/bg4TZBLQkbh/zBgmLCOxnljjdFgtiMwtkSHz7 eIIJxBYWCJKYeP4H2BQWAVWJsz3lIGFeAWuJI6vfQi2Sl/hzvwfM5hSwkbi1cgULxCZriVUv brBA1AtKnJz5hAVivLxE89bZzBMYBWYhSc1CklrAyLSKUTK1oDg3PbfYsMAwL7Vcrzgxt7g0 L10vOT93EyM4HrU0dzBuX/VB7xAjEwfjIUYJDmYlEd716yanCvGmJFZWpRblxxeV5qQWH2KU 5mBREucVf9GbIiSQnliSmp2aWpBaBJNl4uCUamCasWCv7blKrd3LHvKovt7L89dbJG3Ds9ne IqZBvqsnHNZYsmge37vqxeqeV7u2C9y5V8PHscLuKYvZhV6joiM3bn7nFf2alipaNf//jBxe qetL2uc4/mz93LhOprTop2uu3EWF8J73yf9cp3Eemu/VIsSz5ppN/6+etBZN34XPf545HjUr 9EDJMpHdYiJTA5adUlS+onLguF+/Ipfoq9Jr7xeLX93m2+5aYR4y+6erwWZm+ZBSe/ftS++x RAtL8AfyrXn893NT0I9ZaSyfrmx6Ofd8h0c2VzTb1mgtxxZdA/+qMLPu93eC9s3XqTY9mMDK cNts42cx+TvPmmRPa6WeuDmzbZ+Q+mV9g9VZi38osRRnJBpqMRcVJwIAX7RxAjYDAAA= X-CMS-MailID: 20240105021138epcas1p3fdfa70996ddbd282c1067de02e39dbd4 X-Msg-Generator: CA CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240105021138epcas1p3fdfa70996ddbd282c1067de02e39dbd4 References: <20240105021041.20400-1-cw9316.lee@samsung.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787214684107555566 X-GMAIL-MSGID: 1787214684107555566 From: ChanWoo Lee Use ufshcd_mcq_req_to_hwq() to remove unnecessary variables and simplify. Signed-off-by: ChanWoo Lee Reviewed-by: Bart Van Assche --- drivers/ufs/core/ufshcd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index 30df6f6a72c6..c9d122302889 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -5597,7 +5597,6 @@ static void ufshcd_mcq_compl_pending_transfer(struct ufs_hba *hba, struct ufshcd_lrb *lrbp; struct scsi_cmnd *cmd; unsigned long flags; - u32 hwq_num, utag; int tag; for (tag = 0; tag < hba->nutrs; tag++) { @@ -5607,9 +5606,7 @@ static void ufshcd_mcq_compl_pending_transfer(struct ufs_hba *hba, test_bit(SCMD_STATE_COMPLETE, &cmd->state)) continue; - utag = blk_mq_unique_tag(scsi_cmd_to_rq(cmd)); - hwq_num = blk_mq_unique_tag_to_hwq(utag); - hwq = &hba->uhq[hwq_num]; + hwq = ufshcd_mcq_req_to_hwq(hba, scsi_cmd_to_rq(cmd)); if (force_compl) { ufshcd_mcq_compl_all_cqes_lock(hba, hwq); From patchwork Fri Jan 5 02:10:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Lee X-Patchwork-Id: 185196 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5980944dyb; Thu, 4 Jan 2024 18:12:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+2VlXaa1VaAnnO0tduRchrBtkIUSlc41iKG/FEYaPhMf2/dpqQd3q1kyPhejew/2FnATe X-Received: by 2002:a05:6808:3189:b0:3b9:dfc7:fcab with SMTP id cd9-20020a056808318900b003b9dfc7fcabmr1481715oib.1.1704420776090; Thu, 04 Jan 2024 18:12:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704420776; cv=none; d=google.com; s=arc-20160816; b=GKHbV0Y9G8L4qk4YH10bS66241laInNQWHBLaT7tHZ9nHv3dMcH/yFKJae2ZST3SFU JgH6s/9XOF9UezZk6inz04Hy51I/BMr174HmV5ww3IpXgodh1nPzKyJcfrcoQ7IhKwL3 4c9EG5ftMmDoVI57CtTpdk474oJCPilJpgkp6FHPIyMm7VxCDW9r+xOtLHEzKJdJ4u17 U0kfkKc0ju2x9HX5g1yLVCdT4/7rWTQIH8FAmRihkfZuUkgyqShlB3FLZyskhVBC8O0M hnikzt+MVhdIQh6ojPOECI5u+/ZZlFgmv35qGZGLJ4kYIMVaFPQC0HxVbhWwzFov1LPQ 1QlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=dZVb79P+qvTVTPnXDcb6hSixeCMAiEBLHc2YBjIHyJM=; fh=nxvPpl59/27yoQF/0PbCTzkTqsZdJwhYhF0rVu9cGIM=; b=ds7b5Plzbx+2EAqPCiQyPVTtwPxHZpLXV+H22qDFdEroW1nkppCT89g2GrFwGbBZxF 7KHPOij1LNZE2vScFXYJAv1TThmuHyzjjhGHZM3KG2H7VRBXXNWr92s7FySUjCZnGOu0 3AuepoPNtbB0R5rBxR+kn8yidwquIWPAf26yHSE6fpa2hgZUZScsbJZmh07FlIO+Baj5 Artq6CbVsG1Whg2pf7iXIUl1ECFES5WQVzTH6CsqqeRGxH+yaNH3fYtXUTItwa15227e bCoksTSMUjR8IeGUClnDE8yVernbzj46Gnn3B0Bbp0Rg6lLMxXRsfae45q8iqB1AXSMv 0o/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=X7t8WXOo; spf=pass (google.com: domain of linux-kernel+bounces-17408-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17408-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m14-20020a0cf18e000000b0067f056ee1dasi840258qvl.68.2024.01.04.18.12.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 18:12:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17408-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=X7t8WXOo; spf=pass (google.com: domain of linux-kernel+bounces-17408-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17408-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CB7491C21AEE for ; Fri, 5 Jan 2024 02:12:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 393FC2031F; Fri, 5 Jan 2024 02:12:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="X7t8WXOo" X-Original-To: linux-kernel@vger.kernel.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (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 1CDB51DFC4 for ; Fri, 5 Jan 2024 02:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240105021225epoutp04a651d7ee0c241565f6973c6f141f00d5~nUaMw3EPT2716427164epoutp04H for ; Fri, 5 Jan 2024 02:12:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240105021225epoutp04a651d7ee0c241565f6973c6f141f00d5~nUaMw3EPT2716427164epoutp04H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1704420745; bh=dZVb79P+qvTVTPnXDcb6hSixeCMAiEBLHc2YBjIHyJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X7t8WXOoO5p7W34ud3FXqxMQcKbi9akktGrnFH5eiIaauiXo4QMRUmuvkFTnhUVu5 PfvxX+v/iwoTPiw5iPGq8Vy4bmzXvoVbOe7O1dzc+goRpqtdVsdriQuzJyaTE50lEy EG+LzpIUhegGb0UxIkLrZaBU1qugXgtocuD7Rp28= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20240105021224epcas1p3833c624d783a76f90b309fd68f0bb91c~nUaLnMY6G1090310903epcas1p3p; Fri, 5 Jan 2024 02:12:24 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.38.248]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4T5n5z56m9z4x9QC; Fri, 5 Jan 2024 02:12:23 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 5B.93.09744.78567956; Fri, 5 Jan 2024 11:12:23 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20240105021223epcas1p156208a9a445b5e0b527a9eb2d2589ed3~nUaKngZV_0053900539epcas1p12; Fri, 5 Jan 2024 02:12:23 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240105021223epsmtrp1a71c939bc2231410859ad3fdaafec842~nUaKmgFZg2623726237epsmtrp1m; Fri, 5 Jan 2024 02:12:23 +0000 (GMT) X-AuditID: b6c32a35-107fa70000002610-02-65976587a7b0 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id F2.6C.07368.68567956; Fri, 5 Jan 2024 11:12:22 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.100.232]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240105021222epsmtip1d273cc1fb5d846ef2fe7a27b5d4b53db~nUaKPuQwd2152021520epsmtip1e; Fri, 5 Jan 2024 02:12:22 +0000 (GMT) From: Chanwoo Lee To: alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, quic_cang@quicinc.com, mani@kernel.org, quic_asutoshd@quicinc.com, powen.kao@mediatek.com, quic_nguyenb@quicinc.com, cw9316.lee@samsung.com, yang.lee@linux.alibaba.com, peter.wang@mediatek.com, athierry@redhat.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: grant.jung@samsung.com, jt77.jang@samsung.com, dh0421.hwang@samsung.com, sh043.lee@samsung.com Subject: [PATCH 2/2] ufs:mcq:Remove unused parameters Date: Fri, 5 Jan 2024 11:10:41 +0900 Message-Id: <20240105021041.20400-3-cw9316.lee@samsung.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20240105021041.20400-1-cw9316.lee@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA02Tf0xTVxTHc/va14eu27Ogu+nCj9RphARogbKLwiQB9S0Qx6b8MbcFK32j DGhLX4tANsYoIKtEigtjMjdBpxNChCHUgsAQorXoxA1Qh3PAtAzY+FGGlh8Co7y5+d8593zO 95tz7r0EJhzCRUSySkdrVfJUMb6Oa+7y9fc/QpfTkj9PeKOhb8w4Gm6089DYfD+Ovpiex9CX 3YU81H7HxkcLS3V8dPqemYMsf9zko96Wkzg6eteCo47pGoC+sy5zUNPMIg9NPFjhoqqir7no +J16HJWNWvko72k7F51t+gWgyU+7QORGqrcvhmqo+QynmofDKNPpDkDl237gUg77AJcqbc2h ptr7cepYYw2g/m7woo50HOXErT+QEq6k5Qpa60OrEtWKZFVShDhmX0JUgixUIvWXhqHXxD4q eRodIY6OjfPfnZy6OqfYJ0Oeql89ipMzjDjw9XCtWq+jfZRqRhchpjWKVE2oJoCRpzF6VVKA itZtl0okQbJV8GCKcnipmK8Zc8tc7FnAckEBYQQEAckQWFOQbATrCCFpATB36hLOJjMADv6+ xGOTJwBOnZrhGoHbWkde5QhgC20Amk1W3FUQkrMATtjedsnipB+8fy3GxXiQ1Rgs6x7nuxiM VMDx4sk1IXdSBuvNecDFc8ktsOea2nUsIHfAuuZyDuvlDZ8OFmOu2I0MhwPV57ksswHaTjzi spLe0ND0FebyguQcAQ32EowdLRr+bA5gddzhuLWRz8YiOFZSyGd5A4BVf1n/bTYBOOu4j7PU TmgoMOAuIYz0hXUtgazZi3DycTGP1RfAokIhS78KTxpv4c/0Hfce8tiYgoO5y3x2VyUAXnTU AhPwrnhuhornZqj4360SYDVgE61h0pJoRqqR/nepieq0BrD21P1kFlA6MR3QCTgE6ASQwMQe groLn9NCgUKelU1r1QlafSrN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FGCQ5mJRHe9esmpwrxpiRWVqUW5ccXleak Fh9ilOZgURLnNZwxO0VIID2xJDU7NbUgtQgmy8TBKdXAVNWqfWTy/Lvx0+uC+95Mr579K82k t/VuSLnclihRt0wG33j2997W7uZLgnyUX6z7U71qzoLW/N9LSxffFKw6vOHG6aV/TweUFRzd 4ZY1192+gaXIjKXop5uBVlai4I+jpS4yh1w83c51q6t0XpafF1TluM5Jxql5/v5WjWbLXdoX U1fWtPOsm+za6hBXa/LcJuxIWMVF8SSXuI6c64sXtB55KWLzy9d/r5Krq+D6Fffjrxbsacje f0TAn5uZ4wxbi5IX74W7m1b0PN1722Hvl8wQNekVG6O9ol5ftGiN15vM/6uk5uX+l7dNvGfZ sW7p/hMbosSzxCvlRZws80WOP+p5h1vCX1/LusVi9kyJpTgj0VCLuag4EQCAS72BNwMAAA== X-CMS-MailID: 20240105021223epcas1p156208a9a445b5e0b527a9eb2d2589ed3 X-Msg-Generator: CA CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240105021223epcas1p156208a9a445b5e0b527a9eb2d2589ed3 References: <20240105021041.20400-1-cw9316.lee@samsung.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787214720063628240 X-GMAIL-MSGID: 1787214720063628240 From: ChanWoo Lee The 'hwq' parameter is not used in this function. So, remove unused parameters. Signed-off-by: ChanWoo Lee Reviewed-by: Bart Van Assche --- drivers/ufs/core/ufs-mcq.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/ufs/core/ufs-mcq.c b/drivers/ufs/core/ufs-mcq.c index edc752e55878..8db81f1a12d5 100644 --- a/drivers/ufs/core/ufs-mcq.c +++ b/drivers/ufs/core/ufs-mcq.c @@ -258,9 +258,7 @@ EXPORT_SYMBOL_GPL(ufshcd_mcq_write_cqis); * Current MCQ specification doesn't provide a Task Tag or its equivalent in * the Completion Queue Entry. Find the Task Tag using an indirect method. */ -static int ufshcd_mcq_get_tag(struct ufs_hba *hba, - struct ufs_hw_queue *hwq, - struct cq_entry *cqe) +static int ufshcd_mcq_get_tag(struct ufs_hba *hba, struct cq_entry *cqe) { u64 addr; @@ -278,7 +276,7 @@ static void ufshcd_mcq_process_cqe(struct ufs_hba *hba, struct ufs_hw_queue *hwq) { struct cq_entry *cqe = ufshcd_mcq_cur_cqe(hwq); - int tag = ufshcd_mcq_get_tag(hba, hwq, cqe); + int tag = ufshcd_mcq_get_tag(hba, cqe); if (cqe->command_desc_base_addr) { ufshcd_compl_one_cqe(hba, tag, cqe);