Skip to content

Commit e427266

Browse files
ChanWoo LeeUlf Hansson
authored andcommitted
mmc: core: Replace with already defined values for readability
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>
1 parent f3daa7e commit e427266

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/mmc/core

drivers/mmc/core/sd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr)
870870
* the CCS bit is set as well. We deliberately deviate from the spec in
871871
* regards to this, which allows UHS-I to be supported for SDSC cards.
872872
*/
873-
if (!mmc_host_is_spi(host) && rocr && (*rocr & 0x01000000)) {
873+
if (!mmc_host_is_spi(host) && rocr && (*rocr & SD_ROCR_S18A)) {
874874
err = mmc_set_uhs_voltage(host, pocr);
875875
if (err == -EAGAIN) {
876876
retries--;

0 commit comments

Comments
 (0)