> > > > 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 &&. > > Therefore, code to check whether cqe is in halt state is modified to > > cqhci_halted, which has already been implemented. > > > > Signed-off-by: Seunghwan Baek <sh8267.baek@xxxxxxxxxxx> > > Hi Seunghwan, > > Please re-post to include some additional and needed maintainers. > ./scripts/get_maintainer.pl drivers/mmc/host/cqhci-core.c should give you > the needed information. > > Kind regards > Uffe Okay. I will send v2 patch. Thanks. > > > --- > > drivers/mmc/host/cqhci-core.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/mmc/host/cqhci-core.c > > b/drivers/mmc/host/cqhci-core.c index c14d7251d0bb..3d5bcb92c78e > > 100644 > > --- a/drivers/mmc/host/cqhci-core.c > > +++ b/drivers/mmc/host/cqhci-core.c > > @@ -282,7 +282,7 @@ 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) > > + if (cqhci_halted(cq_host)) > > cqhci_writel(cq_host, 0, CQHCI_CTL); > > > > mmc->cqe_on = true; > > @@ -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_halted(cq_host)) { > > pr_err("%s: cqhci: CQE failed to exit halt state\n", > > mmc_hostname(mmc)); > > } > > -- > > 2.17.1 > >