From: Tony Lindgren <tony@atomide.com>
To: Kevin Hilman <khilman@deeprootsystems.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/1] i2c-omap: add mpu wake up latency constraint in i2c
Date: Mon, 26 Apr 2010 16:12:19 -0700 [thread overview]
Message-ID: <20100426231219.GS7225@atomide.com> (raw)
In-Reply-To: <8739yhu8b5.fsf@deeprootsystems.com>
* Kevin Hilman <khilman@deeprootsystems.com> [100426 15:57]:
> Tony Lindgren <tony@atomide.com> writes:
>
> +#ifdef CONFIG_ARCH_OMAP3
> +/*
> + * omap_i2c_set_wfc_mpu_wkup_lat - sets mpu wake up constraint
> + * @dev: i2c bus device pointer
> + * @val: latency constraint to set, -1 to disable constraint
> + *
> + * When waiting for completion of a i2c transfer, we need to set a wake up
> + * latency constraint for the MPU. This is to ensure quick enough wakeup from
> + * idle, when transfer completes.
> + */
> +static void omap_i2c_set_wfc_mpu_wkup_lat(struct device *dev, int val)
> +{
> + omap_pm_set_max_mpu_wakeup_lat(dev, val);
> +}
> +#endif
> +
Can't you leave out the above too?
> + struct omap_i2c_bus_platform_data *pd;
> struct resource *res;
> resource_size_t base, irq;
>
> pdev = &omap_i2c_devices[bus_id - 1];
> + pd = pdev->dev.platform_data;
> if (bus_id == 1) {
> res = pdev->resource;
> if (cpu_class_is_omap1()) {
> @@ -122,6 +143,8 @@ static int __init omap_i2c_add_bus(int bus_id)
> omap1_i2c_mux_pins(bus_id);
> if (cpu_class_is_omap2())
> omap2_i2c_mux_pins(bus_id);
> + if (cpu_is_omap34xx())
> + pd->set_mpu_wkup_lat = omap_i2c_set_wfc_mpu_wkup_lat;
And then just set
pd->set_mpu_wkup_lat = omap_pm_set_max_mpu_wakeup_lat;
Here instead?
BTW, in your version looks like compile will break if CONFIG_ARCH_OMAP3
is not set.
Tony
next prev parent reply other threads:[~2010-04-26 23:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 19:04 [PATCH 0/1] i2c PM change for omap-testing Kevin Hilman
2010-04-21 19:04 ` [PATCH 1/1] i2c-omap: add mpu wake up latency constraint in i2c Kevin Hilman
2010-04-21 23:58 ` Paul Walmsley
2010-04-26 22:58 ` Tony Lindgren
2010-04-26 23:02 ` Kevin Hilman
2010-04-26 23:12 ` Tony Lindgren [this message]
2010-04-26 23:31 ` Kevin Hilman
2010-04-27 0:16 ` Tony Lindgren
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=20100426231219.GS7225@atomide.com \
--to=tony@atomide.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.