Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp683534lqp; Wed, 22 May 2024 17:23:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVt9VjQHQgZgCQ36ivZ8rL0rs4wGO4Inor8PxqhI2goKKaDjoBxvTQVjrGaSCvUJ+EVxvEoyNF4wD2uz+r96gjtw+pRNabr+zh+g2t/qQ== X-Google-Smtp-Source: AGHT+IGUvNVmVIK/T9ifJwXaZm8zLXcdKbacsjFXBU/LM5pM4cHURDG06eFh9oVXwaHzpb0Kr3G2 X-Received: by 2002:a17:902:db07:b0:1f1:8fd9:b99d with SMTP id d9443c01a7336-1f339f51959mr10448435ad.23.1716423818785; Wed, 22 May 2024 17:23:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716423818; cv=pass; d=google.com; s=arc-20160816; b=sNUoP7ZPG2PXj8csG+1OtQr8BJTe4SHahjO3d9PT2HaNdqS5ULXLfZrn91bZcSfJCn xnDrNBfUZ8Xxk5RnMs4AHZXVU8oBlMI6yzGATN0F6M3aemgX2Z8pmeWjzKVePqzeuhWA zTFg1aXcqmzQP9CuNAcj0hAYsM6p4OtEH2xJdQH8NeukCgf5aTftdg1cadxMW5x88sna bbA30l7g1qfSl/bZEQUd/Fc1ZUiRIyqTPziscMN4tsMPoJQ92GYG2obtPytXUfEaJUld oQelW3cv5BW3EjHJb9sURVql+PArLbqTH7cKGr1SgBnatSiPb9wTef4E8U+OwB5/Nqj8 hq0A== ARC-Message-Signature: i=2; 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=bxbj9vt7C7y18tsnTS/FCojRnLKLZliPPTlfmq6LKHk=; fh=93Py5NfTk82eGMu64u4zrNZETpWuO87+1tw5UCkaVFs=; b=TMWzXtDjWYEjje2zcrZH06ohxvvn5KTolJtznkzNMjP8NYDx+Mn6gsHwpErVk3FnGs 8hK6sG8Dsmt6DIPLL16FvK/Se8XN8WbZmfP3mQ8NTJl6khRmZ4aTUGetMnrLfCs3KIHj b6Kwr1CSIh/xWCXo/dbmh1yInc6ZvtpF6yljtPv5Ms6un/gmH81j01+vr4SbgDX6XuYT GCaWBl/oIy9DwudIr88/TE/n+TzPV24/dygscqM0szDsO2DA38wUJ9Ea0ldetBx4cRKg GswdkCJpWVTjKl/yMd+yriCeg2m9kllqut4oA7/E0ATUJr+26lnCxv4+lCtfIojGYRxK Z5pQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=cOYMj7fs; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-186858-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186858-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f326c0ce22si1837325ad.296.2024.05.22.17.23.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 17:23:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186858-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=cOYMj7fs; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-186858-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186858-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2C88128277A for ; Thu, 23 May 2024 00:23:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07D7417F7; Thu, 23 May 2024 00:23:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="cOYMj7fs" Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (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 89C23365 for ; Thu, 23 May 2024 00:23:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716423811; cv=none; b=QhrCrHMJSpqHy/mF7zdtrMJbhDMtVDtCrhtpynkEZqGGedsvx56awCLhSFTam7MOivklx9/LAyrfiILVNNJoegR2uVHeFec+K2SyXwCptQ4s2rjAGgfKqMRp9ENNntMSkbbW6YnXowrrSYAMNG6VUVK9MVdxfrjRE17OHf/22Cc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716423811; c=relaxed/simple; bh=aBFl6NoNCYEgzTWuk4Xg5V4yj/L2vRLZ5FrXJZWqsW4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: References; b=q5gLpJMHWhersIRVMUsYDHo1Uf+8mPZz5JiA7DFhElkWQ8oAMwvCs+dotJ2P1wzzxqYFkP0mc2jUy8dE9XvIr9iRLaAAqo9Up+3VUMdzuxFyu+ttkwBTa138t71oVZqfbC3sm+3J4VIV/WHi72kbQz9ILRGBnkk9VYZsCJXGTIY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=cOYMj7fs; arc=none smtp.client-ip=203.254.224.33 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 mailout3.samsung.com (KnoxPortal) with ESMTP id 20240523002324epoutp03848818061ae2773964aec95cce493cb0~R9lser3302305723057epoutp03F for ; Thu, 23 May 2024 00:23:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240523002324epoutp03848818061ae2773964aec95cce493cb0~R9lser3302305723057epoutp03F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1716423804; bh=bxbj9vt7C7y18tsnTS/FCojRnLKLZliPPTlfmq6LKHk=; h=From:To:Cc:Subject:Date:References:From; b=cOYMj7fsIsfk/fNJzC94alFaVCdj/iXqCk6zyzsUqlOh0AQgkl1h4oR0LlGLf0Xbh z5VGbco7Hq25/tE7CMzjSibb0pUPQ8eoSsvjBMgSUF0t+5YgwoSpX8ZI61T+kcdXMR i2gU0pspcJjK20B9Tp8DY/sexZZJPAaPLP9HACG4= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20240523002323epcas1p4740006fec15f67c3c7fe37592d4e89a1~R9lsAclkC1730517305epcas1p4d; Thu, 23 May 2024 00:23:23 +0000 (GMT) Received: from epsmges1p4.samsung.com (unknown [182.195.38.248]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Vl863202Kz4x9Pt; Thu, 23 May 2024 00:23:23 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 7E.88.10158.B7C8E466; Thu, 23 May 2024 09:23:23 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20240523002322epcas1p2a63dfc646a2b2dd8fcadad2a8807bcee~R9lrCKqcu0290602906epcas1p24; Thu, 23 May 2024 00:23:22 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240523002322epsmtrp2cc595954cd7d71202618b62dc197f8c4~R9lrBRRF80430204302epsmtrp2l; Thu, 23 May 2024 00:23:22 +0000 (GMT) X-AuditID: b6c32a38-8e1ff700000027ae-3b-664e8c7b8a8e Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id AE.89.08390.A7C8E466; Thu, 23 May 2024 09:23:22 +0900 (KST) Received: from lee.. (unknown [10.253.100.232]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240523002322epsmtip2601973feec3adc41b834b58dfd4c5949~R9lqzQNzn1770717707epsmtip2m; Thu, 23 May 2024 00:23:22 +0000 (GMT) From: Chanwoo Lee To: alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, quic_nguyenb@quicinc.com, quic_cang@quicinc.com, powen.kao@mediatek.com, yang.lee@linux.alibaba.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Chanwoo Lee Subject: [PATCH] ufs:mcq:Fixing Error Output for ufshcd_try_to_abort_task in ufshcd_mcq_abort Date: Thu, 23 May 2024 09:22:57 +0900 Message-Id: <20240523002257.1068373-1-cw9316.lee@samsung.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIJsWRmVeSWpSXmKPExsWy7bCmgW51j1+aQWsHt8WDedvYLF7+vMpm Me3DT2aLGafaWC029nNYXN41h82i+/oONovlx/8xWby9+5/FYtK1DWwWU18cZ7dYuvUmo8W7 xsOMDrwel694e0ybdIrNY+dDS4+Wk/tZPD4+vcXiMXFPnUffllWMHp83yXm0H+hmCuCMyrbJ SE1MSS1SSM1Lzk/JzEu3VfIOjneONzUzMNQ1tLQwV1LIS8xNtVVy8QnQdcvMATpaSaEsMacU KBSQWFyspG9nU5RfWpKqkJFfXGKrlFqQklNgVqBXnJhbXJqXrpeXWmJlaGBgZApUmJCd8fHZ ApaCj+wVp/pFGxh3snUxcnBICJhInJ1k1sXIxSEksINR4u30bjYI5xOjROvu04wQzjdGibU/ VrJ2MXKCdTxe0gOV2MsosevHNWYI5wmjRMOeLnaQuWwCWhK3j3mDNIgInGCSuPMsGcRmFtCQ +NN2kQ3EFhaIl7h8cjcjiM0ioCqxp/Et2AJeAVuJbyuWMEMsk5fYf/AsM0RcUOLkzCcsEHPk JZq3zgbbKyHQyyFxZ+49qAYXieY5J5kgbGGJV8e3sEPYUhKf3+1lg2hoZpRY+OY4VPcERokv H2+zQVTZSzS3NoNDhllAU2L9Ln2IbXwS7772sEICjFeio00IolpFYk7XOTaY+R9vPIaGkIfE 9P1TwA4VEoiV2PZuLeMERrlZSH6YheSHWQjLFjAyr2IUSy0ozk1PLTYsMIFHZHJ+7iZGcFrV stjBOPftB71DjEwcjIcYJTiYlUR4o1f6pgnxpiRWVqUW5ccXleakFh9iNAWG6kRmKdHkfGBi zyuJNzSxNDAxMzKxMLY0NlMS5z1zpS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+uGK lVvMf67QY2K3XrKn4di/15z6fpdYP548ukcqbtfbKy82C/I99/RaFLBZWXHm01SPPSvqzBK3 d9sWLn91SOqgh3vKpOU+W+ddcnr8yUdLVU/hx96a++u+d6qeNGJluzJh8zOpR8rXnXYdf50W x6vPzXJJ54n9vStKfBZLbjFtORnFMvve/D7tQz8TmOTfhfwy3mNsyaq2gfW5ybNYgUktq3oe uqutmuR9wvC2fbmPqMVS74yPHP/SmH3q/TMq5HT/c7xXffHTPT7m4rGOzXrJHbsYM98x+u3K 2PdBeHvo55KWGiWW4oxEQy3mouJEABuUXQ3uAgAA X-CMS-MailID: 20240523002322epcas1p2a63dfc646a2b2dd8fcadad2a8807bcee X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240523002322epcas1p2a63dfc646a2b2dd8fcadad2a8807bcee References: An error unrelated to ufshcd_try_to_abort_task is being output and can cause confusion. So, I modified it to output the result of abort fail. This modification was similarly revised by referring to the ufshcd_abort function. Signed-off-by: Chanwoo Lee --- drivers/ufs/core/ufs-mcq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/ufs/core/ufs-mcq.c b/drivers/ufs/core/ufs-mcq.c index 005d63ab1f44..fc24d1af1fe8 100644 --- a/drivers/ufs/core/ufs-mcq.c +++ b/drivers/ufs/core/ufs-mcq.c @@ -667,9 +667,11 @@ int ufshcd_mcq_abort(struct scsi_cmnd *cmd) * in the completion queue either. Query the device to see if * the command is being processed in the device. */ - if (ufshcd_try_to_abort_task(hba, tag)) { + err = ufshcd_try_to_abort_task(hba, tag); + if (err) { dev_err(hba->dev, "%s: device abort failed %d\n", __func__, err); lrbp->req_abort_skip = true; + err = FAILED; goto out; } -- 2.34.1