summaryrefslogtreecommitdiffstats
path: root/commands/mmc_extcsd.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2018-01-19 14:28:24 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-01-22 09:48:54 +0100
commit2f9b25f41362e99e2b31684b5c9a1a02abc1ae8b (patch)
treefda5e45abec2c1dab3244c3b45edf245f481d6f5 /commands/mmc_extcsd.c
parentc9c58efe41b4cdd0633c86064e7059225fbdd7fd (diff)
downloadbarebox-2f9b25f41362e99e2b31684b5c9a1a02abc1ae8b.tar.gz
mci: drop unused parameter from mci_switch()
The SWITCH command has two purposes: a) switch the command set b) Write to the EXT_CSD register If the access field (bits [25:24]) in the argument are b00, we're in case a), otherwise in b). As mci_switch() always passes MMC_SWITCH_MODE_WRITE_BYTE (0b3) in the access field, only case b) is relevant here. According to the eMMC specification[1] the command set field is ignored in case b) and so the respective parameter (that is unused already now) can be dropped. [1] Embedded Multi-Media Card (e•MMC) Electrical Standard (5.1), February 2015; paragraph 6.6.1 Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/mmc_extcsd.c')
-rw-r--r--commands/mmc_extcsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/mmc_extcsd.c b/commands/mmc_extcsd.c
index 7a6d390..acd23a4 100644
--- a/commands/mmc_extcsd.c
+++ b/commands/mmc_extcsd.c
@@ -2357,7 +2357,7 @@ static void write_field(struct mci *mci, u8 *reg, u16 index, u8 value,
break;
}
- mci_switch(mci, 0, index, value);
+ mci_switch(mci, index, value);
out:
return;