linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joakim Tjernlund <joakim.tjernlund@transmode.se>
To: "ulf.hansson@linaro.org" <ulf.hansson@linaro.org>
Cc: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Subject: Re: Initial signal voltage ?
Date: Tue, 25 Aug 2015 12:20:01 +0000	[thread overview]
Message-ID: <1440505201.3349.59.camel@transmode.se> (raw)
In-Reply-To: <CAPDyKFpDzBV9zXAZH_KddZVdUQ_t2W3Qb3yG70ceagv4+oy7cQ@mail.gmail.com>

On Tue, 2015-08-25 at 14:05 +0200, Ulf Hansson wrote:
> On 10 August 2015 at 18:50, Joakim Tjernlund
> <joakim.tjernlund@transmode.se> wrote:
> > in mmc_power_up() we have:
> >         /* Try to set signal voltage to 3.3V but fall back to 1.8v or 1.2v */
> >         if (__mmc_set_signal_voltage(host, MMC_SIGNAL_VOLTAGE_330) == 0)
> >                 dev_err(mmc_dev(host), "Initial signal voltage of 3.3v\n");
> >         else if (__mmc_set_signal_voltage(host, MMC_SIGNAL_VOLTAGE_180) == 0)
> >                 dev_err(mmc_dev(host), "Initial signal voltage of 1.8v\n");
> >         else if (__mmc_set_signal_voltage(host, MMC_SIGNAL_VOLTAGE_120) == 0)
> >                 dev_err(mmc_dev(host), "Initial signal voltage of 1.2v\n");
> > 
> > Here one jut brutally tries to set the initial power to 3.3 but nowhere in
> > general code there is a check if the controller can handle this w.r.t
> > HOST CAPS.
> 
> You are right, it's brutal. :-)
> 
> Perhaps the host driver should return -EINVAL when a voltage level
> can't be reached. The above code should not print messages as errors,
> at least as long some voltage level can be used.
> 
> > Where should this check be performed, I am guessing either here or in sdhci?
> > This is all new to me so I am just throwing this out there
> 
> Do you want to send a patch?

No, you didn't answer the question

  reply	other threads:[~2015-08-25 12:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-10 16:50 Initial signal voltage ? Joakim Tjernlund
2015-08-25 12:05 ` Ulf Hansson
2015-08-25 12:20   ` Joakim Tjernlund [this message]
2015-08-27 14:01     ` Ulf Hansson
2015-08-27 14:33       ` Joakim Tjernlund
2015-08-27 14:44         ` Ulf Hansson
2015-08-27 17:16           ` Joakim Tjernlund
2015-09-15 17:43             ` Fabio Estevam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1440505201.3349.59.camel@transmode.se \
    --to=joakim.tjernlund@transmode.se \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).