summaryrefslogtreecommitdiffstats
path: root/drivers/mci/mci-bcm2835.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-04-14 19:48:54 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-04-17 08:53:25 +0200
commit49d8227c6581d497fa3809c385abb1a791d4ec28 (patch)
tree2a5caf81379caf448d063c10a89747d1fca3a451 /drivers/mci/mci-bcm2835.c
parentdce999a0260437260d390ef0e23c81573a4bcb8d (diff)
downloadbarebox-49d8227c6581d497fa3809c385abb1a791d4ec28.tar.gz
barebox-49d8227c6581d497fa3809c385abb1a791d4ec28.tar.xz
mci: bcm2835: return command timeout silently
Some commands are expected to time out, for example when a non SDIO card is tested for being an SDIO card. Just return -ETIMEDOUT in that case and leave error message prints to the core. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230414174854.1927428-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/mci-bcm2835.c')
-rw-r--r--drivers/mci/mci-bcm2835.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mci/mci-bcm2835.c b/drivers/mci/mci-bcm2835.c
index bcdf1b6196..477a3b83a0 100644
--- a/drivers/mci/mci-bcm2835.c
+++ b/drivers/mci/mci-bcm2835.c
@@ -148,7 +148,7 @@ static int bcm2835_mci_request(struct mci_host *mci, struct mci_cmd *cmd,
command << 16 | transfer_mode);
ret = bcm2835_mci_wait_command_done(host);
- if (ret) {
+ if (ret && ret != -ETIMEDOUT) {
dev_err(host->hw_dev, "Error while executing command %d\n",
cmd->cmdidx);
dev_err(host->hw_dev, "Status: 0x%X, Interrupt: 0x%X\n",