|
44 | 44 | #include <linux/scatterlist.h>
|
45 | 45 | #include <linux/time.h>
|
46 | 46 | #include <linux/workqueue.h>
|
| 47 | +#include <linux/string_choices.h> |
47 | 48 |
|
48 | 49 | #include <linux/mmc/host.h>
|
49 | 50 | #include <linux/mmc/mmc.h>
|
@@ -391,8 +392,7 @@ static void bcm2835_transfer_block_pio(struct bcm2835_host *host, bool is_read)
|
391 | 392 |
|
392 | 393 | if (time_after(jiffies, wait_max)) {
|
393 | 394 | dev_err(dev, "PIO %s timeout - EDM %08x\n",
|
394 |
| - is_read ? "read" : "write", |
395 |
| - edm); |
| 395 | + str_read_write(is_read), edm); |
396 | 396 | hsts = SDHSTS_REW_TIME_OUT;
|
397 | 397 | break;
|
398 | 398 | }
|
@@ -435,12 +435,12 @@ static void bcm2835_transfer_pio(struct bcm2835_host *host)
|
435 | 435 | SDHSTS_CRC7_ERROR |
|
436 | 436 | SDHSTS_FIFO_ERROR)) {
|
437 | 437 | dev_err(dev, "%s transfer error - HSTS %08x\n",
|
438 |
| - is_read ? "read" : "write", sdhsts); |
| 438 | + str_read_write(is_read), sdhsts); |
439 | 439 | host->data->error = -EILSEQ;
|
440 | 440 | } else if ((sdhsts & (SDHSTS_CMD_TIME_OUT |
|
441 | 441 | SDHSTS_REW_TIME_OUT))) {
|
442 | 442 | dev_err(dev, "%s timeout error - HSTS %08x\n",
|
443 |
| - is_read ? "read" : "write", sdhsts); |
| 443 | + str_read_write(is_read), sdhsts); |
444 | 444 | host->data->error = -ETIMEDOUT;
|
445 | 445 | }
|
446 | 446 | }
|
|
0 commit comments