summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChanWoo Lee <cw9316.lee@samsung.com>2022-07-06 09:48:40 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-10-12 09:53:28 +0200
commit9635e05e015a6762a6dfa6e59d64080e9773e1a6 (patch)
treebfb5d8ffd101476e6c3dd1cc2e75afaf8eb5da94
parentf2af62d909adb14105443d33914c703b71c775c2 (diff)
downloadlinux-stable-9635e05e015a6762a6dfa6e59d64080e9773e1a6.tar.gz
linux-stable-9635e05e015a6762a6dfa6e59d64080e9773e1a6.tar.bz2
linux-stable-9635e05e015a6762a6dfa6e59d64080e9773e1a6.zip
mmc: core: Replace with already defined values for readability
[ Upstream commit e427266460826bea21b70f9b2bb29decfb2c2620 ] SD_ROCR_S18A is already defined and is used to check the rocr value, so let's replace with already defined values for readability. Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20220706004840.24812-1-cw9316.lee@samsung.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Stable-dep-of: e9233917a7e5 ("mmc: core: Terminate infinite loop in SD-UHS voltage switch") Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/mmc/core/sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index 7e8d4abed602..eaa2679b9466 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -863,7 +863,7 @@ try_again:
* the CCS bit is set as well. We deliberately deviate from the spec in
* regards to this, which allows UHS-I to be supported for SDSC cards.
*/
- if (!mmc_host_is_spi(host) && rocr && (*rocr & 0x01000000)) {
+ if (!mmc_host_is_spi(host) && rocr && (*rocr & SD_ROCR_S18A)) {
err = mmc_set_uhs_voltage(host, pocr);
if (err == -EAGAIN) {
retries--;