All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
@ 2011-06-29  6:00 Shubhrajyoti D
  2011-06-29 23:23 ` Kevin Hilman
  0 siblings, 1 reply; 17+ messages in thread
From: Shubhrajyoti D @ 2011-06-29  6:00 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, Shubhrajyoti D

Currently the fifo depth is set to zero for OMAP4 which disables
the FIFO usage. This patch enables the FIFO usage for I2C transactions
on OMAP4 also.

Reported-By:Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>
---
 drivers/i2c/busses/i2c-omap.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index 58a58c7..934b52c 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -1059,13 +1059,12 @@ omap_i2c_probe(struct platform_device *pdev)
 		 * size. This is to ensure that we can handle the status on int
 		 * call back latencies.
 		 */
-		if (dev->rev >= OMAP_I2C_REV_ON_4430) {
-			dev->fifo_size = 0;
+		dev->fifo_size = (dev->fifo_size / 2);
+		if (dev->rev >= OMAP_I2C_REV_ON_4430)
 			dev->b_hw = 0; /* Disable hardware fixes */
-		} else {
-			dev->fifo_size = (dev->fifo_size / 2);
+		else
 			dev->b_hw = 1; /* Enable hardware fixes */
-		}
+
 		/* calculate wakeup latency constraint for MPU */
 		if (dev->set_mpu_wkup_lat != NULL)
 			dev->latency = (1000000 * dev->fifo_size) /
-- 
1.7.1

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

* Re: [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
  2011-06-29  6:00 [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4 Shubhrajyoti D
@ 2011-06-29 23:23 ` Kevin Hilman
  2011-06-30  7:24   ` Shubhrajyoti
  0 siblings, 1 reply; 17+ messages in thread
From: Kevin Hilman @ 2011-06-29 23:23 UTC (permalink / raw)
  To: Shubhrajyoti D; +Cc: linux-i2c, linux-omap

Shubhrajyoti D <shubhrajyoti@ti.com> writes:

> Currently the fifo depth is set to zero for OMAP4 which disables
> the FIFO usage. This patch enables the FIFO usage for I2C transactions
> on OMAP4 also.

Do you know the history of why the FIFO depth was set to zero?  A
summary of that history would greatly help reviewers.

> Reported-By:Nishanth Menon <nm@ti.com>

minor: missing space after ':'

> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>

Tested on what platforms?   OMAP3 also?

Could you please rebase this onto my for_3.1/i2c-andy branch[1] where we
have a large series of I2C patches queued up for the v3.1 merge window
already? 

Thanks,

Kevin

[1] git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git


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

* Re: [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
  2011-06-29 23:23 ` Kevin Hilman
@ 2011-06-30  7:24   ` Shubhrajyoti
  2011-06-30 22:50     ` Kevin Hilman
  0 siblings, 1 reply; 17+ messages in thread
From: Shubhrajyoti @ 2011-06-30  7:24 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: linux-i2c, linux-omap

On Thursday 30 June 2011 04:53 AM, Kevin Hilman wrote:
> Shubhrajyoti D<shubhrajyoti@ti.com>  writes:
>
>> Currently the fifo depth is set to zero for OMAP4 which disables
>> the FIFO usage. This patch enables the FIFO usage for I2C transactions
>> on OMAP4 also.
> Do you know the history of why the FIFO depth was set to zero?  A
> summary of that history would greatly help reviewers.
>
>> Reported-By:Nishanth Menon<nm@ti.com>
> minor: missing space after ':'
>
>> Signed-off-by: Shubhrajyoti D<shubhrajyoti@ti.com>
> Tested on what platforms?   OMAP3 also?
OMAP4 and OMAP3
> Could you please rebase this onto my for_3.1/i2c-andy branch[1] where we
> have a large series of I2C patches queued up for the v3.1 merge window
> already?
OK will rebase and resend.
> Thanks,
>
> Kevin
>
> [1] git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git
>


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

* Re: [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
  2011-06-30  7:24   ` Shubhrajyoti
@ 2011-06-30 22:50     ` Kevin Hilman
       [not found]       ` <874o37djdg.fsf-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Kevin Hilman @ 2011-06-30 22:50 UTC (permalink / raw)
  To: Shubhrajyoti; +Cc: linux-i2c, linux-omap

Shubhrajyoti <shubhrajyoti@ti.com> writes:

> On Thursday 30 June 2011 04:53 AM, Kevin Hilman wrote:
>> Shubhrajyoti D<shubhrajyoti@ti.com>  writes:
>>
>>> Currently the fifo depth is set to zero for OMAP4 which disables
>>> the FIFO usage. This patch enables the FIFO usage for I2C transactions
>>> on OMAP4 also.
>> Do you know the history of why the FIFO depth was set to zero?  A
>> summary of that history would greatly help reviewers.
>>
>>> Reported-By:Nishanth Menon<nm@ti.com>
>> minor: missing space after ':'
>>
>>> Signed-off-by: Shubhrajyoti D<shubhrajyoti@ti.com>
>> Tested on what platforms?   OMAP3 also?
> OMAP4 and OMAP3

Please add a brief summary of what platforms it was tested on in the
changelog.

>> Could you please rebase this onto my for_3.1/i2c-andy branch[1] where we
>> have a large series of I2C patches queued up for the v3.1 merge window
>> already?
> OK will rebase and resend.

Thanks,

Kevin

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

* Re: [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
       [not found]       ` <874o37djdg.fsf-l0cyMroinI0@public.gmane.org>
@ 2011-07-05  7:11         ` Shubhrajyoti
  0 siblings, 0 replies; 17+ messages in thread
From: Shubhrajyoti @ 2011-07-05  7:11 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, linux-omap-u79uwXL29TY76Z2rM5mHXA

On Friday 01 July 2011 04:20 AM, Kevin Hilman wrote:
> Shubhrajyoti<shubhrajyoti-l0cyMroinI0@public.gmane.org>  writes:
>
>> On Thursday 30 June 2011 04:53 AM, Kevin Hilman wrote:
>>> Shubhrajyoti D<shubhrajyoti-l0cyMroinI0@public.gmane.org>   writes:
>>>
>>>> Currently the fifo depth is set to zero for OMAP4 which disables
>>>> the FIFO usage. This patch enables the FIFO usage for I2C transactions
>>>> on OMAP4 also.
>>> Do you know the history of why the FIFO depth was set to zero?  A
>>> summary of that history would greatly help reviewers.
Looks like it is disabled in the initial bring up and some how didn’t 
get enabled.
All I could find is
http://www.mail-archive.com/linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org/msg01404.html

>>>> Reported-By:Nishanth Menon<nm-l0cyMroinI0@public.gmane.org>
>>> minor: missing space after ':'
Yes will fix it.
>>>> Signed-off-by: Shubhrajyoti D<shubhrajyoti-l0cyMroinI0@public.gmane.org>
>>> Tested on what platforms?   OMAP3 also?
>> OMAP4 and OMAP3
> Please add a brief summary of what platforms it was tested on in the
> changelog.
Will update it
>>> Could you please rebase this onto my for_3.1/i2c-andy branch[1] where we
>>> have a large series of I2C patches queued up for the v3.1 merge window
>>> already?
>> OK will rebase and resend.
Sent a rebased version.
> Thanks,
>
> Kevin

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

* Re: [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
  2011-11-03 15:17 ` Shubhrajyoti D
@ 2011-11-08 20:01     ` Kevin Hilman
  -1 siblings, 0 replies; 17+ messages in thread
From: Kevin Hilman @ 2011-11-08 20:01 UTC (permalink / raw)
  To: Shubhrajyoti D, Ben Dooks
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

+Ben Dooks

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

> Currently the fifo depth is set to zero for OMAP4 which disables
> the FIFO usage. This patch enables the FIFO usage for I2C transactions
> on OMAP4 also.
>
> Tested on omap4430 and 3430.
>
> Tested-and-Reported-by: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
> Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>

Acked-by: Kevin Hilman <khilman-l0cyMroinI0@public.gmane.org>

Ben, please queue as a fix for the v3.2-rc.  It applies cleanly to
v3.2-rc1.

If you prefer a branch:
https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git for_3.2/fixes/i2c

Thanks,

Kevin

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

* [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
@ 2011-11-08 20:01     ` Kevin Hilman
  0 siblings, 0 replies; 17+ messages in thread
From: Kevin Hilman @ 2011-11-08 20:01 UTC (permalink / raw)
  To: linux-arm-kernel

+Ben Dooks

Shubhrajyoti D <shubhrajyoti@ti.com> writes:

> Currently the fifo depth is set to zero for OMAP4 which disables
> the FIFO usage. This patch enables the FIFO usage for I2C transactions
> on OMAP4 also.
>
> Tested on omap4430 and 3430.
>
> Tested-and-Reported-by: Nishanth Menon <nm@ti.com>
> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>

Acked-by: Kevin Hilman <khilman@ti.com>

Ben, please queue as a fix for the v3.2-rc.  It applies cleanly to
v3.2-rc1.

If you prefer a branch:
https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git for_3.2/fixes/i2c

Thanks,

Kevin

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

* Re: [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
  2011-11-03 14:21             ` Kevin Hilman
@ 2011-11-03 15:19               ` Shubhrajyoti
  0 siblings, 0 replies; 17+ messages in thread
From: Shubhrajyoti @ 2011-11-03 15:19 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: Ben Dooks, linux-i2c, linux-omap

On Thursday 03 November 2011 07:51 PM, Kevin Hilman wrote:
> Shubhrajyoti <shubhrajyoti@ti.com> writes:
>
>> On Thursday 14 July 2011 12:50 AM, Ben Dooks wrote:
>>> On Tue, Jul 05, 2011 at 05:01:01PM -0700, Kevin Hilman wrote:
>>>> Shubhrajyoti D <shubhrajyoti@ti.com> writes:
>>>>
>>>>> Currently the fifo depth is set to zero for OMAP4 which disables
>>>>> the FIFO usage. This patch enables the FIFO usage for I2C transactions
>>>>> on OMAP4 also.
>>>>>
>>>>> Tested on omap4430 and 3430.
>>>>>
>>>>> Reported-By: Nishanth Menon <nm@ti.com>
>>>>> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
>>>>> ---
>>>>> Rebased on top of the series by Andy Green
>>>>> http://www.spinics.net/lists/linux-i2c/msg05632.html
>>>> Thanks.
>>>>
>>>> This is v3.1 material, but would be nice to see a couple tested-by or
>>>> acked-by tags from folks that are more actively using the I2C driver
>>>> before merging
>>>>
>>>> Kevin
>>> guess you'll be picking these up?
>> Ben Could this patch be lined up as well?
> Please update this patch against my for_3.2/i2c-cleanup branch, and add
> the Tested-by from Nishanth Menon.
>
> Then I will push to get this in as a fix for v3.2-rc.
Thanks the patch was already rebased to the 

for_3.2/i2c-cleanup branch and applies on your tree . Resent it adding Nishanth's Tested-by

Thanks.

> Kevin


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

* [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
@ 2011-11-03 15:17 ` Shubhrajyoti D
  0 siblings, 0 replies; 17+ messages in thread
From: Shubhrajyoti D @ 2011-11-03 15:17 UTC (permalink / raw)
  To: linux-omap; +Cc: linux-i2c, linux-arm-kernel, khilman, Shubhrajyoti D

Currently the fifo depth is set to zero for OMAP4 which disables
the FIFO usage. This patch enables the FIFO usage for I2C transactions
on OMAP4 also.

Tested on omap4430 and 3430.

Tested-and-Reported-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
---
 drivers/i2c/busses/i2c-omap.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index a43d002..fa23faa 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -1047,13 +1047,14 @@ omap_i2c_probe(struct platform_device *pdev)
 		 * size. This is to ensure that we can handle the status on int
 		 * call back latencies.
 		 */
-		if (dev->rev >= OMAP_I2C_REV_ON_3530_4430) {
-			dev->fifo_size = 0;
+
+		dev->fifo_size = (dev->fifo_size / 2);
+
+		if (dev->rev >= OMAP_I2C_REV_ON_3530_4430)
 			dev->b_hw = 0; /* Disable hardware fixes */
-		} else {
-			dev->fifo_size = (dev->fifo_size / 2);
+		else
 			dev->b_hw = 1; /* Enable hardware fixes */
-		}
+
 		/* calculate wakeup latency constraint for MPU */
 		if (dev->set_mpu_wkup_lat != NULL)
 			dev->latency = (1000000 * dev->fifo_size) /
-- 
1.7.1


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

* [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
@ 2011-11-03 15:17 ` Shubhrajyoti D
  0 siblings, 0 replies; 17+ messages in thread
From: Shubhrajyoti D @ 2011-11-03 15:17 UTC (permalink / raw)
  To: linux-arm-kernel

Currently the fifo depth is set to zero for OMAP4 which disables
the FIFO usage. This patch enables the FIFO usage for I2C transactions
on OMAP4 also.

Tested on omap4430 and 3430.

Tested-and-Reported-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
---
 drivers/i2c/busses/i2c-omap.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index a43d002..fa23faa 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -1047,13 +1047,14 @@ omap_i2c_probe(struct platform_device *pdev)
 		 * size. This is to ensure that we can handle the status on int
 		 * call back latencies.
 		 */
-		if (dev->rev >= OMAP_I2C_REV_ON_3530_4430) {
-			dev->fifo_size = 0;
+
+		dev->fifo_size = (dev->fifo_size / 2);
+
+		if (dev->rev >= OMAP_I2C_REV_ON_3530_4430)
 			dev->b_hw = 0; /* Disable hardware fixes */
-		} else {
-			dev->fifo_size = (dev->fifo_size / 2);
+		else
 			dev->b_hw = 1; /* Enable hardware fixes */
-		}
+
 		/* calculate wakeup latency constraint for MPU */
 		if (dev->set_mpu_wkup_lat != NULL)
 			dev->latency = (1000000 * dev->fifo_size) /
-- 
1.7.1

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

* Re: [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
       [not found]           ` <4EB278C4.6030006-l0cyMroinI0@public.gmane.org>
@ 2011-11-03 14:21             ` Kevin Hilman
  2011-11-03 15:19               ` Shubhrajyoti
  0 siblings, 1 reply; 17+ messages in thread
From: Kevin Hilman @ 2011-11-03 14:21 UTC (permalink / raw)
  To: Shubhrajyoti
  Cc: Ben Dooks, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	linux-omap-u79uwXL29TY76Z2rM5mHXA

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

> On Thursday 14 July 2011 12:50 AM, Ben Dooks wrote:
>> On Tue, Jul 05, 2011 at 05:01:01PM -0700, Kevin Hilman wrote:
>>> Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> writes:
>>>
>>>> Currently the fifo depth is set to zero for OMAP4 which disables
>>>> the FIFO usage. This patch enables the FIFO usage for I2C transactions
>>>> on OMAP4 also.
>>>>
>>>> Tested on omap4430 and 3430.
>>>>
>>>> Reported-By: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
>>>> Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>
>>>> ---
>>>> Rebased on top of the series by Andy Green
>>>> http://www.spinics.net/lists/linux-i2c/msg05632.html
>>> Thanks.
>>>
>>> This is v3.1 material, but would be nice to see a couple tested-by or
>>> acked-by tags from folks that are more actively using the I2C driver
>>> before merging
>>>
>>> Kevin
>> guess you'll be picking these up?
>
> Ben Could this patch be lined up as well?

Please update this patch against my for_3.2/i2c-cleanup branch, and add
the Tested-by from Nishanth Menon.

Then I will push to get this in as a fix for v3.2-rc.

Kevin

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

* Re: [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
       [not found]       ` <20110713192055.GC3369-RazCHl0VsYgkUSuvROHNpA@public.gmane.org>
@ 2011-11-03 11:19         ` Shubhrajyoti
       [not found]           ` <4EB278C4.6030006-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Shubhrajyoti @ 2011-11-03 11:19 UTC (permalink / raw)
  To: Ben Dooks
  Cc: Kevin Hilman, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	linux-omap-u79uwXL29TY76Z2rM5mHXA

On Thursday 14 July 2011 12:50 AM, Ben Dooks wrote:
> On Tue, Jul 05, 2011 at 05:01:01PM -0700, Kevin Hilman wrote:
>> Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> writes:
>>
>>> Currently the fifo depth is set to zero for OMAP4 which disables
>>> the FIFO usage. This patch enables the FIFO usage for I2C transactions
>>> on OMAP4 also.
>>>
>>> Tested on omap4430 and 3430.
>>>
>>> Reported-By: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
>>> Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>
>>> ---
>>> Rebased on top of the series by Andy Green
>>> http://www.spinics.net/lists/linux-i2c/msg05632.html
>> Thanks.
>>
>> This is v3.1 material, but would be nice to see a couple tested-by or
>> acked-by tags from folks that are more actively using the I2C driver
>> before merging
>>
>> Kevin
> guess you'll be picking these up?

Ben Could this patch be lined up as well?
>  
>>>  drivers/i2c/busses/i2c-omap.c |   11 ++++++-----
>>>  1 files changed, 6 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
>>> index d53cd61..8f87a37 100644
>>> --- a/drivers/i2c/busses/i2c-omap.c
>>> +++ b/drivers/i2c/busses/i2c-omap.c
>>> @@ -1068,13 +1068,14 @@ omap_i2c_probe(struct platform_device *pdev)
>>>  		 * size. This is to ensure that we can handle the status on int
>>>  		 * call back latencies.
>>>  		 */
>>> -		if (dev->rev >= OMAP_I2C_REV_ON_3530_4430) {
>>> -			dev->fifo_size = 0;
>>> +
>>> +		dev->fifo_size = (dev->fifo_size / 2);
>>> +
>>> +		if (dev->rev >= OMAP_I2C_REV_ON_3530_4430)
>>>  			dev->b_hw = 0; /* Disable hardware fixes */
>>> -		} else {
>>> -			dev->fifo_size = (dev->fifo_size / 2);
>>> +		else
>>>  			dev->b_hw = 1; /* Enable hardware fixes */
>>> -		}
>>> +
>>>  		/* calculate wakeup latency constraint for MPU */
>>>  		if (dev->set_mpu_wkup_lat != NULL)
>>>  			dev->latency = (1000000 * dev->fifo_size) /
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
       [not found]   ` <8739ikp9aa.fsf-l0cyMroinI0@public.gmane.org>
  2011-07-06  0:05     ` Menon, Nishanth
@ 2011-07-13 19:20     ` Ben Dooks
       [not found]       ` <20110713192055.GC3369-RazCHl0VsYgkUSuvROHNpA@public.gmane.org>
  1 sibling, 1 reply; 17+ messages in thread
From: Ben Dooks @ 2011-07-13 19:20 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Shubhrajyoti D, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	linux-omap-u79uwXL29TY76Z2rM5mHXA

On Tue, Jul 05, 2011 at 05:01:01PM -0700, Kevin Hilman wrote:
> Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> writes:
> 
> > Currently the fifo depth is set to zero for OMAP4 which disables
> > the FIFO usage. This patch enables the FIFO usage for I2C transactions
> > on OMAP4 also.
> >
> > Tested on omap4430 and 3430.
> >
> > Reported-By: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
> > Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>
> > ---
> > Rebased on top of the series by Andy Green
> > http://www.spinics.net/lists/linux-i2c/msg05632.html
> 
> Thanks.
> 
> This is v3.1 material, but would be nice to see a couple tested-by or
> acked-by tags from folks that are more actively using the I2C driver
> before merging
> 
> Kevin

guess you'll be picking these up?
 
> 
> >  drivers/i2c/busses/i2c-omap.c |   11 ++++++-----
> >  1 files changed, 6 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
> > index d53cd61..8f87a37 100644
> > --- a/drivers/i2c/busses/i2c-omap.c
> > +++ b/drivers/i2c/busses/i2c-omap.c
> > @@ -1068,13 +1068,14 @@ omap_i2c_probe(struct platform_device *pdev)
> >  		 * size. This is to ensure that we can handle the status on int
> >  		 * call back latencies.
> >  		 */
> > -		if (dev->rev >= OMAP_I2C_REV_ON_3530_4430) {
> > -			dev->fifo_size = 0;
> > +
> > +		dev->fifo_size = (dev->fifo_size / 2);
> > +
> > +		if (dev->rev >= OMAP_I2C_REV_ON_3530_4430)
> >  			dev->b_hw = 0; /* Disable hardware fixes */
> > -		} else {
> > -			dev->fifo_size = (dev->fifo_size / 2);
> > +		else
> >  			dev->b_hw = 1; /* Enable hardware fixes */
> > -		}
> > +
> >  		/* calculate wakeup latency constraint for MPU */
> >  		if (dev->set_mpu_wkup_lat != NULL)
> >  			dev->latency = (1000000 * dev->fifo_size) /
> --
> To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
       [not found]       ` <CAOMWX4crxR0TQ38mFVkqv5eDQuEAry139+zoD2kKNm6imeR7yQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-07-06 14:30         ` Kevin Hilman
  0 siblings, 0 replies; 17+ messages in thread
From: Kevin Hilman @ 2011-07-06 14:30 UTC (permalink / raw)
  To: Menon, Nishanth
  Cc: Shubhrajyoti D, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	linux-omap-u79uwXL29TY76Z2rM5mHXA

"Menon, Nishanth" <nm-l0cyMroinI0@public.gmane.org> writes:

> On Tue, Jul 5, 2011 at 17:01, Kevin Hilman <khilman-l0cyMroinI0@public.gmane.org> wrote:
>>
>> Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> writes:
>>
>> > Currently the fifo depth is set to zero for OMAP4 which disables
>> > the FIFO usage. This patch enables the FIFO usage for I2C transactions
>> > on OMAP4 also.
>> >
>> > Tested on omap4430 and 3430.
>> >
>> > Reported-By: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
>> > Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>
>> > ---
>> > Rebased on top of the series by Andy Green
>> > http://www.spinics.net/lists/linux-i2c/msg05632.html
>>
>> Thanks.
>>
>> This is v3.1 material, but would be nice to see a couple tested-by or
>> acked-by tags from folks that are more actively using the I2C driver
>> before merging
>
> For what it is worth: tested on SDP4460/4430 with 255 multi-byte i2c
> read operation on twl6030.
>
> Tested-by: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
>

Thanks Nishanth,

Kevin

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

* Re: [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
       [not found]   ` <8739ikp9aa.fsf-l0cyMroinI0@public.gmane.org>
@ 2011-07-06  0:05     ` Menon, Nishanth
       [not found]       ` <CAOMWX4crxR0TQ38mFVkqv5eDQuEAry139+zoD2kKNm6imeR7yQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2011-07-13 19:20     ` Ben Dooks
  1 sibling, 1 reply; 17+ messages in thread
From: Menon, Nishanth @ 2011-07-06  0:05 UTC (permalink / raw)
  To: Kevin Hilman
  Cc: Shubhrajyoti D, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	linux-omap-u79uwXL29TY76Z2rM5mHXA

On Tue, Jul 5, 2011 at 17:01, Kevin Hilman <khilman-l0cyMroinI0@public.gmane.org> wrote:
>
> Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org> writes:
>
> > Currently the fifo depth is set to zero for OMAP4 which disables
> > the FIFO usage. This patch enables the FIFO usage for I2C transactions
> > on OMAP4 also.
> >
> > Tested on omap4430 and 3430.
> >
> > Reported-By: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
> > Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>
> > ---
> > Rebased on top of the series by Andy Green
> > http://www.spinics.net/lists/linux-i2c/msg05632.html
>
> Thanks.
>
> This is v3.1 material, but would be nice to see a couple tested-by or
> acked-by tags from folks that are more actively using the I2C driver
> before merging

For what it is worth: tested on SDP4460/4430 with 255 multi-byte i2c
read operation on twl6030.

Tested-by: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>

Regards,
Nishanth Menon



>
> Kevin
>
>
> >  drivers/i2c/busses/i2c-omap.c |   11 ++++++-----
> >  1 files changed, 6 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
> > index d53cd61..8f87a37 100644
> > --- a/drivers/i2c/busses/i2c-omap.c
> > +++ b/drivers/i2c/busses/i2c-omap.c
> > @@ -1068,13 +1068,14 @@ omap_i2c_probe(struct platform_device *pdev)
> >                * size. This is to ensure that we can handle the status on int
> >                * call back latencies.
> >                */
> > -             if (dev->rev >= OMAP_I2C_REV_ON_3530_4430) {
> > -                     dev->fifo_size = 0;
> > +
> > +             dev->fifo_size = (dev->fifo_size / 2);
> > +
> > +             if (dev->rev >= OMAP_I2C_REV_ON_3530_4430)
> >                       dev->b_hw = 0; /* Disable hardware fixes */
> > -             } else {
> > -                     dev->fifo_size = (dev->fifo_size / 2);
> > +             else
> >                       dev->b_hw = 1; /* Enable hardware fixes */
> > -             }
> > +
> >               /* calculate wakeup latency constraint for MPU */
> >               if (dev->set_mpu_wkup_lat != NULL)
> >                       dev->latency = (1000000 * dev->fifo_size) /
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
  2011-07-05  7:11 Shubhrajyoti D
@ 2011-07-06  0:01 ` Kevin Hilman
       [not found]   ` <8739ikp9aa.fsf-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 17+ messages in thread
From: Kevin Hilman @ 2011-07-06  0:01 UTC (permalink / raw)
  To: Shubhrajyoti D; +Cc: linux-i2c, linux-omap

Shubhrajyoti D <shubhrajyoti@ti.com> writes:

> Currently the fifo depth is set to zero for OMAP4 which disables
> the FIFO usage. This patch enables the FIFO usage for I2C transactions
> on OMAP4 also.
>
> Tested on omap4430 and 3430.
>
> Reported-By: Nishanth Menon <nm@ti.com>
> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
> ---
> Rebased on top of the series by Andy Green
> http://www.spinics.net/lists/linux-i2c/msg05632.html

Thanks.

This is v3.1 material, but would be nice to see a couple tested-by or
acked-by tags from folks that are more actively using the I2C driver
before merging

Kevin


>  drivers/i2c/busses/i2c-omap.c |   11 ++++++-----
>  1 files changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
> index d53cd61..8f87a37 100644
> --- a/drivers/i2c/busses/i2c-omap.c
> +++ b/drivers/i2c/busses/i2c-omap.c
> @@ -1068,13 +1068,14 @@ omap_i2c_probe(struct platform_device *pdev)
>  		 * size. This is to ensure that we can handle the status on int
>  		 * call back latencies.
>  		 */
> -		if (dev->rev >= OMAP_I2C_REV_ON_3530_4430) {
> -			dev->fifo_size = 0;
> +
> +		dev->fifo_size = (dev->fifo_size / 2);
> +
> +		if (dev->rev >= OMAP_I2C_REV_ON_3530_4430)
>  			dev->b_hw = 0; /* Disable hardware fixes */
> -		} else {
> -			dev->fifo_size = (dev->fifo_size / 2);
> +		else
>  			dev->b_hw = 1; /* Enable hardware fixes */
> -		}
> +
>  		/* calculate wakeup latency constraint for MPU */
>  		if (dev->set_mpu_wkup_lat != NULL)
>  			dev->latency = (1000000 * dev->fifo_size) /

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

* [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4
@ 2011-07-05  7:11 Shubhrajyoti D
  2011-07-06  0:01 ` Kevin Hilman
  0 siblings, 1 reply; 17+ messages in thread
From: Shubhrajyoti D @ 2011-07-05  7:11 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA, Shubhrajyoti D

Currently the fifo depth is set to zero for OMAP4 which disables
the FIFO usage. This patch enables the FIFO usage for I2C transactions
on OMAP4 also.

Tested on omap4430 and 3430.

Reported-By: Nishanth Menon <nm-l0cyMroinI0@public.gmane.org>
Signed-off-by: Shubhrajyoti D <shubhrajyoti-l0cyMroinI0@public.gmane.org>
---
Rebased on top of the series by Andy Green
http://www.spinics.net/lists/linux-i2c/msg05632.html

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

diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index d53cd61..8f87a37 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -1068,13 +1068,14 @@ omap_i2c_probe(struct platform_device *pdev)
 		 * size. This is to ensure that we can handle the status on int
 		 * call back latencies.
 		 */
-		if (dev->rev >= OMAP_I2C_REV_ON_3530_4430) {
-			dev->fifo_size = 0;
+
+		dev->fifo_size = (dev->fifo_size / 2);
+
+		if (dev->rev >= OMAP_I2C_REV_ON_3530_4430)
 			dev->b_hw = 0; /* Disable hardware fixes */
-		} else {
-			dev->fifo_size = (dev->fifo_size / 2);
+		else
 			dev->b_hw = 1; /* Enable hardware fixes */
-		}
+
 		/* calculate wakeup latency constraint for MPU */
 		if (dev->set_mpu_wkup_lat != NULL)
 			dev->latency = (1000000 * dev->fifo_size) /
-- 
1.7.1

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

end of thread, other threads:[~2011-11-08 20:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-29  6:00 [PATCH] OMAP4: I2C: Enable FIFO usage for OMAP4 Shubhrajyoti D
2011-06-29 23:23 ` Kevin Hilman
2011-06-30  7:24   ` Shubhrajyoti
2011-06-30 22:50     ` Kevin Hilman
     [not found]       ` <874o37djdg.fsf-l0cyMroinI0@public.gmane.org>
2011-07-05  7:11         ` Shubhrajyoti
2011-07-05  7:11 Shubhrajyoti D
2011-07-06  0:01 ` Kevin Hilman
     [not found]   ` <8739ikp9aa.fsf-l0cyMroinI0@public.gmane.org>
2011-07-06  0:05     ` Menon, Nishanth
     [not found]       ` <CAOMWX4crxR0TQ38mFVkqv5eDQuEAry139+zoD2kKNm6imeR7yQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-07-06 14:30         ` Kevin Hilman
2011-07-13 19:20     ` Ben Dooks
     [not found]       ` <20110713192055.GC3369-RazCHl0VsYgkUSuvROHNpA@public.gmane.org>
2011-11-03 11:19         ` Shubhrajyoti
     [not found]           ` <4EB278C4.6030006-l0cyMroinI0@public.gmane.org>
2011-11-03 14:21             ` Kevin Hilman
2011-11-03 15:19               ` Shubhrajyoti
2011-11-03 15:17 Shubhrajyoti D
2011-11-03 15:17 ` Shubhrajyoti D
     [not found] ` <1320333428-23532-1-git-send-email-shubhrajyoti-l0cyMroinI0@public.gmane.org>
2011-11-08 20:01   ` Kevin Hilman
2011-11-08 20:01     ` Kevin Hilman

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.