linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michal Simek <monstr@monstr.eu>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
	Bartosz Golaszewski <bgolaszewski@baylibre.com>,
	Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH v2] microblaze: Switch to standard restart handler
Date: Fri, 30 Aug 2019 11:13:54 +0200	[thread overview]
Message-ID: <958326ef-8be0-ff4a-b9bd-e5ab4c7454a4@monstr.eu> (raw)
In-Reply-To: <CACRpkdaa_vQ0Pko0Log5uwomFb+gbSPTjpZ6S-3VJgFGMYYpWw@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1532 bytes --]

On 23. 08. 19 13:19, Linus Walleij wrote:
> On Fri, Aug 23, 2019 at 12:56 PM Michal Simek <monstr@monstr.eu> wrote:
> 
>>> +void machine_restart(char *cmd)
>>> +{
>>> +     do_kernel_restart(cmd);
>>> +     /* Give the restart hook 1 s to take us down */
>>> +     mdelay(1000);
>>> +     pr_emerg("Reboot failed -- System halted\n");
>>> +     while (1);
>>> +}
>>> +
>>>  /*
>>>   * MMU_init sets up the basic memory mappings for the kernel,
>>>   * including both RAM and possibly some I/O regions,
>>>
>>
>> I will test this for sure. What's the reason to add machine_restart to
>> mm/ folder? You can simply keep it in a location where it was.
> 
> It is because the three calls to machine_restart() were in this
> file and therefore I just put it in proximity.
> 
> I can move it.
> 
>> Do you know why of_find_gpio can failed in connection to gpio-xilinx driver?
> 
> The only reason it'd fail would be if the module is not compiled
> in, or deferred probe happens, but then -EPROBE_DEFER
> would be returned I think.

I have retest it. I have done one dt issue that was the reason why it
didn't work.

Please move that machine_restart() back to reset.c and then I will apply
this patch.

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2019-08-30  9:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-23  9:47 [PATCH v2] microblaze: Switch to standard restart handler Linus Walleij
2019-08-23 10:55 ` Michal Simek
2019-08-23 11:19   ` Linus Walleij
2019-08-30  9:13     ` Michal Simek [this message]
2019-09-19  8:46 ` Michal Simek
2019-09-30 22:07   ` Linus Walleij

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=958326ef-8be0-ff4a-b9bd-e5ab4c7454a4@monstr.eu \
    --to=monstr@monstr.eu \
    --cc=arnd@arndb.de \
    --cc=bgolaszewski@baylibre.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.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).