From patchwork Wed Aug 28 04:26:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seunghwan Baek X-Patchwork-Id: 13780501 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) (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 B425684D0D for ; Wed, 28 Aug 2024 04:26:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.25 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724819221; cv=none; b=egIURzN0h8U79+n0v9MEdk9AWqJm7nQNZa/7rfJcfHwXvHDqmR88UqfNvLpeNaTm+LoSNinG7+P7+bb0zY0NQgDxoA+/Iy7LlPhW1ensNSKOTIQb5BB0k1BNMNXi3KE1IPMNzM4QW636QQNMOszLUmfPBO2qIBTSQiIWbDW1Fi8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724819221; c=relaxed/simple; bh=4yNbuHfPFx9yC5Kq8l/0Rbb3a50finI0l3Ew6S2evlk=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:References; b=kg1CEjnK2drJDXvjqBSKoFctNZiJMZEKptohRxz8Q6+aRVt6AXnFem+poam+c6y7nuLeVov4zFeZrdCSCBEhBGYcwitoNEQs9OFr1szPxHlShoBo7/L89rrUB1DO5LyIEspPl4jN8JkrBncFiy/uSULpkc2uXCctMwXNf2ptJzU= 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=ekStRBF/; arc=none smtp.client-ip=203.254.224.25 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="ekStRBF/" Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20240828042655epoutp028ff61f725ca05cd83c8ed2aff2a54c6d~vyfAO7Ems2173521735epoutp02W for ; Wed, 28 Aug 2024 04:26:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20240828042655epoutp028ff61f725ca05cd83c8ed2aff2a54c6d~vyfAO7Ems2173521735epoutp02W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1724819215; bh=GxDHy9aOJCuxndcthX9NL1gbw91QpYlLzFOGWMj6i7Y=; h=From:To:Cc:Subject:Date:References:From; b=ekStRBF/TFGcCoLLwUINUwtFycjB9Vl1P110w0wD6hN/kjFtHpQ1kWLC9d5nbYTUv uwanRp0zZC5bcAu7wLttXJAYTVSq5I2N4JcJF1vSqk/XBKgUasahGtXpRMtf3wfKqz qzRJoZXcZwJ7hJO43wBWaXSQpXbjB2t8Rx9Lam54= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20240828042654epcas1p43a24230643f26461007795add564c9bb~vye-hpVo60720607206epcas1p4V; Wed, 28 Aug 2024 04:26:54 +0000 (GMT) Received: from epsmgec1p1.samsung.com (unknown [182.195.36.226]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4WtrwF6mDPz4x9Q7; Wed, 28 Aug 2024 04:26:53 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmgec1p1.samsung.com (Symantec Messaging Gateway) with SMTP id E9.5F.08992.D07AEC66; Wed, 28 Aug 2024 13:26:53 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20240828042653epcas1p1952b6cee9484b53d86727dd0e041a0b5~vye_s5bX43151631516epcas1p1x; Wed, 28 Aug 2024 04:26:53 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240828042653epsmtrp1143289d2cfb4e95c35b346e6fff7436f~vye_sFaOE3230832308epsmtrp18; Wed, 28 Aug 2024 04:26:53 +0000 (GMT) X-AuditID: b6c32a33-faa0ca8000002320-9a-66cea70dfc2b Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id AD.60.19367.D07AEC66; Wed, 28 Aug 2024 13:26:53 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.98.171]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240828042653epsmtip1b9d482a9282de689e40f58c0d7bf3a21~vye_eRIu90300603006epsmtip1b; Wed, 28 Aug 2024 04:26:53 +0000 (GMT) From: Seunghwan Baek To: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, ulf.hansson@linaro.org, ritesh.list@gmail.com, quic_asutoshd@quicinc.com, adrian.hunter@intel.com Cc: grant.jung@samsung.com, jt77.jang@samsung.com, junwoo80.lee@samsung.com, dh0421.hwang@samsung.com, jangsub.yi@samsung.com, sh043.lee@samsung.com, cw9316.lee@samsung.com, sh8267.baek@samsung.com, wkon.kim@samsung.com, stable@vger.kernel.org Subject: [PATCH] mmc : fix for check cqe halt. Date: Wed, 28 Aug 2024 13:26:47 +0900 Message-Id: <20240828042647.18983-1-sh8267.baek@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGKsWRmVeSWpSXmKPExsWy7bCmri7v8nNpBjPbTSxOPlnDZjHjVBur xb5rJ9ktfv1dz27RsXUyk8WO52fYLXb9bWayuLxrDpvFkf/9jBYLO+ayWBw81cFu0fRnH4vF tTMnWC0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R1vU4ve/zHhN99U9Wvb/wwlluKMREMt5qLiRADu2PMECQQAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDLMWRmVeSWpSXmKPExsWy7bCSnC7v8nNpBlNny1icfLKGzWLGqTZW i33XTrJb/Pq7nt2iY+tkJosdz8+wW+z628xkcXnXHDaLI//7GS0WdsxlsTh4qoPdounPPhaL a2dOsFos2PiI0eL42nCLzZe+sTgIeOycdZfdY/Gel0wed67tYfOYuKfOo2/LKkaPz5vkAtii uGxSUnMyy1KL9O0SuDL+L+5lLvjAXjH9xEPmBsZDbF2MnBwSAiYSi/ZeZ+9i5OIQEtjOKPFn 4W5miIS0xOMDLxm7GDmAbGGJw4eLIWo+MkqcXL2WFaSGTUBP4lX7YTaQhIjACkaJmcunMoM4 zAKtTBLntrYxgVQJA1XtO9DAAmKzCKhKXGu/AdbNK2AjcXHKG3aIbfISqzccYJ7AyLOAkWEV o2hqQXFuem5ygaFecWJucWleul5yfu4mRnCAagXtYFy2/q/eIUYmDsZDjBIczEoivCeOn00T 4k1JrKxKLcqPLyrNSS0+xCjNwaIkzquc05kiJJCeWJKanZpakFoEk2Xi4JRqYIpr9V7jvPp0 57K4Cy/W1y4Kq321ZvlZyfWcf2Pm9mvW73QR7op5WvhvnuHEC2JWN2Z4droXsV0/xxZ65FBD r7/dKs/yxJLds5XmuKRGHpwj2mF/2JElvEukfr8Fq0D9Ss+iBSs61K9lNOUJcp7RZe+bXPbn dcKz5i1J97btmpf5Mqu1Qn5HuvVZjZnVLiJ/H3PsP1wh1VQQcl43Sn3HfO8uzWNe9sJbnh2U fXfN61WhzBWlyRe+vZyy26/Fz+Eo8xHBeFsHrYrFkia5bVPcj4ZsyVV48iDFfu2d3skKOtEr 507fwSqe3mydfOCCqLLkupbleg8qz129sTsyKmX2RDONXunIRXnG2v27PblMlFiKMxINtZiL ihMBnWYr4L8CAAA= X-CMS-MailID: 20240828042653epcas1p1952b6cee9484b53d86727dd0e041a0b5 X-Msg-Generator: CA CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240828042653epcas1p1952b6cee9484b53d86727dd0e041a0b5 References: Precedence: bulk X-Mailing-List: linux-mmc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: To check if mmc cqe is in halt state, need to check set/clear of CQHCI_HALT bit. At this time, we need to check with &, not &&. Fixes: 0653300224a6 ("mmc: cqhci: rename cqhci.c to cqhci-core.c") Cc: stable@vger.kernel.org Signed-off-by: Seunghwan Baek Reviewed-by: Ritesh Harjani --- drivers/mmc/host/cqhci-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/cqhci-core.c b/drivers/mmc/host/cqhci-core.c index c14d7251d0bb..a02da26a1efd 100644 --- a/drivers/mmc/host/cqhci-core.c +++ b/drivers/mmc/host/cqhci-core.c @@ -617,7 +617,7 @@ static int cqhci_request(struct mmc_host *mmc, struct mmc_request *mrq) cqhci_writel(cq_host, 0, CQHCI_CTL); mmc->cqe_on = true; pr_debug("%s: cqhci: CQE on\n", mmc_hostname(mmc)); - if (cqhci_readl(cq_host, CQHCI_CTL) && CQHCI_HALT) { + if (cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) { pr_err("%s: cqhci: CQE failed to exit halt state\n", mmc_hostname(mmc)); }