Re: [PATCH] mmc: core: debugfs: Add signal_voltage to ios dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Oct 26, 2012, at 11:31 AM, Johan Rudholm <johan.rudholm@xxxxxxxxxxxxxx> wrote:

> Signed-off-by: Johan Rudholm <johan.rudholm@xxxxxxxxxxxxxx>
> ---
> drivers/mmc/core/debugfs.c |   16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
> 
> diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c
> index d96c643..35c2f85 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";

would "is unknown"  be a better str ?
> +		break;
> +	}
> +	seq_printf(s, "signal voltage:\t%u (%s)\n", ios->chip_select, str);
> +
> 	return 0;
> }
> 
Reviewed-by: Philip Rakity <prakity@xxxxxxxxxx>
> -- 
> 1.7.10
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux