From: Josh Cartwright <joshc@ni.com>
To: Michal Simek <michal.simek@xilinx.com>
Cc: S?ren Brinkmann <soren.brinkmann@xilinx.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] ARM: zynq: use restart_handler mechanism for slcr reset
Date: Thu, 19 Mar 2015 07:44:14 -0500 [thread overview]
Message-ID: <20150319124414.GG24619@jcartwri.amer.corp.natinst.com> (raw)
In-Reply-To: <BL2FFO11OLC004560F6047881E93573D75E2010@BL2FFO11OLC004.protection.gbl>
On Thu, Mar 19, 2015 at 11:44:23AM +0100, Michal Simek wrote:
> On 02/27/2015 04:09 PM, Josh Cartwright wrote:
[..]
> > +++ b/arch/arm/mach-zynq/slcr.c
> > @@ -15,6 +15,7 @@
> > */
> >
> > #include <linux/io.h>
> > +#include <linux/reboot.h>
> > #include <linux/mfd/syscon.h>
> > #include <linux/of_address.h>
> > #include <linux/regmap.h>
> > @@ -91,10 +92,9 @@ u32 zynq_slcr_get_device_id(void)
> > return val;
> > }
> >
> > -/**
> > - * zynq_slcr_system_reset - Reset the entire system.
> > - */
> > -void zynq_slcr_system_reset(void)
> > +static
> > +int zynq_slcr_system_restart(struct notifier_block *nb,
> > + unsigned long action, void *data)
> > {
>
> First of all sorry for delay.
No problem. I suspect ZynqMP is keeping you busy.
> Any reason to remove kernel-doc format?
It didn't seem to provide anything meaningful, as it was just a
restatement of the function name, and since this function has become
static, it makes even less sense.
> The rest looks good and I have also tested it.
Great!
> BTW: was also thinking about syscon-reboot option but it doesn't fit to
> our reset sequence. :-(
Because of the code that handles this?
/*
* Clear 0x0F000000 bits of reboot status register to workaround
* the FSBL not loading the bitstream after soft-reboot
* This is a temporary solution until we know more.
*/
Has this FSBL bug been addressed?
I suspect we could also drop the zynq_slcr_unlock() as well...we unlock
the SLCR early at boot and don't lock it, AFAICT.
With those two pieces dropped, I think we'd fit the syscon-reboot model.
Josh
next prev parent reply other threads:[~2015-03-19 12:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-27 15:09 Josh Cartwright
2015-03-11 15:41 ` Josh Cartwright
2015-03-19 10:44 ` Michal Simek
2015-03-19 12:44 ` Josh Cartwright [this message]
2015-03-19 13:19 ` Michal Simek
2015-03-19 13:33 ` [PATCH v3 1/2] " Josh Cartwright
2015-03-19 13:33 ` [PATCH 2/2] ARM: zynq: drop use of slcr_unlock in zynq_slcr_system_restart Josh Cartwright
2015-03-19 13:49 ` Josh Cartwright
2015-03-19 14:01 ` [PATCH v3 1/2] ARM: zynq: use restart_handler mechanism for slcr reset Michal Simek
2015-03-19 14:22 ` Josh Cartwright
2015-03-19 14:24 ` [PATCH v4] " Josh Cartwright
2015-03-20 7:48 ` Michal Simek
2015-03-19 13:37 ` [PATCH v2] " Josh Cartwright
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=20150319124414.GG24619@jcartwri.amer.corp.natinst.com \
--to=joshc@ni.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=soren.brinkmann@xilinx.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
all inboxes | Powered by JetHome®