Skip to content
Commit ef767907 authored by Sebastian Falbesoner's avatar Sebastian Falbesoner Committed by Greg Kroah-Hartman
Browse files

mmc: sdhci-esdhc-imx: correct CQHCI exit halt state check

commit a3cab1d2 upstream.

With the current logic the "failed to exit halt state" error would be
shown even if any other bit than CQHCI_HALT was set in the CQHCI_CTL
register, since the right hand side is always true. Fix this by using
the correct operator (bit-wise instead of logical AND) to only check for
the halt bit flag, which was obviously intended here.

Fixes: 85236d2b

 ("mmc: sdhci-esdhc-imx: clear the HALT bit when enable CQE")
Signed-off-by: default avatarSebastian Falbesoner <sebastian.falbesoner@gmail.com>
Acked-by: default avatarHaibo Chen <haibo.chen@nxp.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20221121105721.1903878-1-sebastian.falbesoner@gmail.com
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 46ee041c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment