mmc: cqhci: Fix checking of CQHCI_HALT state
authorSeunghwan Baek <sh8267.baek@samsung.com>
Thu, 29 Aug 2024 06:18:22 +0000 (15:18 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 3 Sep 2024 12:20:51 +0000 (14:20 +0200)
commitaea62c744a9ae2a8247c54ec42138405216414da
tree59b8702c4565808338cc4bb9bdd41a696238af32
parent8396c793ffdf28bb8aee7cfe0891080f8cab7890
mmc: cqhci: Fix checking of CQHCI_HALT state

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: a4080225f51d ("mmc: cqhci: support for command queue enabled host")
Cc: stable@vger.kernel.org
Signed-off-by: Seunghwan Baek <sh8267.baek@samsung.com>
Reviewed-by: Ritesh Harjani <ritesh.list@gmail.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20240829061823.3718-2-sh8267.baek@samsung.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/cqhci-core.c