From: Johan Rudholm Date: Fri, 26 Oct 2012 09:31:55 +0000 (+0200) Subject: mmc: core: debugfs: Add signal_voltage to ios dump X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=42cd95a0603e0497e7221816bb5ddfe861ee9325;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mmc: core: debugfs: Add signal_voltage to ios dump Signed-off-by: Johan Rudholm Reviewed-by: Philip Rakity Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c index d96c643dde1c..35c2f85b1956 100644 --- a/drivers/mmc/core/debugfs.c +++ b/drivers/mmc/core/debugfs.c @@ -144,6 +144,22 @@ static int mmc_ios_show(struct seq_file *s, void *data) } seq_printf(s, "timing spec:\t%u (%s)\n", ios->timing, str); + switch (ios->signal_voltage) { + case MMC_SIGNAL_VOLTAGE_330: + str = "3.30 V"; + break; + case MMC_SIGNAL_VOLTAGE_180: + str = "1.80 V"; + break; + case MMC_SIGNAL_VOLTAGE_120: + str = "1.20 V"; + break; + default: + str = "invalid"; + break; + } + seq_printf(s, "signal voltage:\t%u (%s)\n", ios->chip_select, str); + return 0; }