From: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
To: Doug Anderson <dianders@chromium.org>
Cc: Yuvaraj Kumar C D <yuvaraj.cd@samsung.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
linux-samsung-soc <linux-samsung-soc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Mark Brown <broonie@kernel.org>, Olof Johansson <olof@lixom.net>,
Kukjin Kim <kgene.kim@samsung.com>,
Naveen Krishna Chatradhi <ch.naveen@samsung.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Rahul Sharma <rahul.sharma@samsung.com>
Subject: Re: [PATCH 5/6] ARM: dts: Add vmmc and vqmmc supplies for Peach Pit and Pi boards
Date: Wed, 20 Aug 2014 11:49:24 +0200 [thread overview]
Message-ID: <53F46F24.9020800@collabora.co.uk> (raw)
In-Reply-To: <CAD=FV=V9oct-iJ==1SLdxusq68AY3utMQF+MbX0Uf+2dC0mwww@mail.gmail.com>
Hello Doug,
On 08/19/2014 06:26 PM, Doug Anderson wrote:
>
> While your change is correct, I have a worry that it will break things
> if it's merged before some patches that Yuvaraj is working on.
>
> Specifically the problem on pit and pi (and any exynos5250 / 5420 /
> 5800 / ... boards using the built-in "card detect") is that the card
> detect line is on the same power rail as "vqmmc". That means you
> can't turn off vqmmc if you still need to be able to detect card
> insertions.
>
> ...but you can't turn off vmmc without turning off vqmmc, otherwise
> current will leak through the IO lines into the card, which is bad.
>
>
> Right now the SDMMC core will try to turn off power to the card at two times:
> 1. when the card is ejected
> 2. when it's trying to reset the card
>
>
> Obviously the first problem is a huge problem on exynos because it
> means that we won't be able to detect card insertions. ...but we
> still want to turn the power off from #2. To really fix the problem I
> think the core needs to be extended to treat the above as two separate
> cases.
>
Thanks a lot for the explanation, now I remember reading about this on
thread "[PATCH 2/3] mmc: dw_mmc: Dont cut off vqmmc and vmmc" [0] but
didn't think in the side effect when adding this patch...
>
> Your patch might work at the moment because I think dw_mmc doesn't
> actually try to turn off these rails with the main SDMMC core asks it
> to. ...but I still worry about merging them before Yuvaraj's changes
> are ready.
>
Agreed, I'll drop this patch and wait for Yuvaraj's series to land first.
Yuvaraj's "UHS support for dw_mmc driver" series that should contain the
change you are referring had the issue that when the tps65090 fet4 was
used as vmmc-supply, mmc_regulator_get_supply() was failing.
I posted a bunch of patches to fix that issue and there were already
merged on the relevant trees and shows on linux-next:
e1da8cd mmc: core: Use regulator_get_voltage() if OCR mask is empty.
a130548 ARM: dts: Improve Peach Pit and Pi power scheme
4f2352c regulator: tps65090: Set voltage for fixed regulators
26988ef regulator: core: Allow to get voltage count and list from parent
e303996 regulator: core: Get voltage from parent if not available
So hopefully his series have no blockers anymore.
>
> -Doug
>
Best regards,
Javier
[0]: https://www.mail-archive.com/linux-mmc@vger.kernel.org/msg27152.html
WARNING: multiple messages have this Message-ID (diff)
From: javier.martinez@collabora.co.uk (Javier Martinez Canillas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/6] ARM: dts: Add vmmc and vqmmc supplies for Peach Pit and Pi boards
Date: Wed, 20 Aug 2014 11:49:24 +0200 [thread overview]
Message-ID: <53F46F24.9020800@collabora.co.uk> (raw)
In-Reply-To: <CAD=FV=V9oct-iJ==1SLdxusq68AY3utMQF+MbX0Uf+2dC0mwww@mail.gmail.com>
Hello Doug,
On 08/19/2014 06:26 PM, Doug Anderson wrote:
>
> While your change is correct, I have a worry that it will break things
> if it's merged before some patches that Yuvaraj is working on.
>
> Specifically the problem on pit and pi (and any exynos5250 / 5420 /
> 5800 / ... boards using the built-in "card detect") is that the card
> detect line is on the same power rail as "vqmmc". That means you
> can't turn off vqmmc if you still need to be able to detect card
> insertions.
>
> ...but you can't turn off vmmc without turning off vqmmc, otherwise
> current will leak through the IO lines into the card, which is bad.
>
>
> Right now the SDMMC core will try to turn off power to the card at two times:
> 1. when the card is ejected
> 2. when it's trying to reset the card
>
>
> Obviously the first problem is a huge problem on exynos because it
> means that we won't be able to detect card insertions. ...but we
> still want to turn the power off from #2. To really fix the problem I
> think the core needs to be extended to treat the above as two separate
> cases.
>
Thanks a lot for the explanation, now I remember reading about this on
thread "[PATCH 2/3] mmc: dw_mmc: Dont cut off vqmmc and vmmc" [0] but
didn't think in the side effect when adding this patch...
>
> Your patch might work at the moment because I think dw_mmc doesn't
> actually try to turn off these rails with the main SDMMC core asks it
> to. ...but I still worry about merging them before Yuvaraj's changes
> are ready.
>
Agreed, I'll drop this patch and wait for Yuvaraj's series to land first.
Yuvaraj's "UHS support for dw_mmc driver" series that should contain the
change you are referring had the issue that when the tps65090 fet4 was
used as vmmc-supply, mmc_regulator_get_supply() was failing.
I posted a bunch of patches to fix that issue and there were already
merged on the relevant trees and shows on linux-next:
e1da8cd mmc: core: Use regulator_get_voltage() if OCR mask is empty.
a130548 ARM: dts: Improve Peach Pit and Pi power scheme
4f2352c regulator: tps65090: Set voltage for fixed regulators
26988ef regulator: core: Allow to get voltage count and list from parent
e303996 regulator: core: Get voltage from parent if not available
So hopefully his series have no blockers anymore.
>
> -Doug
>
Best regards,
Javier
[0]: https://www.mail-archive.com/linux-mmc at vger.kernel.org/msg27152.html
WARNING: multiple messages have this Message-ID (diff)
From: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
To: Doug Anderson <dianders@chromium.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>,
Olof Johansson <olof@lixom.net>, Mark Brown <broonie@kernel.org>,
Naveen Krishna Chatradhi <ch.naveen@samsung.com>,
Rahul Sharma <rahul.sharma@samsung.com>,
linux-samsung-soc <linux-samsung-soc@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Yuvaraj Kumar C D <yuvaraj.cd@samsung.com>,
Ulf Hansson <ulf.hansson@linaro.org>
Subject: Re: [PATCH 5/6] ARM: dts: Add vmmc and vqmmc supplies for Peach Pit and Pi boards
Date: Wed, 20 Aug 2014 11:49:24 +0200 [thread overview]
Message-ID: <53F46F24.9020800@collabora.co.uk> (raw)
In-Reply-To: <CAD=FV=V9oct-iJ==1SLdxusq68AY3utMQF+MbX0Uf+2dC0mwww@mail.gmail.com>
Hello Doug,
On 08/19/2014 06:26 PM, Doug Anderson wrote:
>
> While your change is correct, I have a worry that it will break things
> if it's merged before some patches that Yuvaraj is working on.
>
> Specifically the problem on pit and pi (and any exynos5250 / 5420 /
> 5800 / ... boards using the built-in "card detect") is that the card
> detect line is on the same power rail as "vqmmc". That means you
> can't turn off vqmmc if you still need to be able to detect card
> insertions.
>
> ...but you can't turn off vmmc without turning off vqmmc, otherwise
> current will leak through the IO lines into the card, which is bad.
>
>
> Right now the SDMMC core will try to turn off power to the card at two times:
> 1. when the card is ejected
> 2. when it's trying to reset the card
>
>
> Obviously the first problem is a huge problem on exynos because it
> means that we won't be able to detect card insertions. ...but we
> still want to turn the power off from #2. To really fix the problem I
> think the core needs to be extended to treat the above as two separate
> cases.
>
Thanks a lot for the explanation, now I remember reading about this on
thread "[PATCH 2/3] mmc: dw_mmc: Dont cut off vqmmc and vmmc" [0] but
didn't think in the side effect when adding this patch...
>
> Your patch might work at the moment because I think dw_mmc doesn't
> actually try to turn off these rails with the main SDMMC core asks it
> to. ...but I still worry about merging them before Yuvaraj's changes
> are ready.
>
Agreed, I'll drop this patch and wait for Yuvaraj's series to land first.
Yuvaraj's "UHS support for dw_mmc driver" series that should contain the
change you are referring had the issue that when the tps65090 fet4 was
used as vmmc-supply, mmc_regulator_get_supply() was failing.
I posted a bunch of patches to fix that issue and there were already
merged on the relevant trees and shows on linux-next:
e1da8cd mmc: core: Use regulator_get_voltage() if OCR mask is empty.
a130548 ARM: dts: Improve Peach Pit and Pi power scheme
4f2352c regulator: tps65090: Set voltage for fixed regulators
26988ef regulator: core: Allow to get voltage count and list from parent
e303996 regulator: core: Get voltage from parent if not available
So hopefully his series have no blockers anymore.
>
> -Doug
>
Best regards,
Javier
[0]: https://www.mail-archive.com/linux-mmc@vger.kernel.org/msg27152.html
next prev parent reply other threads:[~2014-08-20 9:49 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-19 15:08 [PATCH 0/6] Add max77802 support for Peach boards Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
2014-08-19 15:08 ` [PATCH 1/6] ARM: dts: Add Peach Pit and Pi dts entry for max77802 PMIC Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
2014-08-19 18:52 ` Andreas Färber
2014-08-19 18:52 ` Andreas Färber
2014-08-20 10:27 ` Javier Martinez Canillas
2014-08-20 10:27 ` Javier Martinez Canillas
2014-08-19 15:08 ` [PATCH 2/6] ARM: dts: add hdmi regulators for exynos5800 based peach-pi board Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
2014-09-10 4:44 ` Doug Anderson
2014-09-10 4:44 ` Doug Anderson
2014-09-10 4:45 ` Doug Anderson
2014-09-10 4:45 ` Doug Anderson
2014-09-10 9:00 ` Javier Martinez Canillas
2014-09-10 9:00 ` Javier Martinez Canillas
2014-08-19 15:08 ` [PATCH 3/6] ARM: dts: add hdmi regulators for exynos5420 based peach-pit board Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
2014-08-19 15:08 ` [PATCH 4/6] ARM: dts: Add thermistor dts fragment used by exynos based Peach boards Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
2014-08-19 15:08 ` [PATCH 5/6] ARM: dts: Add vmmc and vqmmc supplies for Peach Pit and Pi boards Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
2014-08-19 16:26 ` Doug Anderson
2014-08-19 16:26 ` Doug Anderson
2014-08-20 9:49 ` Javier Martinez Canillas [this message]
2014-08-20 9:49 ` Javier Martinez Canillas
2014-08-20 9:49 ` Javier Martinez Canillas
2014-08-19 18:37 ` Andreas Färber
2014-08-19 18:37 ` Andreas Färber
2014-08-20 10:21 ` Javier Martinez Canillas
2014-08-20 10:21 ` Javier Martinez Canillas
2014-08-20 10:36 ` Javier Martinez Canillas
2014-08-20 10:36 ` Javier Martinez Canillas
2014-08-19 15:08 ` [PATCH 6/6] ARM: dts: Add Peach Pit and Pi dts entry for ISL29018 sensor Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
2014-08-19 15:08 ` Javier Martinez Canillas
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=53F46F24.9020800@collabora.co.uk \
--to=javier.martinez@collabora.co.uk \
--cc=broonie@kernel.org \
--cc=ch.naveen@samsung.com \
--cc=dianders@chromium.org \
--cc=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=olof@lixom.net \
--cc=rahul.sharma@samsung.com \
--cc=ulf.hansson@linaro.org \
--cc=yuvaraj.cd@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.