projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e09a81
)
mmc: sd: use HIGH_SPEED_BUS_SPEED in mmc_sd_switch_hs()
author
Jisheng Zhang
<Jisheng.Zhang@synaptics.com>
Fri, 10 Apr 2020 06:57:12 +0000
(14:57 +0800)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Thu, 28 May 2020 09:20:58 +0000
(11:20 +0200)
Use the well defined HIGH_SPEED_BUS_SPEED macro in mmc_sd_switch_hs()
to make code more readable.
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Link:
https://lore.kernel.org/r/20200410145643.630b0731@xhacker.debian
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sd.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/sd.c
b/drivers/mmc/core/sd.c
index
76c7add
..
43de319
100644
(file)
--- a/
drivers/mmc/core/sd.c
+++ b/
drivers/mmc/core/sd.c
@@
-376,11
+376,11
@@
int mmc_sd_switch_hs(struct mmc_card *card)
if (!status)
return -ENOMEM;
- err = mmc_sd_switch(card, 1, 0,
1
, status);
+ err = mmc_sd_switch(card, 1, 0,
HIGH_SPEED_BUS_SPEED
, status);
if (err)
goto out;
- if ((status[16] & 0xF) !=
1
) {
+ if ((status[16] & 0xF) !=
HIGH_SPEED_BUS_SPEED
) {
pr_warn("%s: Problem switching card into high-speed mode!\n",
mmc_hostname(card->host));
err = 0;