summaryrefslogtreecommitdiffstats
path: root/include/mci.h
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 /include/mci.h
parentc9c58efe41b4cdd0633c86064e7059225fbdd7fd (diff)
downloadbarebox-2f9b25f41362e99e2b31684b5c9a1a02abc1ae8b.tar.gz
barebox-2f9b25f41362e99e2b31684b5c9a1a02abc1ae8b.tar.xz
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 'include/mci.h')
-rw-r--r--include/mci.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/mci.h b/include/mci.h
index 1f6533391a..072008ef9d 100644
--- a/include/mci.h
+++ b/include/mci.h
@@ -478,8 +478,7 @@ void mci_of_parse(struct mci_host *host);
void mci_of_parse_node(struct mci_host *host, struct device_node *np);
int mci_detect_card(struct mci_host *);
int mci_send_ext_csd(struct mci *mci, char *ext_csd);
-int mci_switch(struct mci *mci, unsigned set, unsigned index,
- unsigned value);
+int mci_switch(struct mci *mci, unsigned index, unsigned value);
static inline int mmc_host_is_spi(struct mci_host *host)
{