From: Nishanth Menon <nm@ti.com>
To: "Hiremath, Vaibhav" <hvaibhav@ti.com>
Cc: Peter Korsgaard <jacmet@sunsite.dk>,
Kevin Hilman <khilman@linaro.org>, "Balbi, Felipe" <balbi@ti.com>,
Paul Walmsley <paul@pwsan.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
Tony Lindgren <tony@atomide.com>
Subject: Re: reset handling in am335x hwmod data
Date: Mon, 20 May 2013 10:06:17 -0500 [thread overview]
Message-ID: <20130520150617.GA22835@kahuna> (raw)
In-Reply-To: <79CD15C6BA57404B839C016229A409A83EC8E84F@DBDE04.ent.ti.com>
On 01:55-20130520, Hiremath, Vaibhav wrote:
>
> > -----Original Message-----
> > From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
> > owner@vger.kernel.org] On Behalf Of Hiremath, Vaibhav
> > Sent: Monday, May 20, 2013 12:09 PM
> > To: Menon, Nishanth; Peter Korsgaard
> > Cc: Kevin Hilman; Balbi, Felipe; Paul Walmsley; linux-
> > omap@vger.kernel.org; Tony Lindgren
> > Subject: RE: reset handling in am335x hwmod data
> >
> >
> > > -----Original Message-----
> > > From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
> > > owner@vger.kernel.org] On Behalf Of Menon, Nishanth
> > > Sent: Friday, May 17, 2013 11:49 PM
> > > To: Peter Korsgaard
> > > Cc: Kevin Hilman; Balbi, Felipe; Paul Walmsley; linux-
> > > omap@vger.kernel.org; Tony Lindgren
> > > Subject: Re: reset handling in am335x hwmod data
> > >
> > > On 20:10-20130517, Peter Korsgaard wrote:
> > > > >>>>> "Kevin" == Kevin Hilman <khilman@linaro.org> writes:
> > > >
> > > > >> In this case, we cannot reset that bank, otherwise Starter Kit
> > > will
> > > > >> never boot in mainline. Bad PCB design, I know, but it's not
> > > something
> > > > >> we can change now :-)
> > > >
> > > > Kevin> FWIW, we've seen this before (GPIO connected to PMIC reset
> > is
> > > a
> > > > Kevin> fun one), and this is why we have
> > > omap_hwmod_no_setup_reset().
> > > >
> > > > Yes, but there's no dts bindings for this, and from a quick test
> > the
> > > > reset handling happens before the device tree is probed.
> > > I have the same issue with TPS62361 on Palmas -> GPIO controls the
> > > voltage register supplying MPU, without any driver setting things up,
> > > GPIO gets reset and obviously voltage value switches to an voltage
> > > where
> > > device does not function.
> > >
> > > Solution I am working on to solve this is [1]: snippet is part of a
> > > patch that I am working on atm.
> > >
> > > This is the right way to do it IMHO. Will allow the driver to exist
> > > when
> > > HWMOD will be eventually replaced by some other framework.
> > >
> > >
> > > [1]: http://pastebin.com/XPmAB1Zb
> > >
> > >
> >
> > Both seems to be different to me. What we need is to
> > Avoid reset of whole GPIO bank during kernel boot.
Yes - that is what the above does - as long as the GPIO is requested and
set to the right level by the relevant driver, it is not "unused" and
hence not reset at late_init.
I am a little unclear as to why this needs to have anything to do with
the precise under-lying mechanism (hwmod or something else). May be
"both seem to be different to me" needs a little further elaboration?
Is this because there is no need for an EMIF driver to handle DDR? and
reset of the GPIO will occur as EMIF is configured at bootloader and
there is no need to do that in kernel, correspondingly there is no
"driver" to hold the gpio?
> >
> > Ideally, it would have been much better if drivers starts handling
> > Idle, ocp reset and standby on their own (killing dependency on hwmod
> > init layer).
> >
> > But looking at current state,
> > I agree we need to use DT property here, so how about
> > Adding DT property to GPIO node itself. But we have to parse
I believe you mean at OMAP specific DT property for hwmod?
something like ti,hwmod-no-init-reset?
> > It early during hwmod init stage. We should read all DT nodes
> > Inside function __setup() function, that way can get rid of
> > HWMOD_INIT_NO_RESET flag completely. Also, this will handle
> > Both ocp_reset and domain reset.
> >
>
> Forgot to mention,
>
> Since this is kernel boot failure issue, I think,
> By the time we reach to conclusion, another approach is to
> set "HWMOD_INIT_NO_RESET" flag For GPIO0 bank.
a) if the GPIO gets moved over to some other GPIO bank on another platform,
this wont work
b) for platforms that dont use gpio to hold DDR power, maybe this is not
even relevant and the GPIO bank can safely be reset?
>
> Thanks,
> Vaibhav
--
Regards,
Nishanth Menon
next prev parent reply other threads:[~2013-05-20 15:06 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-21 15:32 reset handling in am335x hwmod data Peter Korsgaard
2012-12-23 20:58 ` Paul Walmsley
2013-01-10 7:50 ` Peter Korsgaard
2013-01-18 14:18 ` Peter Korsgaard
2013-01-22 2:53 ` Paul Walmsley
2013-05-17 13:50 ` Felipe Balbi
2013-05-17 13:53 ` Peter Korsgaard
2013-05-17 17:08 ` Kevin Hilman
2013-05-17 18:10 ` Peter Korsgaard
2013-05-17 18:19 ` Nishanth Menon
2013-05-20 6:38 ` Hiremath, Vaibhav
2013-05-20 6:55 ` Hiremath, Vaibhav
2013-05-20 15:06 ` Nishanth Menon [this message]
2013-05-20 17:47 ` Hiremath, Vaibhav
2013-05-20 18:03 ` Nishanth Menon
2013-05-20 18:20 ` Hiremath, Vaibhav
2013-06-28 10:54 ` Felipe Balbi
2013-07-02 4:37 ` Hiremath, Vaibhav
2013-07-02 13:57 ` Nishanth Menon
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=20130520150617.GA22835@kahuna \
--to=nm@ti.com \
--cc=balbi@ti.com \
--cc=hvaibhav@ti.com \
--cc=jacmet@sunsite.dk \
--cc=khilman@linaro.org \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=tony@atomide.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;
as well as URLs for NNTP newsgroup(s).