From: Javier Martinez Canillas <javier@osg.samsung.com>
To: Doug Anderson <dianders@chromium.org>
Cc: "Krzysztof Kozlowski" <k.kozlowski@samsung.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Markus Reichl" <m.reichl@fivetechno.de>,
"Anand Moon" <linux.amoon@gmail.com>,
linux-samsung-soc <linux-samsung-soc@vger.kernel.org>,
"Alim Akhtar" <alim.akhtar@samsung.com>,
"Marek Szyprowski" <m.szyprowski@samsung.com>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
"Alexandre Courbot" <acourbot@nvidia.com>,
"Ulf Hansson" <ulf.hansson@linaro.org>,
"Heiko Stübner" <heiko@sntech.de>
Subject: Re: [PATCH] mmc: pwrseq: Use highest priority for eMMC restart handler
Date: Thu, 22 Oct 2015 19:53:01 +0200 [thread overview]
Message-ID: <5629227D.6060806@osg.samsung.com> (raw)
In-Reply-To: <CAD=FV=UBY1wB0wCV_v2H2thT6015Lr0=r4+uDZ5GxFZRqGoVWw@mail.gmail.com>
Hello Doug,
On 10/22/2015 07:33 PM, Doug Anderson wrote:
> On Thu, Oct 22, 2015 at 9:07 AM, Javier Martinez Canillas
[snip]
>>
>> Do you know why the priority 200 was chosen for veyron gpi-restart ooi?
>
> In David Riley's original patch the example had 200:
> https://patchwork.kernel.org/patch/4784611/
>
> In the ChromeOS 3.14 kernel tree I believe we're still using the old
> patch (we still have /bits/ 8). ...it looks like I'm the one who
> originally added it to the veyron dts file and I set it to 200, so I'd
> presume that I just copied the example and called it "good enough".
>
I see, thanks for the explanation. I asked because I noticed that the
gpio-restart handler default priority was 129 and I didn't find other
restart handler used for this board with a prio > 129 so at least in
mainline, the priority 200 should not be necessary.
But now I see that it was indeed 128 but was bumped to 129 in commit:
bcd56fe1aa97 ("power: reset: gpio-restart: increase priority slightly")
which explains why the priority 200 was in the veyron DTS even when is
not needed anymore after that commit.
> I'm sure the upstream dts just used the number from the ChromeOS 3.14 tree...
>
> Note that the GPIO-restart definitely need to be higher priorities
> than others in the system. The two I know of off the top of my head
> are the "dw watchdog" and the one in the CRU. The "dw watchdog" has a
> priority of 128 and so does the one in "rockchip/clk.c". Hrm,
> actually, the Rockchip-specific one should probably have its priority
> bumped up since it seems better not to just randomly pick between
> these two...
Agreed about bumping the prio for the rockchip specific restart handler.
>
>
> -Doug
> --
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
next prev parent reply other threads:[~2015-10-22 17:53 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-21 15:15 [PATCH] mmc: pwrseq: Use highest priority for eMMC restart handler Javier Martinez Canillas
2015-10-22 0:36 ` Krzysztof Kozlowski
2015-10-22 1:20 ` Javier Martinez Canillas
2015-10-22 1:43 ` Krzysztof Kozlowski
2015-10-22 2:52 ` Javier Martinez Canillas
2015-10-22 4:14 ` Alim Akhtar
2015-10-22 10:07 ` Marek Szyprowski
2015-10-22 11:02 ` Javier Martinez Canillas
2015-10-22 5:03 ` Anand Moon
2015-10-22 8:36 ` Javier Martinez Canillas
2015-10-22 9:42 ` Anand Moon
2015-10-22 15:34 ` Doug Anderson
2015-10-22 15:51 ` Heiko Stübner
2015-10-22 16:07 ` Javier Martinez Canillas
2015-10-22 17:33 ` Doug Anderson
2015-10-22 17:53 ` Javier Martinez Canillas [this message]
2015-10-24 4:55 ` Alim Akhtar
2015-10-27 10:10 ` Ulf Hansson
2015-10-28 11:02 ` 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=5629227D.6060806@osg.samsung.com \
--to=javier@osg.samsung.com \
--cc=acourbot@nvidia.com \
--cc=alim.akhtar@samsung.com \
--cc=dianders@chromium.org \
--cc=heiko@sntech.de \
--cc=k.kozlowski@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux.amoon@gmail.com \
--cc=m.reichl@fivetechno.de \
--cc=m.szyprowski@samsung.com \
--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).