projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4699ae7
)
mmc: core: Replace with already defined values for readability
author
ChanWoo Lee
<cw9316.lee@samsung.com>
Wed, 6 Jul 2022 00:48:40 +0000
(09:48 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:16:52 +0000
(13:16 +0200)
commit
e427266460826bea21b70f9b2bb29decfb2c2620
upstream.
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>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/sd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/core/sd.c
b/drivers/mmc/core/sd.c
index 942dc358b9fd78ff2498b74dc5e0bd6dae8d30f0..62e60b5ef8c7ab363f5cb3a16fff912a5fe7a685 100644
(file)
--- a/
drivers/mmc/core/sd.c
+++ b/
drivers/mmc/core/sd.c
@@
-793,7
+793,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--;