Commit 91445d5e authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Ulf Hansson

mmc: mmc_spi: Drop duplicate 'mmc_spi' in the debug messages

dev_dbg() in any case prints the device and driver name, no need
to repeat this in (some) messages. Drop duplicates for good.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210528112127.71738-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent de905475
...@@ -504,7 +504,7 @@ mmc_spi_command_send(struct mmc_spi_host *host, ...@@ -504,7 +504,7 @@ mmc_spi_command_send(struct mmc_spi_host *host,
/* else: R1 (most commands) */ /* else: R1 (most commands) */
} }
dev_dbg(&host->spi->dev, " mmc_spi: CMD%d, resp %s\n", dev_dbg(&host->spi->dev, " CMD%d, resp %s\n",
cmd->opcode, maptype(cmd)); cmd->opcode, maptype(cmd));
/* send command, leaving chipselect active */ /* send command, leaving chipselect active */
...@@ -928,8 +928,7 @@ mmc_spi_data_do(struct mmc_spi_host *host, struct mmc_command *cmd, ...@@ -928,8 +928,7 @@ mmc_spi_data_do(struct mmc_spi_host *host, struct mmc_command *cmd,
while (length) { while (length) {
t->len = min(length, blk_size); t->len = min(length, blk_size);
dev_dbg(&host->spi->dev, dev_dbg(&host->spi->dev, " %s block, %d bytes\n",
" mmc_spi: %s block, %d bytes\n",
(direction == DMA_TO_DEVICE) ? "write" : "read", (direction == DMA_TO_DEVICE) ? "write" : "read",
t->len); t->len);
...@@ -974,7 +973,7 @@ mmc_spi_data_do(struct mmc_spi_host *host, struct mmc_command *cmd, ...@@ -974,7 +973,7 @@ mmc_spi_data_do(struct mmc_spi_host *host, struct mmc_command *cmd,
int tmp; int tmp;
const unsigned statlen = sizeof(scratch->status); const unsigned statlen = sizeof(scratch->status);
dev_dbg(&spi->dev, " mmc_spi: STOP_TRAN\n"); dev_dbg(&spi->dev, " STOP_TRAN\n");
/* Tweak the per-block message we set up earlier by morphing /* Tweak the per-block message we set up earlier by morphing
* it to hold single buffer with the token followed by some * it to hold single buffer with the token followed by some
...@@ -1175,7 +1174,7 @@ static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) ...@@ -1175,7 +1174,7 @@ static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
canpower = host->pdata && host->pdata->setpower; canpower = host->pdata && host->pdata->setpower;
dev_dbg(&host->spi->dev, "mmc_spi: power %s (%d)%s\n", dev_dbg(&host->spi->dev, "power %s (%d)%s\n",
mmc_powerstring(ios->power_mode), mmc_powerstring(ios->power_mode),
ios->vdd, ios->vdd,
canpower ? ", can switch" : ""); canpower ? ", can switch" : "");
...@@ -1248,8 +1247,7 @@ static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) ...@@ -1248,8 +1247,7 @@ static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
host->spi->max_speed_hz = ios->clock; host->spi->max_speed_hz = ios->clock;
status = spi_setup(host->spi); status = spi_setup(host->spi);
dev_dbg(&host->spi->dev, dev_dbg(&host->spi->dev, " clock to %d Hz, %d\n",
"mmc_spi: clock to %d Hz, %d\n",
host->spi->max_speed_hz, status); host->spi->max_speed_hz, status);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment