mmc: cqhci: Fix checking of CQHCI_HALT state
Subsystems (2)
PATCH 1/1 mmc: cqhci: Fix checking of CQHCI_HALT state
From: Seunghwan Baek <[email protected]>
commit aea62c744a9ae2a8247c54ec42138405216414da upstream
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 &&.
--- drivers/mmc/host/cqhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/cqhci.c +1 -1
@@ -580,7 +580,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)); }
Signature · 1 line
2.43.0
[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected. No action required from the submitter.
The upstream commit SHA1 provided is correct: aea62c744a9ae2a8247c54ec42138405216414da
WARNING: Author mismatch between patch and upstream commit:
Backport author: Kamal Dasu<[email protected]> Commit author: Seunghwan Baek<[email protected]>
Status in newer kernel trees:
6.13.y | Present (exact SHA1)
6.12.y | Present (exact SHA1)
6.6.y | Present (different SHA1: a7fa220ebb41) 6.1.y | Present (different SHA1: ae7b2bd3d458) 5.15.y | Present (different SHA1: c0f43b1f1f7d) 5.10.y | Present (different SHA1: c6bd80f58522)
Note: The patch differs from the upstream commit:
---
1: aea62c744a9ae ! 1: e62d1070a5f40 mmc: cqhci: Fix checking of CQHCI_HALT state
@@ Metadata
## Commit message ##
mmc: cqhci: Fix checking of CQHCI_HALT state
+ commit aea62c744a9ae2a8247c54ec42138405216414da upstream
+
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 &&.
@@ Commit message
+ Signed-off-by: Greg Kroah-Hartman <[email protected]>
+ Signed-off-by: Kamal Dasu <[email protected]>
- ## drivers/mmc/host/cqhci-core.c ##
-@@ drivers/mmc/host/cqhci-core.c: static int cqhci_request(struct mmc_host *mmc, struct mmc_request *mrq)
+ ## drivers/mmc/host/cqhci.c ##
+@@ drivers/mmc/host/cqhci.c: 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));
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-5.4.y | Success | Success |