From: Aaro Koskinen <aaro.koskinen@nokia.com>
To: ext Kevin Hilman <khilman@deeprootsystems.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
Rajendra Nayak <rnayak@ti.com>,
"Hogander Jouni (Nokia-D/Tampere)" <jouni.hogander@nokia.com>,
Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
Subject: Re: [PATCH 4/4] I2C: OMAP3: PM: (re)init for every transfer to support off-mode
Date: Fri, 26 Jun 2009 14:13:08 +0300 [thread overview]
Message-ID: <4A44AD44.4070107@nokia.com> (raw)
In-Reply-To: <1245965646-20070-5-git-send-email-khilman@deeprootsystems.com>
Hello,
Kevin Hilman wrote:
> From: Rajendra Nayak <rnayak@ti.com>
>
> Because of OMAP off-mode, powerdomain can go off when I2C is idle.
> Save enough state, and do a re-init for each transfer.
>
> Additional save/restore state added by Jagadeesh Bhaskar Pakaravoor
> (SYSC_REG) and Aaro Koskinen (wakeup sources.)
>
> Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
> Signed-off-by: Rajendra Nayak <rnayak@ti.com>
> Cc: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
> Cc: Aaro Koskinen <aaro.koskinen@nokia.com>
> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
This patch introduces a compiler warning:
CC drivers/i2c/busses/i2c-omap.o
drivers/i2c/busses/i2c-omap.c: In function 'omap_i2c_init':
drivers/i2c/busses/i2c-omap.c:303: warning: unused variable 'v'
So the declaration of "v" should be also removed here:
> @@ -289,21 +302,22 @@ static int omap_i2c_init(struct omap_i2c_dev *dev)
> } else if (dev->rev >= OMAP_I2C_REV_ON_3430) {
> u32 v;
>
> - v = SYSC_AUTOIDLE_MASK;
> - v |= SYSC_ENAWAKEUP_MASK;
> - v |= (SYSC_IDLEMODE_SMART <<
> + dev->syscstate = SYSC_AUTOIDLE_MASK;
> + dev->syscstate |= SYSC_ENAWAKEUP_MASK;
> + dev->syscstate |= (SYSC_IDLEMODE_SMART <<
A.
next prev parent reply other threads:[~2009-06-26 11:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-25 21:34 [PATCH 0/4] driver updates from PM branch for upstream Kevin Hilman
2009-06-25 21:34 ` [PATCH 1/4] OMAP: McSPI: enable wake-ups and smart-idle Kevin Hilman
2009-06-25 21:34 ` [PATCH 2/4] OMAP: McSPI: Convert bit shifted values into BIT format Kevin Hilman
2009-06-25 21:34 ` [PATCH 3/4] OMAP3 McSPI: Adds context save/restore Kevin Hilman
2009-06-25 21:34 ` [PATCH 4/4] I2C: OMAP3: PM: (re)init for every transfer to support off-mode Kevin Hilman
2009-06-26 11:13 ` Aaro Koskinen [this message]
2009-06-26 14:19 ` Kevin Hilman
2009-06-29 8:51 ` HU TAO-TGHK48
2009-06-29 17:04 ` Kevin Hilman
2009-06-29 19:28 ` Hunter, Jon
2009-06-29 21:15 ` Kevin Hilman
2009-06-30 16:49 ` Hunter, Jon
2009-07-01 9:43 ` HU TAO-TGHK48
2009-06-26 12:02 ` [PATCH 3/4] OMAP3 McSPI: Adds context save/restore Aaro Koskinen
2009-06-29 14:25 ` Aaro Koskinen
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=4A44AD44.4070107@nokia.com \
--to=aaro.koskinen@nokia.com \
--cc=j-pakaravoor@ti.com \
--cc=jouni.hogander@nokia.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=rnayak@ti.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 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.