Commit 6606110d authored by Joe Perches's avatar Joe Perches Committed by Ulf Hansson

mmc: Convert pr_warning to pr_warn

Use the much more common pr_warn instead of pr_warning.

Other miscellanea:

o Coalesce formats
o Realign arguments
o Remove extra spaces when coalescing formats
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 48d11e06
...@@ -1928,8 +1928,8 @@ static int mmc_blk_issue_rw_rq(struct mmc_queue *mq, struct request *rqc) ...@@ -1928,8 +1928,8 @@ static int mmc_blk_issue_rw_rq(struct mmc_queue *mq, struct request *rqc)
case MMC_BLK_ECC_ERR: case MMC_BLK_ECC_ERR:
if (brq->data.blocks > 1) { if (brq->data.blocks > 1) {
/* Redo read one sector at a time */ /* Redo read one sector at a time */
pr_warning("%s: retrying using single block read\n", pr_warn("%s: retrying using single block read\n",
req->rq_disk->disk_name); req->rq_disk->disk_name);
disable_multi = 1; disable_multi = 1;
break; break;
} }
......
...@@ -229,14 +229,12 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, ...@@ -229,14 +229,12 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card,
if (bouncesz > 512) { if (bouncesz > 512) {
mqrq_cur->bounce_buf = kmalloc(bouncesz, GFP_KERNEL); mqrq_cur->bounce_buf = kmalloc(bouncesz, GFP_KERNEL);
if (!mqrq_cur->bounce_buf) { if (!mqrq_cur->bounce_buf) {
pr_warning("%s: unable to " pr_warn("%s: unable to allocate bounce cur buffer\n",
"allocate bounce cur buffer\n",
mmc_card_name(card)); mmc_card_name(card));
} }
mqrq_prev->bounce_buf = kmalloc(bouncesz, GFP_KERNEL); mqrq_prev->bounce_buf = kmalloc(bouncesz, GFP_KERNEL);
if (!mqrq_prev->bounce_buf) { if (!mqrq_prev->bounce_buf) {
pr_warning("%s: unable to " pr_warn("%s: unable to allocate bounce prev buffer\n",
"allocate bounce prev buffer\n",
mmc_card_name(card)); mmc_card_name(card));
kfree(mqrq_cur->bounce_buf); kfree(mqrq_cur->bounce_buf);
mqrq_cur->bounce_buf = NULL; mqrq_cur->bounce_buf = NULL;
......
...@@ -1063,8 +1063,8 @@ static int sdio_uart_probe(struct sdio_func *func, ...@@ -1063,8 +1063,8 @@ static int sdio_uart_probe(struct sdio_func *func,
return -ENOMEM; return -ENOMEM;
if (func->class == SDIO_CLASS_UART) { if (func->class == SDIO_CLASS_UART) {
pr_warning("%s: need info on UART class basic setup\n", pr_warn("%s: need info on UART class basic setup\n",
sdio_func_id(func)); sdio_func_id(func));
kfree(port); kfree(port);
return -ENOSYS; return -ENOSYS;
} else if (func->class == SDIO_CLASS_GPS) { } else if (func->class == SDIO_CLASS_GPS) {
...@@ -1082,9 +1082,8 @@ static int sdio_uart_probe(struct sdio_func *func, ...@@ -1082,9 +1082,8 @@ static int sdio_uart_probe(struct sdio_func *func,
break; break;
} }
if (!tpl) { if (!tpl) {
pr_warning( pr_warn("%s: can't find tuple 0x91 subtuple 0 (SUBTPL_SIOREG) for GPS class\n",
"%s: can't find tuple 0x91 subtuple 0 (SUBTPL_SIOREG) for GPS class\n", sdio_func_id(func));
sdio_func_id(func));
kfree(port); kfree(port);
return -EINVAL; return -EINVAL;
} }
......
...@@ -433,8 +433,8 @@ static void mmc_wait_for_req_done(struct mmc_host *host, ...@@ -433,8 +433,8 @@ static void mmc_wait_for_req_done(struct mmc_host *host,
*/ */
if (cmd->sanitize_busy && cmd->error == -ETIMEDOUT) { if (cmd->sanitize_busy && cmd->error == -ETIMEDOUT) {
if (!mmc_interrupt_hpi(host->card)) { if (!mmc_interrupt_hpi(host->card)) {
pr_warning("%s: %s: Interrupted sanitize\n", pr_warn("%s: %s: Interrupted sanitize\n",
mmc_hostname(host), __func__); mmc_hostname(host), __func__);
cmd->error = 0; cmd->error = 0;
break; break;
} else { } else {
...@@ -1417,8 +1417,8 @@ int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage, u32 ocr) ...@@ -1417,8 +1417,8 @@ int mmc_set_signal_voltage(struct mmc_host *host, int signal_voltage, u32 ocr)
if (!host->ops->start_signal_voltage_switch) if (!host->ops->start_signal_voltage_switch)
return -EPERM; return -EPERM;
if (!host->ops->card_busy) if (!host->ops->card_busy)
pr_warning("%s: cannot verify signal voltage switch\n", pr_warn("%s: cannot verify signal voltage switch\n",
mmc_hostname(host)); mmc_hostname(host));
cmd.opcode = SD_SWITCH_VOLTAGE; cmd.opcode = SD_SWITCH_VOLTAGE;
cmd.arg = 0; cmd.arg = 0;
......
...@@ -226,9 +226,7 @@ static int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd) ...@@ -226,9 +226,7 @@ static int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd)
"Card will be ignored.\n", "Card will be ignored.\n",
mmc_hostname(card->host)); mmc_hostname(card->host));
} else { } else {
pr_warning("%s: unable to read " pr_warn("%s: unable to read EXT_CSD, performance might suffer\n",
"EXT_CSD, performance might "
"suffer.\n",
mmc_hostname(card->host)); mmc_hostname(card->host));
err = 0; err = 0;
} }
...@@ -816,8 +814,8 @@ static int __mmc_select_powerclass(struct mmc_card *card, ...@@ -816,8 +814,8 @@ static int __mmc_select_powerclass(struct mmc_card *card,
ext_csd->raw_pwr_cl_200_360; ext_csd->raw_pwr_cl_200_360;
break; break;
default: default:
pr_warning("%s: Voltage range not supported " pr_warn("%s: Voltage range not supported for power class\n",
"for power class.\n", mmc_hostname(host)); mmc_hostname(host));
return -EINVAL; return -EINVAL;
} }
...@@ -1490,8 +1488,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, ...@@ -1490,8 +1488,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
if (err && err != -EBADMSG) if (err && err != -EBADMSG)
goto free_card; goto free_card;
if (err) { if (err) {
pr_warning("%s: Enabling HPI failed\n", pr_warn("%s: Enabling HPI failed\n",
mmc_hostname(card->host)); mmc_hostname(card->host));
err = 0; err = 0;
} else } else
card->ext_csd.hpi_en = 1; card->ext_csd.hpi_en = 1;
...@@ -1512,9 +1510,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, ...@@ -1512,9 +1510,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
* Only if no error, cache is turned on successfully. * Only if no error, cache is turned on successfully.
*/ */
if (err) { if (err) {
pr_warning("%s: Cache is supported, " pr_warn("%s: Cache is supported, but failed to turn on (%d)\n",
"but failed to turn on (%d)\n", mmc_hostname(card->host), err);
mmc_hostname(card->host), err);
card->ext_csd.cache_ctrl = 0; card->ext_csd.cache_ctrl = 0;
err = 0; err = 0;
} else { } else {
......
...@@ -649,8 +649,8 @@ int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status) ...@@ -649,8 +649,8 @@ int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status)
int err; int err;
if (!card->ext_csd.hpi) { if (!card->ext_csd.hpi) {
pr_warning("%s: Card didn't support HPI command\n", pr_warn("%s: Card didn't support HPI command\n",
mmc_hostname(card->host)); mmc_hostname(card->host));
return -EINVAL; return -EINVAL;
} }
......
...@@ -229,8 +229,8 @@ static int mmc_read_ssr(struct mmc_card *card) ...@@ -229,8 +229,8 @@ static int mmc_read_ssr(struct mmc_card *card)
u32 *ssr; u32 *ssr;
if (!(card->csd.cmdclass & CCC_APP_SPEC)) { if (!(card->csd.cmdclass & CCC_APP_SPEC)) {
pr_warning("%s: card lacks mandatory SD Status " pr_warn("%s: card lacks mandatory SD Status function\n",
"function.\n", mmc_hostname(card->host)); mmc_hostname(card->host));
return 0; return 0;
} }
...@@ -240,8 +240,8 @@ static int mmc_read_ssr(struct mmc_card *card) ...@@ -240,8 +240,8 @@ static int mmc_read_ssr(struct mmc_card *card)
err = mmc_app_sd_status(card, ssr); err = mmc_app_sd_status(card, ssr);
if (err) { if (err) {
pr_warning("%s: problem reading SD Status " pr_warn("%s: problem reading SD Status register\n",
"register.\n", mmc_hostname(card->host)); mmc_hostname(card->host));
err = 0; err = 0;
goto out; goto out;
} }
...@@ -265,8 +265,8 @@ static int mmc_read_ssr(struct mmc_card *card) ...@@ -265,8 +265,8 @@ static int mmc_read_ssr(struct mmc_card *card)
card->ssr.erase_offset = eo * 1000; card->ssr.erase_offset = eo * 1000;
} }
} else { } else {
pr_warning("%s: SD Status: Invalid Allocation Unit size.\n", pr_warn("%s: SD Status: Invalid Allocation Unit size\n",
mmc_hostname(card->host)); mmc_hostname(card->host));
} }
} }
out: out:
...@@ -286,8 +286,7 @@ static int mmc_read_switch(struct mmc_card *card) ...@@ -286,8 +286,7 @@ static int mmc_read_switch(struct mmc_card *card)
return 0; return 0;
if (!(card->csd.cmdclass & CCC_SWITCH)) { if (!(card->csd.cmdclass & CCC_SWITCH)) {
pr_warning("%s: card lacks mandatory switch " pr_warn("%s: card lacks mandatory switch function, performance might suffer\n",
"function, performance might suffer.\n",
mmc_hostname(card->host)); mmc_hostname(card->host));
return 0; return 0;
} }
...@@ -316,7 +315,7 @@ static int mmc_read_switch(struct mmc_card *card) ...@@ -316,7 +315,7 @@ static int mmc_read_switch(struct mmc_card *card)
if (err != -EINVAL && err != -ENOSYS && err != -EFAULT) if (err != -EINVAL && err != -ENOSYS && err != -EFAULT)
goto out; goto out;
pr_warning("%s: problem reading Bus Speed modes.\n", pr_warn("%s: problem reading Bus Speed modes\n",
mmc_hostname(card->host)); mmc_hostname(card->host));
err = 0; err = 0;
...@@ -372,8 +371,7 @@ int mmc_sd_switch_hs(struct mmc_card *card) ...@@ -372,8 +371,7 @@ int mmc_sd_switch_hs(struct mmc_card *card)
goto out; goto out;
if ((status[16] & 0xF) != 1) { if ((status[16] & 0xF) != 1) {
pr_warning("%s: Problem switching card " pr_warn("%s: Problem switching card into high-speed mode!\n",
"into high-speed mode!\n",
mmc_hostname(card->host)); mmc_hostname(card->host));
err = 0; err = 0;
} else { } else {
...@@ -440,7 +438,7 @@ static int sd_select_driver_type(struct mmc_card *card, u8 *status) ...@@ -440,7 +438,7 @@ static int sd_select_driver_type(struct mmc_card *card, u8 *status)
return err; return err;
if ((status[15] & 0xF) != drive_strength) { if ((status[15] & 0xF) != drive_strength) {
pr_warning("%s: Problem setting drive strength!\n", pr_warn("%s: Problem setting drive strength!\n",
mmc_hostname(card->host)); mmc_hostname(card->host));
return 0; return 0;
} }
...@@ -518,7 +516,7 @@ static int sd_set_bus_speed_mode(struct mmc_card *card, u8 *status) ...@@ -518,7 +516,7 @@ static int sd_set_bus_speed_mode(struct mmc_card *card, u8 *status)
return err; return err;
if ((status[16] & 0xF) != card->sd_bus_speed) if ((status[16] & 0xF) != card->sd_bus_speed)
pr_warning("%s: Problem setting bus speed mode!\n", pr_warn("%s: Problem setting bus speed mode!\n",
mmc_hostname(card->host)); mmc_hostname(card->host));
else { else {
mmc_set_timing(card->host, timing); mmc_set_timing(card->host, timing);
...@@ -598,7 +596,7 @@ static int sd_set_current_limit(struct mmc_card *card, u8 *status) ...@@ -598,7 +596,7 @@ static int sd_set_current_limit(struct mmc_card *card, u8 *status)
return err; return err;
if (((status[15] >> 4) & 0x0F) != current_limit) if (((status[15] >> 4) & 0x0F) != current_limit)
pr_warning("%s: Problem setting current limit!\n", pr_warn("%s: Problem setting current limit!\n",
mmc_hostname(card->host)); mmc_hostname(card->host));
} }
...@@ -727,8 +725,7 @@ int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr) ...@@ -727,8 +725,7 @@ int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr)
try_again: try_again:
if (!retries) { if (!retries) {
ocr &= ~SD_OCR_S18R; ocr &= ~SD_OCR_S18R;
pr_warning("%s: Skipping voltage switch\n", pr_warn("%s: Skipping voltage switch\n", mmc_hostname(host));
mmc_hostname(host));
} }
/* /*
...@@ -872,9 +869,7 @@ int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card, ...@@ -872,9 +869,7 @@ int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card,
} }
if (ro < 0) { if (ro < 0) {
pr_warning("%s: host does not " pr_warn("%s: host does not support reading read-only switch, assuming write-enable\n",
"support reading read-only "
"switch. assuming write-enable.\n",
mmc_hostname(host)); mmc_hostname(host));
} else if (ro > 0) { } else if (ro > 0) {
mmc_card_set_readonly(card); mmc_card_set_readonly(card);
......
...@@ -216,8 +216,8 @@ static int sdio_enable_wide(struct mmc_card *card) ...@@ -216,8 +216,8 @@ static int sdio_enable_wide(struct mmc_card *card)
return ret; return ret;
if ((ctrl & SDIO_BUS_WIDTH_MASK) == SDIO_BUS_WIDTH_RESERVED) if ((ctrl & SDIO_BUS_WIDTH_MASK) == SDIO_BUS_WIDTH_RESERVED)
pr_warning("%s: SDIO_CCCR_IF is invalid: 0x%02x\n", pr_warn("%s: SDIO_CCCR_IF is invalid: 0x%02x\n",
mmc_hostname(card->host), ctrl); mmc_hostname(card->host), ctrl);
/* set as 4-bit bus width */ /* set as 4-bit bus width */
ctrl &= ~SDIO_BUS_WIDTH_MASK; ctrl &= ~SDIO_BUS_WIDTH_MASK;
...@@ -605,8 +605,7 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr, ...@@ -605,8 +605,7 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,
try_again: try_again:
if (!retries) { if (!retries) {
pr_warning("%s: Skipping voltage switch\n", pr_warn("%s: Skipping voltage switch\n", mmc_hostname(host));
mmc_hostname(host));
ocr &= ~R4_18V_PRESENT; ocr &= ~R4_18V_PRESENT;
} }
......
...@@ -177,8 +177,8 @@ static int sdio_bus_remove(struct device *dev) ...@@ -177,8 +177,8 @@ static int sdio_bus_remove(struct device *dev)
drv->remove(func); drv->remove(func);
if (func->irq_handler) { if (func->irq_handler) {
pr_warning("WARNING: driver %s did not remove " pr_warn("WARNING: driver %s did not remove its interrupt handler!\n",
"its interrupt handler!\n", drv->name); drv->name);
sdio_claim_host(func); sdio_claim_host(func);
sdio_release_irq(func); sdio_release_irq(func);
sdio_release_host(func); sdio_release_host(func);
......
...@@ -69,16 +69,15 @@ static int process_sdio_pending_irqs(struct mmc_host *host) ...@@ -69,16 +69,15 @@ static int process_sdio_pending_irqs(struct mmc_host *host)
if (pending & (1 << i)) { if (pending & (1 << i)) {
func = card->sdio_func[i - 1]; func = card->sdio_func[i - 1];
if (!func) { if (!func) {
pr_warning("%s: pending IRQ for " pr_warn("%s: pending IRQ for non-existent function\n",
"non-existent function\n",
mmc_card_id(card)); mmc_card_id(card));
ret = -EINVAL; ret = -EINVAL;
} else if (func->irq_handler) { } else if (func->irq_handler) {
func->irq_handler(func); func->irq_handler(func);
count++; count++;
} else { } else {
pr_warning("%s: pending IRQ with no handler\n", pr_warn("%s: pending IRQ with no handler\n",
sdio_func_id(func)); sdio_func_id(func));
ret = -EINVAL; ret = -EINVAL;
} }
} }
......
...@@ -985,7 +985,8 @@ static int s3cmci_setup_data(struct s3cmci_host *host, struct mmc_data *data) ...@@ -985,7 +985,8 @@ static int s3cmci_setup_data(struct s3cmci_host *host, struct mmc_data *data)
* one block being transferred. */ * one block being transferred. */
if (data->blocks > 1) { if (data->blocks > 1) {
pr_warning("%s: can't do non-word sized block transfers (blksz %d)\n", __func__, data->blksz); pr_warn("%s: can't do non-word sized block transfers (blksz %d)\n",
__func__, data->blksz);
return -EINVAL; return -EINVAL;
} }
} }
......
...@@ -1754,8 +1754,8 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host, ...@@ -1754,8 +1754,8 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host,
ret = regulator_set_voltage(mmc->supply.vqmmc, 2700000, ret = regulator_set_voltage(mmc->supply.vqmmc, 2700000,
3600000); 3600000);
if (ret) { if (ret) {
pr_warning("%s: Switching to 3.3V signalling voltage " pr_warn("%s: Switching to 3.3V signalling voltage failed\n",
" failed\n", mmc_hostname(mmc)); mmc_hostname(mmc));
return -EIO; return -EIO;
} }
} }
...@@ -1767,8 +1767,8 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host, ...@@ -1767,8 +1767,8 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host,
if (!(ctrl & SDHCI_CTRL_VDD_180)) if (!(ctrl & SDHCI_CTRL_VDD_180))
return 0; return 0;
pr_warning("%s: 3.3V regulator output did not became stable\n", pr_warn("%s: 3.3V regulator output did not became stable\n",
mmc_hostname(mmc)); mmc_hostname(mmc));
return -EAGAIN; return -EAGAIN;
case MMC_SIGNAL_VOLTAGE_180: case MMC_SIGNAL_VOLTAGE_180:
...@@ -1776,8 +1776,8 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host, ...@@ -1776,8 +1776,8 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host,
ret = regulator_set_voltage(mmc->supply.vqmmc, ret = regulator_set_voltage(mmc->supply.vqmmc,
1700000, 1950000); 1700000, 1950000);
if (ret) { if (ret) {
pr_warning("%s: Switching to 1.8V signalling voltage " pr_warn("%s: Switching to 1.8V signalling voltage failed\n",
" failed\n", mmc_hostname(mmc)); mmc_hostname(mmc));
return -EIO; return -EIO;
} }
} }
...@@ -1794,8 +1794,8 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host, ...@@ -1794,8 +1794,8 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host,
if (ctrl & SDHCI_CTRL_VDD_180) if (ctrl & SDHCI_CTRL_VDD_180)
return 0; return 0;
pr_warning("%s: 1.8V regulator output did not became stable\n", pr_warn("%s: 1.8V regulator output did not became stable\n",
mmc_hostname(mmc)); mmc_hostname(mmc));
return -EAGAIN; return -EAGAIN;
case MMC_SIGNAL_VOLTAGE_120: case MMC_SIGNAL_VOLTAGE_120:
...@@ -1803,8 +1803,8 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host, ...@@ -1803,8 +1803,8 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host,
ret = regulator_set_voltage(mmc->supply.vqmmc, 1100000, ret = regulator_set_voltage(mmc->supply.vqmmc, 1100000,
1300000); 1300000);
if (ret) { if (ret) {
pr_warning("%s: Switching to 1.2V signalling voltage " pr_warn("%s: Switching to 1.2V signalling voltage failed\n",
" failed\n", mmc_hostname(mmc)); mmc_hostname(mmc));
return -EIO; return -EIO;
} }
} }
...@@ -2844,8 +2844,7 @@ int sdhci_add_host(struct sdhci_host *host) ...@@ -2844,8 +2844,7 @@ int sdhci_add_host(struct sdhci_host *host)
if (host->flags & (SDHCI_USE_SDMA | SDHCI_USE_ADMA)) { if (host->flags & (SDHCI_USE_SDMA | SDHCI_USE_ADMA)) {
if (host->ops->enable_dma) { if (host->ops->enable_dma) {
if (host->ops->enable_dma(host)) { if (host->ops->enable_dma(host)) {
pr_warning("%s: No suitable DMA " pr_warn("%s: No suitable DMA available - falling back to PIO\n",
"available. Falling back to PIO.\n",
mmc_hostname(mmc)); mmc_hostname(mmc));
host->flags &= host->flags &=
~(SDHCI_USE_SDMA | SDHCI_USE_ADMA); ~(SDHCI_USE_SDMA | SDHCI_USE_ADMA);
...@@ -2867,15 +2866,14 @@ int sdhci_add_host(struct sdhci_host *host) ...@@ -2867,15 +2866,14 @@ int sdhci_add_host(struct sdhci_host *host)
dma_free_coherent(mmc_dev(mmc), ADMA_SIZE, dma_free_coherent(mmc_dev(mmc), ADMA_SIZE,
host->adma_desc, host->adma_addr); host->adma_desc, host->adma_addr);
kfree(host->align_buffer); kfree(host->align_buffer);
pr_warning("%s: Unable to allocate ADMA " pr_warn("%s: Unable to allocate ADMA buffers - falling back to standard DMA\n",
"buffers. Falling back to standard DMA.\n",
mmc_hostname(mmc)); mmc_hostname(mmc));
host->flags &= ~SDHCI_USE_ADMA; host->flags &= ~SDHCI_USE_ADMA;
host->adma_desc = NULL; host->adma_desc = NULL;
host->align_buffer = NULL; host->align_buffer = NULL;
} else if (host->adma_addr & 3) { } else if (host->adma_addr & 3) {
pr_warning("%s: unable to allocate aligned ADMA descriptor\n", pr_warn("%s: unable to allocate aligned ADMA descriptor\n",
mmc_hostname(mmc)); mmc_hostname(mmc));
host->flags &= ~SDHCI_USE_ADMA; host->flags &= ~SDHCI_USE_ADMA;
dma_free_coherent(mmc_dev(mmc), ADMA_SIZE, dma_free_coherent(mmc_dev(mmc), ADMA_SIZE,
host->adma_desc, host->adma_addr); host->adma_desc, host->adma_addr);
...@@ -3202,8 +3200,8 @@ int sdhci_add_host(struct sdhci_host *host) ...@@ -3202,8 +3200,8 @@ int sdhci_add_host(struct sdhci_host *host)
mmc->max_blk_size = (caps[0] & SDHCI_MAX_BLOCK_MASK) >> mmc->max_blk_size = (caps[0] & SDHCI_MAX_BLOCK_MASK) >>
SDHCI_MAX_BLOCK_SHIFT; SDHCI_MAX_BLOCK_SHIFT;
if (mmc->max_blk_size >= 3) { if (mmc->max_blk_size >= 3) {
pr_warning("%s: Invalid maximum block size, " pr_warn("%s: Invalid maximum block size, assuming 512 bytes\n",
"assuming 512 bytes\n", mmc_hostname(mmc)); mmc_hostname(mmc));
mmc->max_blk_size = 0; mmc->max_blk_size = 0;
} }
} }
......
...@@ -952,8 +952,8 @@ static int tifm_sd_probe(struct tifm_dev *sock) ...@@ -952,8 +952,8 @@ static int tifm_sd_probe(struct tifm_dev *sock)
if (!(TIFM_SOCK_STATE_OCCUPIED if (!(TIFM_SOCK_STATE_OCCUPIED
& readl(sock->addr + SOCK_PRESENT_STATE))) { & readl(sock->addr + SOCK_PRESENT_STATE))) {
pr_warning("%s : card gone, unexpectedly\n", pr_warn("%s : card gone, unexpectedly\n",
dev_name(&sock->dev)); dev_name(&sock->dev));
return rc; return rc;
} }
......
...@@ -803,8 +803,7 @@ static void wbsd_request(struct mmc_host *mmc, struct mmc_request *mrq) ...@@ -803,8 +803,7 @@ static void wbsd_request(struct mmc_host *mmc, struct mmc_request *mrq)
default: default:
#ifdef CONFIG_MMC_DEBUG #ifdef CONFIG_MMC_DEBUG
pr_warning("%s: Data command %d is not " pr_warn("%s: Data command %d is not supported by this controller\n",
"supported by this controller.\n",
mmc_hostname(host->mmc), cmd->opcode); mmc_hostname(host->mmc), cmd->opcode);
#endif #endif
cmd->error = -EINVAL; cmd->error = -EINVAL;
...@@ -1429,8 +1428,8 @@ static void wbsd_request_dma(struct wbsd_host *host, int dma) ...@@ -1429,8 +1428,8 @@ static void wbsd_request_dma(struct wbsd_host *host, int dma)
free_dma(dma); free_dma(dma);
err: err:
pr_warning(DRIVER_NAME ": Unable to allocate DMA %d. " pr_warn(DRIVER_NAME ": Unable to allocate DMA %d - falling back on FIFO\n",
"Falling back on FIFO.\n", dma); dma);
} }
static void wbsd_release_dma(struct wbsd_host *host) static void wbsd_release_dma(struct wbsd_host *host)
...@@ -1664,9 +1663,7 @@ static int wbsd_init(struct device *dev, int base, int irq, int dma, ...@@ -1664,9 +1663,7 @@ static int wbsd_init(struct device *dev, int base, int irq, int dma,
ret = wbsd_scan(host); ret = wbsd_scan(host);
if (ret) { if (ret) {
if (pnp && (ret == -ENODEV)) { if (pnp && (ret == -ENODEV)) {
pr_warning(DRIVER_NAME pr_warn(DRIVER_NAME ": Unable to confirm device presence - you may experience lock-ups\n");
": Unable to confirm device presence. You may "
"experience lock-ups.\n");
} else { } else {
wbsd_free_mmc(dev); wbsd_free_mmc(dev);
return ret; return ret;
...@@ -1688,10 +1685,7 @@ static int wbsd_init(struct device *dev, int base, int irq, int dma, ...@@ -1688,10 +1685,7 @@ static int wbsd_init(struct device *dev, int base, int irq, int dma,
*/ */
if (pnp) { if (pnp) {
if ((host->config != 0) && !wbsd_chip_validate(host)) { if ((host->config != 0) && !wbsd_chip_validate(host)) {
pr_warning(DRIVER_NAME pr_warn(DRIVER_NAME ": PnP active but chip not configured! You probably have a buggy BIOS. Configuring chip manually.\n");
": PnP active but chip not configured! "
"You probably have a buggy BIOS. "
"Configuring chip manually.\n");
wbsd_chip_config(host); wbsd_chip_config(host);
} }
} else } else
...@@ -1884,10 +1878,7 @@ static int wbsd_pnp_resume(struct pnp_dev *pnp_dev) ...@@ -1884,10 +1878,7 @@ static int wbsd_pnp_resume(struct pnp_dev *pnp_dev)
*/ */
if (host->config != 0) { if (host->config != 0) {
if (!wbsd_chip_validate(host)) { if (!wbsd_chip_validate(host)) {
pr_warning(DRIVER_NAME pr_warn(DRIVER_NAME ": PnP active but chip not configured! You probably have a buggy BIOS. Configuring chip manually.\n");
": PnP active but chip not configured! "
"You probably have a buggy BIOS. "
"Configuring chip manually.\n");
wbsd_chip_config(host); wbsd_chip_config(host);
} }
} }
......
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