mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
mmc: sanitize 'bus width' in debug output
commit ed9feec72f upstream.
The bus width is sometimes the actual bus width, and sometimes indices
to different arrays encoding the bus width. In my debugging case "2"
could mean 8-bit as well as 4-bit, which was extremly confusing. Let's
use the human-readable actual bus width in all places.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
40c01c8301
commit
6a0f5752f1
@@ -1039,7 +1039,7 @@ static inline void mmc_set_ios(struct mmc_host *host)
|
||||
"width %u timing %u\n",
|
||||
mmc_hostname(host), ios->clock, ios->bus_mode,
|
||||
ios->power_mode, ios->chip_select, ios->vdd,
|
||||
ios->bus_width, ios->timing);
|
||||
1 << ios->bus_width, ios->timing);
|
||||
|
||||
host->ops->set_ios(host, ios);
|
||||
}
|
||||
|
||||
@@ -952,7 +952,7 @@ static int mmc_select_bus_width(struct mmc_card *card)
|
||||
break;
|
||||
} else {
|
||||
pr_warn("%s: switch to bus width %d failed\n",
|
||||
mmc_hostname(host), ext_csd_bits[idx]);
|
||||
mmc_hostname(host), 1 << bus_width);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user