summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-04-11 14:02:37 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-05-06 08:35:59 +0200
commit0f16a03b00e3762069c2e227ad1fcf618a4c43a2 (patch)
tree60e352a0a4cd83cd7c958290e25129f091e35efe
parent3af51e9edd6bc3222df51598e9448fb2225fcc26 (diff)
downloadbarebox-0f16a03b00e3762069c2e227ad1fcf618a4c43a2.tar.gz
barebox-0f16a03b00e3762069c2e227ad1fcf618a4c43a2.tar.xz
mci: turn several pr_* statements into debug
These are mostly useful for developers, so turn them off by default. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mci/mci-core.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index a51c44bf..a06c997e 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -684,7 +684,7 @@ static void mci_extract_max_tran_speed_from_csd(struct device_d *mci_dev)
unit = tran_speed_unit[(mci->csd[0] & 0x7)];
time = tran_speed_time[((mci->csd[0] >> 3) & 0xf)];
if ((unit == 0) || (time == 0)) {
- pr_warning("Unsupported 'TRAN_SPEED' unit/time value."
+ pr_debug("Unsupported 'TRAN_SPEED' unit/time value."
" Can't calculate card's max. transfer speed\n");
return;
}
@@ -802,13 +802,13 @@ static int mci_startup(struct device_d *mci_dev)
/* sanitiy? */
if (mci->read_bl_len > 512) {
mci->read_bl_len = 512;
- pr_warning("Limiting max. read block size down to %u\n",
+ pr_debug("Limiting max. read block size down to %u\n",
mci->read_bl_len);
}
if (mci->write_bl_len > 512) {
mci->write_bl_len = 512;
- pr_warning("Limiting max. write block size down to %u\n",
+ pr_debug("Limiting max. write block size down to %u\n",
mci->read_bl_len);
}
pr_debug("Read block length: %u, Write block length: %u\n",
@@ -961,7 +961,7 @@ static int mci_sd_write(struct device_d *disk_dev, uint64_t sector_start,
__func__, sector_count, (unsigned)sector_start);
if (mci->write_bl_len != 512) {
- pr_warning("MMC/SD block size is not 512 bytes (its %u bytes instead)\n",
+ pr_debug("MMC/SD block size is not 512 bytes (its %u bytes instead)\n",
mci->read_bl_len);
return -EINVAL;
}
@@ -969,13 +969,13 @@ static int mci_sd_write(struct device_d *disk_dev, uint64_t sector_start,
while (sector_count) {
/* size of the block number field in the MMC/SD command is 32 bit only */
if (sector_start > MAX_BUFFER_NUMBER) {
- pr_err("Cannot handle block number %llu. Too large!\n",
+ pr_debug("Cannot handle block number %llu. Too large!\n",
sector_start);
return -EINVAL;
}
rc = mci_block_write(mci_dev, buffer, sector_start);
if (rc != 0) {
- pr_err("Writing block %u failed with %d\n", (unsigned)sector_start, rc);
+ pr_debug("Writing block %u failed with %d\n", (unsigned)sector_start, rc);
return rc;
}
sector_count--;
@@ -1009,7 +1009,7 @@ static int mci_sd_read(struct device_d *disk_dev, uint64_t sector_start,
__func__, sector_count, (unsigned)sector_start);
if (mci->read_bl_len != 512) {
- pr_warning("MMC/SD block size is not 512 bytes (its %u bytes instead)\n",
+ pr_debug("MMC/SD block size is not 512 bytes (its %u bytes instead)\n",
mci->read_bl_len);
return -EINVAL;
}
@@ -1023,7 +1023,7 @@ static int mci_sd_read(struct device_d *disk_dev, uint64_t sector_start,
}
rc = mci_read_block(mci_dev, buffer, (unsigned)sector_start, now);
if (rc != 0) {
- pr_err("Reading block %u failed with %d\n", (unsigned)sector_start, rc);
+ pr_debug("Reading block %u failed with %d\n", (unsigned)sector_start, rc);
return rc;
}
sector_count -= now;
@@ -1192,7 +1192,7 @@ static int mci_card_probe(struct device_d *mci_dev)
/* reset the card */
rc = mci_go_idle(mci_dev);
if (rc) {
- pr_warning("Cannot reset the SD/MMC card\n");
+ pr_warn("Cannot reset the SD/MMC card\n");
goto on_error;
}
@@ -1210,7 +1210,7 @@ static int mci_card_probe(struct device_d *mci_dev)
rc = mci_startup(mci_dev);
if (rc) {
- printf("Card's startup fails with %d\n", rc);
+ pr_debug("Card's startup fails with %d\n", rc);
goto on_error;
}
@@ -1321,7 +1321,7 @@ static int mci_probe(struct device_d *mci_dev)
*/
rc = add_mci_parameter(mci_dev);
if (rc != 0) {
- pr_err("Failed to add 'probe' parameter to the MCI device\n");
+ pr_debug("Failed to add 'probe' parameter to the MCI device\n");
goto on_error;
}
}
@@ -1331,7 +1331,7 @@ static int mci_probe(struct device_d *mci_dev)
/* add params on demand */
rc = add_mci_parameter(mci_dev);
if (rc != 0) {
- pr_err("Failed to add 'probe' parameter to the MCI device\n");
+ pr_debug("Failed to add 'probe' parameter to the MCI device\n");
goto on_error;
}
#endif