From: Kyungmin Park <kmpark@infradead.org>
To: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: linux-mmc@vger.kernel.org, Chris Ball <cjb@laptop.org>,
Linus Walleij <linus.walleij@linaro.org>,
Adrian Hunter <adrian.hunter@intel.com>
Subject: Re: [PATCH] mmc: add workaround for fixed regulators
Date: Mon, 23 Jan 2012 23:26:09 +0900 [thread overview]
Message-ID: <CAH9JG2XkbVsCzyfmiyBbzPTjNHgdpeuHobi7VwTW_YH14CyuCA@mail.gmail.com> (raw)
In-Reply-To: <1327312397-10176-1-git-send-email-m.szyprowski@samsung.com>
Hi Marek,
I sent the patch same issue and get the Acked from Adrian.
http://permalink.gmane.org/gmane.linux.kernel.mmc/12206
Please see it.
Thank you,
Kyungmin Park
On Mon, Jan 23, 2012 at 6:53 PM, Marek Szyprowski
<m.szyprowski@samsung.com> wrote:
> Voltage change errors should not be fatal to mmc subsystem. Some
> regulators don't support changing the supplied voltage values, while
> they can still be used for enabling and disabling the supply. This fixes
> the regresion that appeared in sdhci driver after commit ceb6143b -
> erlier it worked fine with fixed gpio-based regulator.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> drivers/mmc/core/core.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
> index f545a3e..8726ae4 100644
> --- a/drivers/mmc/core/core.c
> +++ b/drivers/mmc/core/core.c
> @@ -1128,6 +1128,12 @@ int mmc_regulator_set_ocr(struct mmc_host *mmc,
> else
> result = 0;
>
> + /* Some regulators don't support voltage changes, so
> + * assume that board designer used correct values
> + */
> + if (result == -EINVAL)
> + result = 0;
> +
> if (result == 0 && !mmc->regulator_enabled) {
> result = regulator_enable(supply);
> if (!result)
> --
> 1.7.1.569.g6f426
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2012-01-23 14:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-23 9:53 [PATCH] mmc: add workaround for fixed regulators Marek Szyprowski
2012-01-23 14:26 ` Kyungmin Park [this message]
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=CAH9JG2XkbVsCzyfmiyBbzPTjNHgdpeuHobi7VwTW_YH14CyuCA@mail.gmail.com \
--to=kmpark@infradead.org \
--cc=adrian.hunter@intel.com \
--cc=cjb@laptop.org \
--cc=linus.walleij@linaro.org \
--cc=linux-mmc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
/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).