All of lore.kernel.org
 help / color / mirror / Atom feed
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 17:16:12 -0700	[thread overview]
Message-ID: <20100427001612.GU7225@atomide.com> (raw)
In-Reply-To: <87sk6hssds.fsf@deeprootsystems.com>

* Kevin Hilman <khilman@deeprootsystems.com> [100426 16:27]:
> >> +	if (cpu_is_omap34xx())
> >> +		pd->set_mpu_wkup_lat = omap_i2c_set_wfc_mpu_wkup_lat;
> 
> > BTW, in your version looks like compile will break if CONFIG_ARCH_OMAP3
> > is not set.
> 
> it shouldn't since if !CONFIG_ARCH_OMAP3, cpu_is_omap34xx() is zero
> and that code will not be compiled.

Yes but look how there's no else after #ifdef CONFIG_ARCH_OMAP3..

The if (0) does not help if the code refers something that's
undefined, in this case omap_i2c_set_wfc_mpu_wkup_lat would be
undefined. So I'd assume you'll get something like when
CONFIG_ARCH_OMAP3 is not set:

error: ‘omap_i2c_set_wfc_mpu_wkup_lat’ undeclared (first use in this function)

One way to fix that would be to have #else statement with
#define omap_i2c_set_wfc_mpu_wkup_lat	NULL

Anyways, commenting on this just based on my virtual preprocessor,
I have not actually tried it :)
 
> Anyways, here's updated version which gets rid of both problems.

Thanks! Will add to i2c-omap-for-ben branch.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2010-04-27  0:16 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
2010-04-26 23:31         ` Kevin Hilman
2010-04-27  0:16           ` Tony Lindgren [this message]

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=20100427001612.GU7225@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.