From: toddpoynor@google.com (Todd Poynor)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2 v3] OMAP2+: hwmod: Add API to enable IO ring wakeup.
Date: Tue, 10 May 2011 09:04:04 -0700 [thread overview]
Message-ID: <BANLkTikVKV6DcuQ7nVHm=L_+hqeYjcyv0g@mail.gmail.com> (raw)
In-Reply-To: <1305023405-9561-2-git-send-email-govindraj.raja@ti.com>
On Tue, May 10, 2011 at 3:30 AM, Govindraj.R <govindraj.raja@ti.com> wrote:
...
>
> +/**
> + * omap_device_enable_ioring_wakeup - Set wakeup bit for iopad ring.
> + * @pdev: platform_device for which wakeup needs to be set.
> + *
> + * Caller should ensure this is called if device_may_wakeup(dev) is true
> + * traverse through each hwmod and check each available pads
> + * if pad is enabled then set wakeup enable flag for the mux pin.
> + * Return error if pads are not enabled or not available.
> + * Wakeup enable flag will be we used during hwmod idle transistion.
> + */
> +int omap_device_enable_ioring_wakeup(struct platform_device *pdev)
> +{
> + int ret = -EINVAL, i;
> + struct omap_device *od;
> + struct omap_hwmod *oh;
> +
> + od = _find_by_pdev(pdev);
> + for (i = 0; i < od->hwmods_cnt; i++) {
> + oh = od->hwmods[i];
> + ret = omap_hwmod_enable_ioring_wakeup(oh);
> + }
> +
> + return ret;
>
Error returns from all but the last hwmod are discarded. If the error
returns are meaningful and need corrective action (or warning messages) by
callers then these should be preserved.
...
Todd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110510/2cc3e67a/attachment-0001.html>
next prev parent reply other threads:[~2011-05-10 16:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-10 10:30 [PATCH 0/2 v3] OMAP2+: hwmod: Add hwmod's API's for pad wakeup Govindraj.R
2011-05-10 10:30 ` [PATCH 1/2 v3] OMAP2+: hwmod: Add API to enable IO ring wakeup Govindraj.R
2011-05-10 16:04 ` Todd Poynor [this message]
2011-05-11 4:16 ` Raja, Govindraj
2011-05-10 10:30 ` [PATCH 2/2 v3] OMAP2+: hwmod: Add API to check IO PAD wakeup status Govindraj.R
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='BANLkTikVKV6DcuQ7nVHm=L_+hqeYjcyv0g@mail.gmail.com' \
--to=toddpoynor@google.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).