From patchwork Fri Oct 26 09:31:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Rudholm X-Patchwork-Id: 12541 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 06FA623EF8 for ; Fri, 26 Oct 2012 09:33:00 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 92EBCA18FB7 for ; Fri, 26 Oct 2012 09:32:59 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so3345117iej.11 for ; Fri, 26 Oct 2012 02:32:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :x-gm-message-state; bh=DaNswpM8G5/KheHqgXWtXEjMMxO+DDIocd4sLhNooIo=; b=lhHUofcKzT7dUpJLvgq6isRw4k4o3em897GqyeU+fKySN/KlPKSa+issmhJuLJBv7A PRmoSONDSRrfNAM7WYnmzzbV+3RALA999jKuVYn4lQ6WLrVD0CUytfnY5DGetmLrRTNj b2eNnhROTZcMypRmqcUk+gP+Ub+midbHKvhpAnBnVVpMGlNk/amRMCOaFYZlRivy4das CvX+LNodOqCZ3CUK1sCWKUv045XPo/kFU44KconsDjUC0k9a8cpfg/GBezfSHuc70t3R ScWZDCulQOfqDnSi/JOyWpvIAGKEQSTyPDYpg2XOrmZ+wuCZxdJ1H60/J7tCqn4rWHFF zgQA== Received: by 10.50.140.97 with SMTP id rf1mr1415543igb.70.1351243978952; Fri, 26 Oct 2012 02:32:58 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp220522igt; Fri, 26 Oct 2012 02:32:58 -0700 (PDT) Received: by 10.14.214.2 with SMTP id b2mr30501603eep.32.1351243977445; Fri, 26 Oct 2012 02:32:57 -0700 (PDT) Received: from eu1sys200aog102.obsmtp.com (eu1sys200aog102.obsmtp.com [207.126.144.113]) by mx.google.com with SMTP id f44si561872eep.11.2012.10.26.02.32.47 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 26 Oct 2012 02:32:57 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.113 is neither permitted nor denied by best guess record for domain of johan.rudholm@stericsson.com) client-ip=207.126.144.113; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.113 is neither permitted nor denied by best guess record for domain of johan.rudholm@stericsson.com) smtp.mail=johan.rudholm@stericsson.com Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob102.postini.com ([207.126.147.11]) with SMTP ID DSNKUIpYrbkLkQx4gyk2BWKh4keneAg9ds3j@postini.com; Fri, 26 Oct 2012 09:32:55 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 64D2BEA; Fri, 26 Oct 2012 09:23:55 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id B986DEBA; Fri, 26 Oct 2012 09:32:07 +0000 (GMT) Received: from exdcvycastm022.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm022", Issuer "exdcvycastm022" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id E481EA8065; Fri, 26 Oct 2012 11:32:02 +0200 (CEST) Received: from steludxu1610.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.30) with Microsoft SMTP Server (TLS) id 8.3.83.0; Fri, 26 Oct 2012 11:32:06 +0200 From: Johan Rudholm To: , Chris Ball Cc: Per Forlin , Ulf Hansson , Fredrik Soderstedt , Johan Rudholm Subject: [PATCH] mmc: core: debugfs: Add signal_voltage to ios dump Date: Fri, 26 Oct 2012 11:31:55 +0200 Message-ID: <1351243915-30190-1-git-send-email-johan.rudholm@stericsson.com> X-Mailer: git-send-email 1.7.10 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlaT4jjDFFi98mDJlmIk0fmzQMI74fb9u8x1a640o8Hm2/+myJOe+qRmQ1tA4d+rr3qzp6+ Signed-off-by: Johan Rudholm --- 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"; + break; + } + seq_printf(s, "signal voltage:\t%u (%s)\n", ios->chip_select, str); + return 0; }