linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2] OMAP4: I2C: Enable the wakeup in I2C_WE
@ 2011-07-29 15:24 Shubhrajyoti D
       [not found] ` <1311953092-12506-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org>
  2011-08-02 23:16 ` Kevin Hilman
  0 siblings, 2 replies; 4+ messages in thread
From: Shubhrajyoti D @ 2011-07-29 15:24 UTC (permalink / raw)
  To: linux-omap-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, santosh.shilimkar-l0cyMroinI0,
	Shubhrajyoti D

Currently for OMAP4 the I2C_WE is not programmed.
This patch enables the programming for OMAP4.

This patch fixes a bad conflict resolution.
This effectively restores the following commit

Commit 120bdaa47[i2c-omap: Program I2C_WE on OMAP4 to enable i2c wakeup] 

which got changed by

Commit a3a7acbc[I2C: OMAP2+: address confused probed version naming] 

Reviewed-by: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
Reported-by: Santosh Shilimkar <santosh.shilimkar-l0cyMroinI0@public.gmane.org>
Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>
---
TODO:
Currently all the wakeup sources are enabled.
There is scope of optimising the same. Will revisit it.
Rebased on Kevin's wip/i2c branch
Tested on OMAP4430.

 drivers/i2c/busses/i2c-omap.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index d05efe7..18cc0af 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -313,9 +313,8 @@ static int omap_i2c_init(struct omap_i2c_dev *dev)
 		 * REVISIT: Some wakeup sources might not be needed.
 		 */
 		dev->westate = OMAP_I2C_WE_ALL;
-		if (dev->rev < OMAP_I2C_REV_ON_3530_4430)
-			omap_i2c_write_reg(dev, OMAP_I2C_WE_REG,
-							dev->westate);
+		omap_i2c_write_reg(dev, OMAP_I2C_WE_REG,
+						dev->westate);
 	}
 	omap_i2c_write_reg(dev, OMAP_I2C_CON_REG, 0);
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCHv2] OMAP4: I2C: Enable the wakeup in I2C_WE
       [not found] ` <1311953092-12506-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org>
@ 2011-08-02 23:05   ` Kevin Hilman
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Hilman @ 2011-08-02 23:05 UTC (permalink / raw)
  To: Shubhrajyoti D
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA, santosh.shilimkar-l0cyMroinI0

Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> writes:

> Currently for OMAP4 the I2C_WE is not programmed.
> This patch enables the programming for OMAP4.
>
> This patch fixes a bad conflict resolution.

...by me I guess, sorry about that.

> This effectively restores the following commit
>
> Commit 120bdaa47[i2c-omap: Program I2C_WE on OMAP4 to enable i2c wakeup] 
>
> which got changed by
>
> Commit a3a7acbc[I2C: OMAP2+: address confused probed version naming] 
>
> Reviewed-by: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
> Reported-by: Santosh Shilimkar <santosh.shilimkar-l0cyMroinI0@public.gmane.org>
> Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>

Thanks, adding to my wip/i2c branch.  I'll shortly be breaking that
branch up into fixes for v3.1 (like this one) and stuff proposed for
3.2.  The branch names will be something like for_3.1/i2c-fixes and
for_3.2/i2c

Kevin




> ---
> TODO:
> Currently all the wakeup sources are enabled.
> There is scope of optimising the same. Will revisit it.
> Rebased on Kevin's wip/i2c branch
> Tested on OMAP4430.
>
>  drivers/i2c/busses/i2c-omap.c |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
> index d05efe7..18cc0af 100644
> --- a/drivers/i2c/busses/i2c-omap.c
> +++ b/drivers/i2c/busses/i2c-omap.c
> @@ -313,9 +313,8 @@ static int omap_i2c_init(struct omap_i2c_dev *dev)
>  		 * REVISIT: Some wakeup sources might not be needed.
>  		 */
>  		dev->westate = OMAP_I2C_WE_ALL;
> -		if (dev->rev < OMAP_I2C_REV_ON_3530_4430)
> -			omap_i2c_write_reg(dev, OMAP_I2C_WE_REG,
> -							dev->westate);
> +		omap_i2c_write_reg(dev, OMAP_I2C_WE_REG,
> +						dev->westate);
>  	}
>  	omap_i2c_write_reg(dev, OMAP_I2C_CON_REG, 0);

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCHv2] OMAP4: I2C: Enable the wakeup in I2C_WE
  2011-07-29 15:24 [PATCHv2] OMAP4: I2C: Enable the wakeup in I2C_WE Shubhrajyoti D
       [not found] ` <1311953092-12506-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org>
@ 2011-08-02 23:16 ` Kevin Hilman
  2011-08-03  6:09   ` Shubhrajyoti
  1 sibling, 1 reply; 4+ messages in thread
From: Kevin Hilman @ 2011-08-02 23:16 UTC (permalink / raw)
  To: Shubhrajyoti D; +Cc: linux-omap, linux-i2c, santosh.shilimkar

Shubhrajyoti D <shubhrajyoti@ti.com> writes:

> Currently for OMAP4 the I2C_WE is not programmed.
> This patch enables the programming for OMAP4.
>
> This patch fixes a bad conflict resolution.
> This effectively restores the following commit
>
> Commit 120bdaa47[i2c-omap: Program I2C_WE on OMAP4 to enable i2c wakeup] 
>
> which got changed by
>
> Commit a3a7acbc[I2C: OMAP2+: address confused probed version naming] 
>
> Reviewed-by: Felipe Balbi <balbi@ti.com>
> Reported-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
> ---
> TODO:
> Currently all the wakeup sources are enabled.
> There is scope of optimising the same. Will revisit it.
> Rebased on Kevin's wip/i2c branch

Actually, this is based on top of your I2C reset series.

Please rebase this onto my for_3.1/i2c-andy branch, and I'll queue it as
a fix for v3.1.

Thanks,

Kevin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCHv2] OMAP4: I2C: Enable the wakeup in I2C_WE
  2011-08-02 23:16 ` Kevin Hilman
@ 2011-08-03  6:09   ` Shubhrajyoti
  0 siblings, 0 replies; 4+ messages in thread
From: Shubhrajyoti @ 2011-08-03  6:09 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: linux-omap, linux-i2c, santosh.shilimkar

On Wednesday 03 August 2011 04:46 AM, Kevin Hilman wrote:
> Shubhrajyoti D<shubhrajyoti@ti.com>  writes:
>
>> Currently for OMAP4 the I2C_WE is not programmed.
>> This patch enables the programming for OMAP4.
>>
>> This patch fixes a bad conflict resolution.
>> This effectively restores the following commit
>>
>> Commit 120bdaa47[i2c-omap: Program I2C_WE on OMAP4 to enable i2c wakeup]
>>
>> which got changed by
>>
>> Commit a3a7acbc[I2C: OMAP2+: address confused probed version naming]
>>
>> Reviewed-by: Felipe Balbi<balbi@ti.com>
>> Reported-by: Santosh Shilimkar<santosh.shilimkar@ti.com>
>> Signed-off-by: Shubhrajyoti D<shubhrajyoti@ti.com>
>> ---
>> TODO:
>> Currently all the wakeup sources are enabled.
>> There is scope of optimising the same. Will revisit it.
>> Rebased on Kevin's wip/i2c branch
> Actually, this is based on top of your I2C reset series.
>
> Please rebase this onto my for_3.1/i2c-andy branch, and I'll queue it as
> a fix for v3.1.
yes will rebase and send.
> Thanks,
>
> Kevin


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-03  6:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-29 15:24 [PATCHv2] OMAP4: I2C: Enable the wakeup in I2C_WE Shubhrajyoti D
     [not found] ` <1311953092-12506-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org>
2011-08-02 23:05   ` Kevin Hilman
2011-08-02 23:16 ` Kevin Hilman
2011-08-03  6:09   ` Shubhrajyoti

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).