linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] OMAP4: I2C: correct the SYSC register offset for OMAP4
@ 2011-06-20  9:25 shubhrajyoti-l0cyMroinI0
       [not found] ` <1308561956-25103-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: shubhrajyoti-l0cyMroinI0 @ 2011-06-20  9:25 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA
  Cc: ben-linux-elnMNo+KYs3YtjvyW6yDsg,
	andy.green-QSEj5FYQhm4dnm+yROfE0A, khilman-l0cyMroinI0,
	Shubhrajyoti D

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

The sysc offset is erroneous correct the offset.

Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>
---
 drivers/i2c/busses/i2c-omap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index d53cd61..cccec28 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -236,7 +236,7 @@ const static u8 reg_map_ip_v2[] = {
 	[OMAP_I2C_BUF_REG] = 0x94,
 	[OMAP_I2C_CNT_REG] = 0x98,
 	[OMAP_I2C_DATA_REG] = 0x9c,
-	[OMAP_I2C_SYSC_REG] = 0x20,
+	[OMAP_I2C_SYSC_REG] = 0x10,
 	[OMAP_I2C_CON_REG] = 0xa4,
 	[OMAP_I2C_OA_REG] = 0xa8,
 	[OMAP_I2C_SA_REG] = 0xac,
-- 
1.7.1

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

* Re: [PATCH] OMAP4: I2C: correct the SYSC register offset for OMAP4
       [not found] ` <1308561956-25103-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org>
@ 2011-06-20 15:39   ` Kevin Hilman
       [not found]     ` <87aadc8qcg.fsf-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Hilman @ 2011-06-20 15:39 UTC (permalink / raw)
  To: shubhrajyoti-l0cyMroinI0
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	ben-linux-elnMNo+KYs3YtjvyW6yDsg,
	andy.green-QSEj5FYQhm4dnm+yROfE0A

shubhrajyoti-l0cyMroinI0@public.gmane.org writes:

> From: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>
>
> The sysc offset is erroneous correct the offset.
>
> Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>


Actally, a better fix for this problem is to completely remove SYSC
register accesses for OMAP3+ platforms.  This is handled already at the
hwmod layer.

Also, please Cc linux-omap for OMAP changes.

Kevin

> ---
>  drivers/i2c/busses/i2c-omap.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
> index d53cd61..cccec28 100644
> --- a/drivers/i2c/busses/i2c-omap.c
> +++ b/drivers/i2c/busses/i2c-omap.c
> @@ -236,7 +236,7 @@ const static u8 reg_map_ip_v2[] = {
>  	[OMAP_I2C_BUF_REG] = 0x94,
>  	[OMAP_I2C_CNT_REG] = 0x98,
>  	[OMAP_I2C_DATA_REG] = 0x9c,
> -	[OMAP_I2C_SYSC_REG] = 0x20,
> +	[OMAP_I2C_SYSC_REG] = 0x10,
>  	[OMAP_I2C_CON_REG] = 0xa4,
>  	[OMAP_I2C_OA_REG] = 0xa8,
>  	[OMAP_I2C_SA_REG] = 0xac,

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

* Re: [PATCH] OMAP4: I2C: correct the SYSC register offset for OMAP4
       [not found]     ` <87aadc8qcg.fsf-l0cyMroinI0@public.gmane.org>
@ 2011-06-20 15:51       ` Shubhrajyoti
       [not found]         ` <4DFF6C93.7090605-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Shubhrajyoti @ 2011-06-20 15:51 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	ben-linux-elnMNo+KYs3YtjvyW6yDsg,
	andy.green-QSEj5FYQhm4dnm+yROfE0A

On Monday 20 June 2011 09:09 PM, Kevin Hilman wrote:
> shubhrajyoti-l0cyMroinI0@public.gmane.org writes:
>
>> From: Shubhrajyoti D<shubhrajyoti-l0cyMroinI0@public.gmane.org>
>>
>> The sysc offset is erroneous correct the offset.
>>
>> Signed-off-by: Shubhrajyoti D<shubhrajyoti-l0cyMroinI0@public.gmane.org>
>
> Actally, a better fix for this problem is to completely remove SYSC
> register accesses for OMAP3+ platforms.  This is handled already at the
> hwmod layer.
>
> Also, please Cc linux-omap for OMAP changes.
Agree,
1. Currently the flag HWMOD_INIT_NO_RESET is there for OMAP4.
2. Currently the reset is there even in the error paths and hwmod takes 
care of it in init only.
3. I2C reset sequence is disable -> reset -> enable and poll. So it 
needs a .reset function in hwmod.

Anyways fixing it is in my plans till then thought of having it corrected.
> Kevin
>
>> ---
>>   drivers/i2c/busses/i2c-omap.c |    2 +-
>>   1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
>> index d53cd61..cccec28 100644
>> --- a/drivers/i2c/busses/i2c-omap.c
>> +++ b/drivers/i2c/busses/i2c-omap.c
>> @@ -236,7 +236,7 @@ const static u8 reg_map_ip_v2[] = {
>>   	[OMAP_I2C_BUF_REG] = 0x94,
>>   	[OMAP_I2C_CNT_REG] = 0x98,
>>   	[OMAP_I2C_DATA_REG] = 0x9c,
>> -	[OMAP_I2C_SYSC_REG] = 0x20,
>> +	[OMAP_I2C_SYSC_REG] = 0x10,
>>   	[OMAP_I2C_CON_REG] = 0xa4,
>>   	[OMAP_I2C_OA_REG] = 0xa8,
>>   	[OMAP_I2C_SA_REG] = 0xac,

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

* Re: [PATCH] OMAP4: I2C: correct the SYSC register offset for OMAP4
       [not found]         ` <4DFF6C93.7090605-l0cyMroinI0@public.gmane.org>
@ 2011-06-20 16:15           ` Shubhrajyoti
  0 siblings, 0 replies; 4+ messages in thread
From: Shubhrajyoti @ 2011-06-20 16:15 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	ben-linux-elnMNo+KYs3YtjvyW6yDsg,
	andy.green-QSEj5FYQhm4dnm+yROfE0A

On Monday 20 June 2011 09:21 PM, Shubhrajyoti wrote:
> On Monday 20 June 2011 09:09 PM, Kevin Hilman wrote:
>> shubhrajyoti-l0cyMroinI0@public.gmane.org writes:
>>
>>> From: Shubhrajyoti D<shubhrajyoti-l0cyMroinI0@public.gmane.org>
>>>
>>> The sysc offset is erroneous correct the offset.
>>>
>>> Signed-off-by: Shubhrajyoti D<shubhrajyoti-l0cyMroinI0@public.gmane.org>
>>
>> Actally, a better fix for this problem is to completely remove SYSC
>> register accesses for OMAP3+ platforms.  This is handled already at the
>> hwmod layer.
>>
>> Also, please Cc linux-omap for OMAP changes.
> Agree,
> 1. Currently the flag HWMOD_INIT_NO_RESET is there for OMAP4.
> 2. Currently the reset is there even in the error paths and hwmod 
> takes care of it in init only.
> 3. I2C reset sequence is disable -> reset -> enable and poll. So it 
> needs a .reset function in hwmod.
Another issue I am not able to solve currently is that after reset the 
restore of settings.
Doing get_sync and put_sync is one option however it will be a hack again.
>
> Anyways fixing it is in my plans till then thought of having it 
> corrected.
>> Kevin
>>
>>> ---
>>>   drivers/i2c/busses/i2c-omap.c |    2 +-
>>>   1 files changed, 1 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/drivers/i2c/busses/i2c-omap.c 
>>> b/drivers/i2c/busses/i2c-omap.c
>>> index d53cd61..cccec28 100644
>>> --- a/drivers/i2c/busses/i2c-omap.c
>>> +++ b/drivers/i2c/busses/i2c-omap.c
>>> @@ -236,7 +236,7 @@ const static u8 reg_map_ip_v2[] = {
>>>       [OMAP_I2C_BUF_REG] = 0x94,
>>>       [OMAP_I2C_CNT_REG] = 0x98,
>>>       [OMAP_I2C_DATA_REG] = 0x9c,
>>> -    [OMAP_I2C_SYSC_REG] = 0x20,
>>> +    [OMAP_I2C_SYSC_REG] = 0x10,
>>>       [OMAP_I2C_CON_REG] = 0xa4,
>>>       [OMAP_I2C_OA_REG] = 0xa8,
>>>       [OMAP_I2C_SA_REG] = 0xac,
>

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

end of thread, other threads:[~2011-06-20 16:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20  9:25 [PATCH] OMAP4: I2C: correct the SYSC register offset for OMAP4 shubhrajyoti-l0cyMroinI0
     [not found] ` <1308561956-25103-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org>
2011-06-20 15:39   ` Kevin Hilman
     [not found]     ` <87aadc8qcg.fsf-l0cyMroinI0@public.gmane.org>
2011-06-20 15:51       ` Shubhrajyoti
     [not found]         ` <4DFF6C93.7090605-l0cyMroinI0@public.gmane.org>
2011-06-20 16:15           ` 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).