diff options
author | Shawn Lin <shawn.lin@rock-chips.com> | 2015-09-22 03:20:08 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-10-26 15:59:58 +0100 |
commit | d1f23f9304f303e15200c8b7940eeeeb1a1c8c6a (patch) | |
tree | d926da513f75b44e6842f2b6542e3826a22c61df /drivers/mmc | |
parent | mmc: omap: Fix module autoload for OF platform driver (diff) | |
download | linux-d1f23f9304f303e15200c8b7940eeeeb1a1c8c6a.tar.xz linux-d1f23f9304f303e15200c8b7940eeeeb1a1c8c6a.zip |
mmc: debugfs: implement ios show for driver type
This patch add ios->drv_type for mmc_ios_show to show the
card's driver type.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/debugfs.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c index e9142108a6c6..9adba8d55980 100644 --- a/drivers/mmc/core/debugfs.c +++ b/drivers/mmc/core/debugfs.c @@ -166,6 +166,25 @@ static int mmc_ios_show(struct seq_file *s, void *data) } seq_printf(s, "signal voltage:\t%u (%s)\n", ios->chip_select, str); + switch (ios->drv_type) { + case MMC_SET_DRIVER_TYPE_A: + str = "driver type A"; + break; + case MMC_SET_DRIVER_TYPE_B: + str = "driver type B"; + break; + case MMC_SET_DRIVER_TYPE_C: + str = "driver type C"; + break; + case MMC_SET_DRIVER_TYPE_D: + str = "driver type D"; + break; + default: + str = "invalid"; + break; + } + seq_printf(s, "driver type:\t%u (%s)\n", ios->drv_type, str); + return 0; } |