diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-04-02 04:37:38 -0400 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-04-02 04:37:38 -0400 |
commit | 733f896927c955a114bf265993c1535c4b057a0f (patch) | |
tree | 724f37e10d3bd10e8162228cee4f908b52b7108d /drivers/mmc/au1xmmc.c | |
parent | 409ca8c8ae3173026e7dfbdcdab669766e43fb60 (diff) | |
parent | 683aa4012f53b2ada0f430487e05d37b0d94e90a (diff) |
Merge with git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'drivers/mmc/au1xmmc.c')
-rw-r--r-- | drivers/mmc/au1xmmc.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/mmc/au1xmmc.c b/drivers/mmc/au1xmmc.c index 85e89c77bdea..c0326bbc5f28 100644 --- a/drivers/mmc/au1xmmc.c +++ b/drivers/mmc/au1xmmc.c | |||
@@ -56,12 +56,11 @@ | |||
56 | #define DRIVER_NAME "au1xxx-mmc" | 56 | #define DRIVER_NAME "au1xxx-mmc" |
57 | 57 | ||
58 | /* Set this to enable special debugging macros */ | 58 | /* Set this to enable special debugging macros */ |
59 | /* #define MMC_DEBUG */ | ||
60 | 59 | ||
61 | #ifdef MMC_DEBUG | 60 | #ifdef DEBUG |
62 | #define DEBUG(fmt, idx, args...) printk("au1xx(%d): DEBUG: " fmt, idx, ##args) | 61 | #define DBG(fmt, idx, args...) printk("au1xx(%d): DEBUG: " fmt, idx, ##args) |
63 | #else | 62 | #else |
64 | #define DEBUG(fmt, idx, args...) | 63 | #define DBG(fmt, idx, args...) |
65 | #endif | 64 | #endif |
66 | 65 | ||
67 | const struct { | 66 | const struct { |
@@ -424,18 +423,18 @@ static void au1xmmc_receive_pio(struct au1xmmc_host *host) | |||
424 | break; | 423 | break; |
425 | 424 | ||
426 | if (status & SD_STATUS_RC) { | 425 | if (status & SD_STATUS_RC) { |
427 | DEBUG("RX CRC Error [%d + %d].\n", host->id, | 426 | DBG("RX CRC Error [%d + %d].\n", host->id, |
428 | host->pio.len, count); | 427 | host->pio.len, count); |
429 | break; | 428 | break; |
430 | } | 429 | } |
431 | 430 | ||
432 | if (status & SD_STATUS_RO) { | 431 | if (status & SD_STATUS_RO) { |
433 | DEBUG("RX Overrun [%d + %d]\n", host->id, | 432 | DBG("RX Overrun [%d + %d]\n", host->id, |
434 | host->pio.len, count); | 433 | host->pio.len, count); |
435 | break; | 434 | break; |
436 | } | 435 | } |
437 | else if (status & SD_STATUS_RU) { | 436 | else if (status & SD_STATUS_RU) { |
438 | DEBUG("RX Underrun [%d + %d]\n", host->id, | 437 | DBG("RX Underrun [%d + %d]\n", host->id, |
439 | host->pio.len, count); | 438 | host->pio.len, count); |
440 | break; | 439 | break; |
441 | } | 440 | } |
@@ -721,7 +720,7 @@ static void au1xmmc_set_ios(struct mmc_host* mmc, struct mmc_ios* ios) | |||
721 | { | 720 | { |
722 | struct au1xmmc_host *host = mmc_priv(mmc); | 721 | struct au1xmmc_host *host = mmc_priv(mmc); |
723 | 722 | ||
724 | DEBUG("set_ios (power=%u, clock=%uHz, vdd=%u, mode=%u)\n", | 723 | DBG("set_ios (power=%u, clock=%uHz, vdd=%u, mode=%u)\n", |
725 | host->id, ios->power_mode, ios->clock, ios->vdd, | 724 | host->id, ios->power_mode, ios->clock, ios->vdd, |
726 | ios->bus_mode); | 725 | ios->bus_mode); |
727 | 726 | ||
@@ -810,7 +809,7 @@ static irqreturn_t au1xmmc_irq(int irq, void *dev_id, struct pt_regs *regs) | |||
810 | au1xmmc_receive_pio(host); | 809 | au1xmmc_receive_pio(host); |
811 | } | 810 | } |
812 | else if (status & 0x203FBC70) { | 811 | else if (status & 0x203FBC70) { |
813 | DEBUG("Unhandled status %8.8x\n", host->id, status); | 812 | DBG("Unhandled status %8.8x\n", host->id, status); |
814 | handled = 0; | 813 | handled = 0; |
815 | } | 814 | } |
816 | 815 | ||
@@ -839,7 +838,7 @@ static void au1xmmc_poll_event(unsigned long arg) | |||
839 | 838 | ||
840 | if (host->mrq != NULL) { | 839 | if (host->mrq != NULL) { |
841 | u32 status = au_readl(HOST_STATUS(host)); | 840 | u32 status = au_readl(HOST_STATUS(host)); |
842 | DEBUG("PENDING - %8.8x\n", host->id, status); | 841 | DBG("PENDING - %8.8x\n", host->id, status); |
843 | } | 842 | } |
844 | 843 | ||
845 | mod_timer(&host->timer, jiffies + AU1XMMC_DETECT_TIMEOUT); | 844 | mod_timer(&host->timer, jiffies + AU1XMMC_DETECT_TIMEOUT); |