linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: javier@osg.samsung.com (Javier Martinez Canillas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 0/6] Switch to generic syscon regmap based drivers
Date: Wed, 21 Oct 2015 15:23:32 +0200	[thread overview]
Message-ID: <562791D4.3050105@osg.samsung.com> (raw)
In-Reply-To: <56276C87.6040509@samsung.com>

Hello Alim,

On 10/21/2015 12:44 PM, Alim Akhtar wrote:

[snip]

>>
>> Can you please test following patch [0] on top of Alim's series? If that
>> works then it should either be part of Alim's series or the patches will
>> have to wait until that patch lands into mainline. I don't have an eMMC
>> to test it in XU4 but I'm pretty confident that it will solve the issue.
>>
> I am fine with including this with my series or lowering syscon_restart_handler priority to 128.

Yes, I also considered changing the syscon-reboot handler priority to 128 but
then I noticed this commit:

b81180b3fd48 ("power: reset: adjust priority of simple syscon reboot driver").

So as you can see, it was 128 before but was bumped to 192 so it was called
before restart handlers registered by watchdogs. So, changing to 128 would
break other people use cases.

Now, I don't know if that is the right fix since register_restart_handler()
explanation about the policy used for restart handler priority numbers is
scarce. It only mentions 0, 128 and 255 so probably the correct thing to do
is to change all watchdog restart handler to 0 but that is a separate issue.

> It also make sense to increase eMMC priority as you suggested as before system reboot, devices should have reseted itself.

That was my rationale as well and is why I think the handler for devices
should use the highest priority regardless if the syscon-reboot is later
changed to prio 128 and the watchdog handlers to 0.

Best regards,

[0]: http://lxr.free-electrons.com/source/kernel/reboot.c#L113

Best regards,
-- 
Javier Martinez Canillas
Open Source Group
Samsung Research America

  reply	other threads:[~2015-10-21 13:23 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-20  9:24 [PATCH v2 0/6] Switch to generic syscon regmap based drivers Alim Akhtar
2015-10-20  9:24 ` [PATCH v2 1/6] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs Alim Akhtar
2015-11-20  0:20   ` Krzysztof Kozlowski
2015-10-20  9:24 ` [PATCH v2 2/6] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4 Alim Akhtar
2015-11-20  0:20   ` Krzysztof Kozlowski
2015-10-20  9:24 ` [PATCH v2 3/6] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5 Alim Akhtar
2015-10-20 10:30   ` Javier Martinez Canillas
2015-10-21 11:55     ` Anand Moon
2015-11-20  0:22   ` Krzysztof Kozlowski
2015-10-20  9:24 ` [PATCH v2 4/6] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC Alim Akhtar
2015-11-20  0:21   ` Krzysztof Kozlowski
2015-10-20  9:24 ` [PATCH v2 5/6] ARM: exynos: select POWER_RESET_SYSCON and POWER_RESET_SYSCON_POWEROFF Alim Akhtar
2015-10-20 10:30   ` Javier Martinez Canillas
2015-10-21  0:14   ` Krzysztof Kozlowski
2015-10-20  9:24 ` [PATCH v2 6/6] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs Alim Akhtar
2015-10-20 10:31   ` Javier Martinez Canillas
2015-10-20 10:29 ` [PATCH v2 0/6] Switch to generic syscon regmap based drivers Javier Martinez Canillas
2015-10-20 14:59 ` Markus Reichl
2015-10-20 15:47   ` Alim Akhtar
2015-10-20 15:52     ` Alim Akhtar
2015-10-20 17:23       ` Markus Reichl
2015-10-21  6:09         ` Alim Akhtar
2015-10-21 10:16           ` Javier Martinez Canillas
2015-10-21 10:42             ` Markus Reichl
2015-10-21 10:46               ` Alim Akhtar
2015-10-21 11:46                 ` Anand Moon
2015-10-21 13:25                   ` Javier Martinez Canillas
2015-10-21 10:44             ` Alim Akhtar
2015-10-21 13:23               ` Javier Martinez Canillas [this message]
2015-10-21 14:56                 ` Alim Akhtar
2015-10-21 14:50             ` Alim Akhtar
2015-10-21 14:55               ` Javier Martinez Canillas
2015-10-21 15:01                 ` Alim Akhtar
2015-10-22  0:17                   ` Krzysztof Kozlowski
2015-10-22  3:54                     ` Alim Akhtar
2015-11-19 18:06                     ` Alim Akhtar
2015-11-19 18:18                       ` Javier Martinez Canillas
2015-11-20  0:46                       ` Krzysztof Kozlowski
2015-11-20  5:08                         ` Alim Akhtar
2015-10-23 18:52                 ` Kukjin Kim
2015-10-23 18:59                   ` Kukjin Kim
2015-10-21  0:08 ` Krzysztof Kozlowski

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=562791D4.3050105@osg.samsung.com \
    --to=javier@osg.samsung.com \
    --cc=linux-arm-kernel@lists.infradead.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).