aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/cqhci-core.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2021-11-01 14:49:20 -0300
committerJason Gunthorpe <jgg@nvidia.com>2021-11-01 14:49:20 -0300
commita2a2a69d144d66e0c36697da062b3949e3c2c870 (patch)
tree3849e66b693137506434a1a8f579963c626e33b6 /drivers/mmc/host/cqhci-core.c
parentRDMA/irdma: optimize rx path by removing unnecessary copy (diff)
parentLinux 5.15 (diff)
downloadlinux-dev-a2a2a69d144d66e0c36697da062b3949e3c2c870.tar.xz
linux-dev-a2a2a69d144d66e0c36697da062b3949e3c2c870.zip
Merge tag 'v5.15' into rdma.git for-next
Pull in the accepted for-rc patches as the next merge needs a newer base. Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/mmc/host/cqhci-core.c')
-rw-r--r--drivers/mmc/host/cqhci-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/cqhci-core.c b/drivers/mmc/host/cqhci-core.c
index 38559a956330..31f841231609 100644
--- a/drivers/mmc/host/cqhci-core.c
+++ b/drivers/mmc/host/cqhci-core.c
@@ -282,6 +282,9 @@ static void __cqhci_enable(struct cqhci_host *cq_host)
cqhci_writel(cq_host, cqcfg, CQHCI_CFG);
+ if (cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT)
+ cqhci_writel(cq_host, 0, CQHCI_CTL);
+
mmc->cqe_on = true;
if (cq_host->ops->enable)