From: mporter@ti.com (Matt Porter)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 0/7] uio_pruss cleanup and platform support
Date: Mon, 1 Oct 2012 08:54:18 -0400 [thread overview]
Message-ID: <20121001125418.GK5641@beef> (raw)
In-Reply-To: <alpine.DEB.2.00.1209291830270.20956@utopia.booyaka.com>
On Sat, Sep 29, 2012 at 06:34:54PM +0000, Paul Walmsley wrote:
>
> cc Omar
>
> Hi Matt
>
> On Fri, 28 Sep 2012, Matt Porter wrote:
>
> > The AM33xx support requires some help in hwmod due to the following
> > comment in arch/arm/mach-omap2/omap_hwmod.c:
> > /*
> > * If an IP block contains HW reset lines and any of them are
> > * asserted, we let integration code associated with that
> > * block handle the enable. We've received very little
> > * information on what those driver authors need, and until
> > * detailed information is provided and the driver code is
> > * posted to the public lists, this is probably the best we
> > * can do.
> > */
> >
> > The approach to deal with the hardware reset (for at least the pruss
> > hwmod) was to add a generic omap property to properly define this
> > hardware. The implementation simply deasserts any rst lines that
> > are called out in the property when the omap_device is
> > instantiated. This is not the ideal implementation as the sequence is
> > a bit wrong for pruss since the busy check during the hard reset
> > will fail, even though it fails in a benign manner. Ideally, we would
> > want the implementation to observe the ti,deassert-hard-reset property
> > and use that in omap_hwmod.c:_enable() *after* the module is unidled
> > and the clocks active. However, this is actually functional for purposes
> > of getting the uio_pruss driver up and running.
>
> Could you please sync with Omar on the hard reset handling? He posted
> some patches that change the hard reset code. Perhaps you can align on an
> approach with him?
Ok, yes, I looked over his series now and it goes some way to solving
the problem on PRUSS. My only concern is that the approach of loading up
function pointers in pdata for the assert/deassert calls gets a bit ugly on a
DT-only platform like AM33xx. I'll work with Omar on that.
> A few general comments: if some new per-IP block flag is needed to control
> this, the best place for it right now would be the hwmod data in
> arch/arm/mach-omap2/omap_hwmod_*_data.c, rather than DT. At some point
> soon, the hard reset handling will be split between a PRM driver and some
> hwmod bus driver, and it seems best to deal with the DT binding question
> at that time. That way we don't wind up with a legacy binding that has to
> be supported over the long term.
Ok, make sense.
Thanks,
Matt
next prev parent reply other threads:[~2012-10-01 12:54 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-28 19:37 [PATCH v2 0/7] uio_pruss cleanup and platform support Matt Porter
2012-09-28 19:37 ` [PATCH v2 1/7] uio: uio_pruss: replace private SRAM API with genalloc Matt Porter
2012-09-28 19:37 ` [PATCH v2 2/7] uio: uio_pruss: add support for am33xx Matt Porter
2012-09-28 19:37 ` [PATCH v2 3/7] uio: dt: add TI PRUSS binding Matt Porter
2012-09-28 19:37 ` [PATCH v2 4/7] ARM: davinci: Add support for an L3RAM gen_pool Matt Porter
2012-10-01 12:04 ` Sekhar Nori
2012-10-01 12:32 ` Matt Porter
2012-10-01 13:50 ` Ben Gardiner
2012-10-02 11:13 ` Sekhar Nori
2012-10-02 15:51 ` Ben Gardiner
2012-10-02 16:20 ` Matt Porter
2012-10-01 13:56 ` Matt Porter
2012-10-02 10:02 ` Sekhar Nori
2012-10-02 16:14 ` Matt Porter
2012-09-28 19:37 ` [PATCH v2 5/7] ARM: davinci: Add support for PRUSS on DA850 Matt Porter
2012-09-28 19:37 ` [PATCH v2 6/7] ARM: omap: add DT support for deasserting hardware reset lines Matt Porter
2012-09-28 19:37 ` [PATCH v2 7/7] ARM: dts: AM33xx PRUSS support Matt Porter
2012-09-29 18:34 ` [PATCH v2 0/7] uio_pruss cleanup and platform support Paul Walmsley
2012-10-01 12:54 ` Matt Porter [this message]
2012-10-03 15:00 ` Matt Porter
2012-10-05 4:43 ` Hebbar, Gururaja
2012-10-05 21:28 ` Matt Porter
2012-10-08 5:13 ` Hebbar, Gururaja
2015-08-02 18:42 ` Matwey V. Kornilov
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=20121001125418.GK5641@beef \
--to=mporter@ti.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).