[PATCHv4 10/18] I2C: OMAP: Don't check if wait_for_completion_timeout() returns less than zero

2012-04-03 Thread Shubhrajyoti D
returns long. Original patch is http://git.omapzoom.org/?p=kernel/omap.git;a=commitdiff;h=ea02cece7bbc736e60c4188a11aaa74bc6e6 Cc : Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a

[PATCHv4 02/18] OMAP : I2C : Remove reset at init

2012-04-03 Thread Shubhrajyoti D
. - Reset is removed from omap_i2c_init, which was called not only during probe, but also after time out and error handling. omap_i2c_reset is added in those places to effect the reset. Signed-off-by: Shubhrajyoti D --- Todo: Some of the cases like underflow the reset may be removed. drivers

[PATCHv4 03/18] I2C: OMAP: Recover from Bus Busy condition

2012-04-03 Thread Shubhrajyoti D
mit;h=a2ab04192ba25e60f95ba1ff3af5601a2d7b5bd1 Signed-off-by: Vikram Pandita Signed-off-by: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 33 ++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-oma

[PATCHv4 16/18] i2c: omap: make the read ready processing a separate function

2012-04-03 Thread Shubhrajyoti D
No functional change. Makes the read ready processing a separate function. This is to avoid extremely long level of indentation. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 86 +--- 1 files changed, 45 insertions(+), 41 deletions

[PATCHv4 06/18] OMAP: I2C: Fix the mismatch of pm_runtime enable and disable

2012-04-03 Thread Shubhrajyoti D
: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2769f67..3670088 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1124,6

[PATCHv4 15/18] OMAP4: hwmod data: I2C: add flag for context restore

2012-04-03 Thread Shubhrajyoti D
: Kevin Hilman Signed-off-by: Shubhrajyoti D --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index 08daa5e..cddce60 100644 --- a/arch/arm

[PATCHv4 07/18] OMAP: I2C: Optimise the remove code

2012-04-03 Thread Shubhrajyoti D
The omap_i2c_remove function may not be needed after device exit so the memory could be freed. Signed-off-by: Shubhrajyoti D --- 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

[PATCHv4 08/18] OMAP: I2C: Fix the error handling

2012-04-03 Thread Shubhrajyoti D
ng to fix the same by moving the pm_rintime_put after the error check. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2096726..a461

[PATCHv4 09/18] I2C: OMAP: Correct I2C revision for OMAP3

2012-04-03 Thread Shubhrajyoti D
Changes from his patch - Update OMAP_I2C_REV_ON_3430 also to reflect that it is same as 3530 Signed-off-by: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b

[PATCHv4 18/18] i2c: omap: Do not set the XUDF if the underflow is not reached

2012-04-03 Thread Shubhrajyoti D
Currently in the 1.153 errata handling while waiting for transmitter underflow if NACK is got the XUDF flag is also set. Fix the same and set it after wait for the condition is over. Cc: Alexander Shishkin Cc: Moiz Sonasath Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c

[PATCHv5 01/18] I2C: OMAP: make omap_i2c_unidle/idle functions depend on CONFIG_PM_RUNTIME

2012-04-03 Thread Shubhrajyoti D
defined CC arch/arm/mach-omap2/board-ti8168evm.o drivers/i2c/busses/i2c-omap.c:272: warning: 'omap_i2c_unidle' defined but not used drivers/i2c/busses/i2c-omap.c:293: warning: 'omap_i2c_idle' defined but not used CC net/ipv4/ip_forward.o Signed-off-by: Shubhraj

[PATCHv5 00/18] I2C updates

2012-04-03 Thread Shubhrajyoti D
following changes since commit dd775ae2549217d3ae09363e3edb305d0fa19928: Linux 3.4-rc1 (2012-03-31 16:24:09 -0700) are available in the git repository at: g...@gitorious.org:linus-tree/linus-tree.git i2c-v5 Jon Hunter (1): I2C: OMAP: Correct I2C revision for OMAP3 Shubhrajyoti D (15

[PATCHv5 03/18] I2C: OMAP: Recover from Bus Busy condition

2012-04-03 Thread Shubhrajyoti D
mit;h=a2ab04192ba25e60f95ba1ff3af5601a2d7b5bd1 Signed-off-by: Vikram Pandita Signed-off-by: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 33 ++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-oma

[PATCHv5 02/18] I2C: OMAP: Remove reset at init

2012-04-03 Thread Shubhrajyoti D
. - Reset is removed from omap_i2c_init, which was called not only during probe, but also after time out and error handling. omap_i2c_reset is added in those places to effect the reset. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 20 +--- 1 files changed

[PATCHv5 04/18] I2C: OMAP: I2C register restore only if context is lost

2012-04-03 Thread Shubhrajyoti D
Currently i2c register restore is done always. Adding conditional restore. The i2c register restore is done only if the context is lost. Also remove the definition of SYSS_RESETDONE_MASK and use the one in omap_hwmod.h. Signed-off-by: Shubhrajyoti D --- arch/arm/plat-omap/i2c.c |3

[PATCHv5 07/18] I2C: OMAP: Optimise the remove code

2012-04-03 Thread Shubhrajyoti D
The omap_i2c_remove function may not be needed after device exit so the memory could be freed. Signed-off-by: Shubhrajyoti D --- 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

[PATCHv5 10/18] I2C: OMAP: Don't check if wait_for_completion_timeout() returns less than zero

2012-04-03 Thread Shubhrajyoti D
returns long. Original patch is http://git.omapzoom.org/?p=kernel/omap.git;a=commitdiff;h=ea02cece7bbc736e60c4188a11aaa74bc6e6 Cc : Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a

[PATCHv5 06/18] I2C: OMAP: Fix the mismatch of pm_runtime enable and disable

2012-04-03 Thread Shubhrajyoti D
: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2769f67..3670088 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1124,6

[PATCHv5 11/18] I2C: OMAP: use devm_* functions

2012-04-03 Thread Shubhrajyoti D
The various devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_kzalloc, devm_request_mem_region and devm_ioremap for data that is allocated in the probe function of a platform device and is only freed in the remove function. Signed-off-by: Shubhrajyoti D

[PATCHv5 13/18] I2C: OMAP: Handle error check for pm runtime

2012-04-03 Thread Shubhrajyoti D
If PM runtime get_sync fails return with the error so that no further reads/writes goes through the interface. This will avoid possible abort. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a

[PATCHv5 14/18] I2C: OMAP: Use SET_RUNTIME_PM_OPS

2012-04-03 Thread Shubhrajyoti D
Use SET_RUNTIME_PM_OPS macro to set runtime functions. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 95f1b2f..a5b1ec1 100644

[PATCHv5 12/18] I2C: OMAP: Fix the crash in i2c remove

2012-04-03 Thread Shubhrajyoti D
[ 154.937316] ---[ end trace 1b75b31a2719ed21 ]-- Cc: Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 86be475..8258597 100644 --- a

[PATCHv5 15/18] I2C: OMAP: make the read ready processing a separate function

2012-04-03 Thread Shubhrajyoti D
No functional change. Makes the read ready processing a separate function. This is to avoid extremely long level of indentation. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 86 +--- 1 files changed, 45 insertions(+), 41 deletions

[PATCHv5 16/18] I2C: OMAP: fix missing handling of errata I2C_OMAP3_1P153

2012-04-03 Thread Shubhrajyoti D
From: Tasslehoff Kjappfot i2c_probe set the dev->errata flag, but omap_i2c_init cleared the flag again. Move the errata handling to i2c_probe. Signed-off-by: Tasslehoff Kjappfot Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 +- 1 files changed, 5 inserti

[PATCHv5 09/18] I2C: OMAP: Correct I2C revision for OMAP3

2012-04-03 Thread Shubhrajyoti D
Changes from his patch - Update OMAP_I2C_REV_ON_3430 also to reflect that it is same as 3530 Signed-off-by: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b

[PATCHv5 05/18] I2C: OMAP: Fix the interrupt clearing in OMAP4

2012-04-03 Thread Shubhrajyoti D
the IRQENABLE_CLR register to clear as it is not mentioned to be legacy register IRQENABLE_CLR helps in atomically setting/clearing specific interrupts, instead use the OMAP_I2C_IE_REG as we are clearing all interrupts. Cc: Vikram Pandita Signed-off-by: Shubhrajyoti D --- drivers/i2c

[PATCHv5 08/18] I2C: OMAP: Fix the error handling

2012-04-03 Thread Shubhrajyoti D
ng to fix the same by moving the pm_rintime_put after the error check. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2096726..a461

[PATCHv5 18/18] ARM: OMAP4: hwmod data: I2C: add flag for context restore

2012-04-03 Thread Shubhrajyoti D
: Kevin Hilman Signed-off-by: Shubhrajyoti D --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index 08daa5e..cddce60 100644 --- a/arch/arm

[PATCHv5 17/18] I2C: OMAP: Do not set the XUDF if the underflow is not reached

2012-04-03 Thread Shubhrajyoti D
Currently in the 1.153 errata handling while waiting for transmitter underflow if NACK is got the XUDF flag is also set. The flag is set after wait for the condition is over. Cc: Alexander Shishkin Cc: Moiz Sonasath Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2 +- 1

[PATCH 00/19] I2C updates

2012-04-10 Thread Shubhrajyoti D
258f742635360175564e9470eb060ff4d4b984e7: modpost: Fix modpost license checking of vmlinux.o (2012-04-09 20:52:56 -0700) are available in the git repository at: g...@gitorious.org:linus-tree/linus-tree.git i2c_omap-next Jon Hunter (1): I2C: OMAP: Correct I2C revision for OMAP3 Shubhrajyoti D (16): I2C: OMAP: make

[PATCHv6 19/19] ARM: OMAP4: hwmod data: I2C: add flag for context restore

2012-04-10 Thread Shubhrajyoti D
: Kevin Hilman Signed-off-by: Shubhrajyoti D --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index 08daa5e..cddce60 100644 --- a/arch/arm

[PATCHv6 05/19] I2C: OMAP: Fix the interrupt clearing in OMAP4

2012-04-10 Thread Shubhrajyoti D
the IRQENABLE_CLR register to clear as it is not mentioned to be legacy register IRQENABLE_CLR helps in atomically setting/clearing specific interrupts, instead use the OMAP_I2C_IE_REG as we are clearing all interrupts. Cc: Vikram Pandita Signed-off-by: Shubhrajyoti D --- drivers/i2c

[PATCHv6 11/19] I2C: OMAP: use devm_* functions

2012-04-10 Thread Shubhrajyoti D
The various devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_kzalloc, devm_request_mem_region and devm_ioremap for data that is allocated in the probe function of a platform device and is only freed in the remove function. Signed-off-by: Shubhrajyoti D

[PATCHv6 18/19] I2C: OMAP: Rename the 1p153 to the erratum id i462

2012-04-10 Thread Shubhrajyoti D
The section number in the recent errata document has changed. Rename the erratum 1p153 to the unique id i462 instead, so that it is easier to reference. Also change the function name and comments to reflect the same. Cc: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c

[PATCHv6 17/19] I2C: OMAP: Do not set the XUDF if the underflow is not reached

2012-04-10 Thread Shubhrajyoti D
Currently in the 1.153 errata handling while waiting for transmitter underflow if NACK is got the XUDF flag is also set. The flag is set after wait for the condition is over. Cc: Alexander Shishkin Cc: Moiz Sonasath Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2 +- 1

[PATCHv6 07/19] I2C: OMAP: Optimise the remove code

2012-04-10 Thread Shubhrajyoti D
The omap_i2c_remove function may not be needed after device exit so the memory could be freed. Signed-off-by: Shubhrajyoti D --- 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

[PATCHv6 15/19] I2C: OMAP: make the read ready processing a separate function

2012-04-10 Thread Shubhrajyoti D
No functional change. Makes the read ready processing a separate function. This is to avoid extremely long level of indentation. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 86 +--- 1 files changed, 45 insertions(+), 41 deletions

[PATCHv6 06/19] I2C: OMAP: Fix the mismatch of pm_runtime enable and disable

2012-04-10 Thread Shubhrajyoti D
: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2769f67..3670088 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1124,6

[PATCHv6 02/19] I2C: OMAP: Remove reset at init

2012-04-10 Thread Shubhrajyoti D
. - Reset is removed from omap_i2c_init, which was called not only during probe, but also after time out and error handling. omap_i2c_reset is added in those places to effect the reset. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 20 +--- 1 files changed

[PATCHv6 04/19] I2C: OMAP: I2C register restore only if context is lost

2012-04-10 Thread Shubhrajyoti D
Currently i2c register restore is done always. Adding conditional restore. The i2c register restore is done only if the context is lost. Also remove the definition of SYSS_RESETDONE_MASK and use the one in omap_hwmod.h. Signed-off-by: Shubhrajyoti D --- arch/arm/plat-omap/i2c.c |3

[PATCHv6 09/19] I2C: OMAP: Correct I2C revision for OMAP3

2012-04-10 Thread Shubhrajyoti D
Changes from his patch - Update OMAP_I2C_REV_ON_3430 also to reflect that it is same as 3530 Signed-off-by: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b

[PATCHv6 10/19] I2C: OMAP: Don't check if wait_for_completion_timeout() returns less than zero

2012-04-10 Thread Shubhrajyoti D
returns long. Original patch is http://git.omapzoom.org/?p=kernel/omap.git;a=commitdiff;h=ea02cece7bbc736e60c4188a11aaa74bc6e6 Cc : Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a

[PATCHv6 12/19] I2C: OMAP: Fix the crash in i2c remove

2012-04-10 Thread Shubhrajyoti D
[ 154.937316] ---[ end trace 1b75b31a2719ed21 ]-- Cc: Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 86be475..8258597 100644 --- a

[PATCHv6 16/19] I2C: OMAP: fix missing handling of errata I2C_OMAP3_1P153

2012-04-10 Thread Shubhrajyoti D
From: Tasslehoff Kjappfot i2c_probe set the dev->errata flag, but omap_i2c_init cleared the flag again. Move the errata handling to i2c_probe. Signed-off-by: Tasslehoff Kjappfot Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 +- 1 files changed, 5 inserti

[PATCHv6 13/19] I2C: OMAP: Handle error check for pm runtime

2012-04-10 Thread Shubhrajyoti D
If PM runtime get_sync fails return with the error so that no further reads/writes goes through the interface. This will avoid possible abort. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a

[PATCHv6 03/19] I2C: OMAP: Recover from Bus Busy condition

2012-04-10 Thread Shubhrajyoti D
mit;h=a2ab04192ba25e60f95ba1ff3af5601a2d7b5bd1 Signed-off-by: Vikram Pandita Signed-off-by: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 33 ++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-oma

[PATCHv6 14/19] I2C: OMAP: Use SET_RUNTIME_PM_OPS

2012-04-10 Thread Shubhrajyoti D
Use SET_RUNTIME_PM_OPS macro to set runtime functions. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 95f1b2f..a5b1ec1 100644

[PATCHv6 08/19] I2C: OMAP: Fix the error handling

2012-04-10 Thread Shubhrajyoti D
ng to fix the same by moving the pm_rintime_put after the error check. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2096726..a461

[PATCHv6 01/19] I2C: OMAP: make omap_i2c_unidle/idle functions depend on CONFIG_PM_RUNTIME

2012-04-10 Thread Shubhrajyoti D
defined CC arch/arm/mach-omap2/board-ti8168evm.o drivers/i2c/busses/i2c-omap.c:272: warning: 'omap_i2c_unidle' defined but not used drivers/i2c/busses/i2c-omap.c:293: warning: 'omap_i2c_idle' defined but not used CC net/ipv4/ip_forward.o Signed-off-by: Shubhraj

[PATCHv7 16/18] I2C: OMAP: fix missing handling of errata I2C_OMAP3_1P153

2012-04-11 Thread Shubhrajyoti D
From: Tasslehoff Kjappfot i2c_probe set the dev->errata flag, but omap_i2c_init cleared the flag again. Move the errata handling to i2c_probe. Signed-off-by: Tasslehoff Kjappfot Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 +- 1 files changed, 5 inserti

[PATCHv7 10/18] I2C: OMAP: Don't check if wait_for_completion_timeout() returns less than zero

2012-04-11 Thread Shubhrajyoti D
returns long. Original patch is http://git.omapzoom.org/?p=kernel/omap.git;a=commitdiff;h=ea02cece7bbc736e60c4188a11aaa74bc6e6 Cc : Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a

[PATCHv7 07/18] I2C: OMAP: Optimise the remove code

2012-04-11 Thread Shubhrajyoti D
The omap_i2c_remove function may not be needed after device exit so the memory could be freed. Signed-off-by: Shubhrajyoti D --- 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

[PATCHv7 09/18] I2C: OMAP: Correct I2C revision for OMAP3

2012-04-11 Thread Shubhrajyoti D
Changes from his patch - Update OMAP_I2C_REV_ON_3430 also to reflect that it is same as 3530 Signed-off-by: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b

[PATCHv7 14/18] I2C: OMAP: Use SET_RUNTIME_PM_OPS

2012-04-11 Thread Shubhrajyoti D
Use SET_RUNTIME_PM_OPS macro to set runtime functions. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index f371d4f..c396cb7 100644

[PATCHv7 01/18] I2C: OMAP: make omap_i2c_unidle/idle functions depend on CONFIG_PM_RUNTIME

2012-04-11 Thread Shubhrajyoti D
defined CC arch/arm/mach-omap2/board-ti8168evm.o drivers/i2c/busses/i2c-omap.c:272: warning: 'omap_i2c_unidle' defined but not used drivers/i2c/busses/i2c-omap.c:293: warning: 'omap_i2c_idle' defined but not used CC net/ipv4/ip_forward.o Signed-off-by: Shubhraj

[PATCHv7 06/18] I2C: OMAP: Fix the mismatch of pm_runtime enable and disable

2012-04-11 Thread Shubhrajyoti D
: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2769f67..3670088 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1124,6

[PATCHv7 04/18] I2C: OMAP: I2C register restore only if context is lost

2012-04-11 Thread Shubhrajyoti D
Currently i2c register restore is done always. Adding conditional restore. The i2c register restore is done only if the context is lost. Also remove the definition of SYSS_RESETDONE_MASK and use the one in omap_hwmod.h. Signed-off-by: Shubhrajyoti D --- arch/arm/plat-omap/i2c.c |3

[PATCHv7 03/18] I2C: OMAP: Recover from Bus Busy condition

2012-04-11 Thread Shubhrajyoti D
mit;h=a2ab04192ba25e60f95ba1ff3af5601a2d7b5bd1 Signed-off-by: Vikram Pandita Signed-off-by: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 33 ++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-oma

[PATCHv7 02/18] I2C: OMAP: Remove reset at init

2012-04-11 Thread Shubhrajyoti D
. - Reset is removed from omap_i2c_init, which was called not only during probe, but also after time out and error handling. omap_i2c_reset is added in those places to effect the reset. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 20 +--- 1 files changed

[PATCHv7 18/18] I2C: OMAP: Rename the 1p153 to the erratum id i462

2012-04-11 Thread Shubhrajyoti D
The section number in the recent errata document has changed. Rename the erratum 1p153 to the unique id i462 instead, so that it is easier to reference. Also change the function name and comments to reflect the same. Cc: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c

[PATCHv7 05/18] I2C: OMAP: Fix the interrupt clearing in OMAP4

2012-04-11 Thread Shubhrajyoti D
the IRQENABLE_CLR register to clear as it is not mentioned to be legacy register IRQENABLE_CLR helps in atomically setting/clearing specific interrupts, instead use the OMAP_I2C_IE_REG as we are clearing all interrupts. Cc: Vikram Pandita Signed-off-by: Shubhrajyoti D --- drivers/i2c

[PATCHv7 17/18] I2C: OMAP: Do not set the XUDF if the underflow is not reached

2012-04-11 Thread Shubhrajyoti D
Currently in the 1.153 errata handling while waiting for transmitter underflow if NACK is got the XUDF flag is also set. The flag is set after wait for the condition is over. Cc: Alexander Shishkin Acked-by: Moiz Sonasath Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2

[PATCHv7 13/18] I2C: OMAP: Handle error check for pm runtime

2012-04-11 Thread Shubhrajyoti D
If PM runtime get_sync fails return with the error so that no further reads/writes goes through the interface. This will avoid possible abort. Add a error message in case of failure with the cause of the failure. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 19

[PATCHv7 15/18] I2C: OMAP: make the read ready processing a separate function

2012-04-11 Thread Shubhrajyoti D
No functional change. Makes the read ready processing a separate function. This is to avoid extremely long level of indentation. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 86 +--- 1 files changed, 45 insertions(+), 41 deletions

[PATCHv7 00/18] I2C updates

2012-04-11 Thread Shubhrajyoti D
revision for OMAP3 Shubhrajyoti D (15): I2C: OMAP: make omap_i2c_unidle/idle functions depend on CONFIG_PM_RUNTIME I2C: OMAP: Remove reset at init I2C: OMAP: I2C register restore only if context is lost I2C: OMAP: Fix the interrupt clearing in OMAP4 I2C: OMAP: Fix the mismatch of

[PATCHv7 08/18] I2C: OMAP: Fix the error handling

2012-04-11 Thread Shubhrajyoti D
ng to fix the same by moving the pm_rintime_put after the error check. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2096726..a461

[PATCHv7 11/18] I2C: OMAP: use devm_* functions

2012-04-11 Thread Shubhrajyoti D
The various devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_kzalloc, devm_request_mem_region and devm_ioremap for data that is allocated in the probe function of a platform device and is only freed in the remove function. Signed-off-by: Shubhrajyoti D

[PATCHv7 12/18] I2C: OMAP: Fix the crash in i2c remove

2012-04-11 Thread Shubhrajyoti D
[ 154.937316] ---[ end trace 1b75b31a2719ed21 ]-- Cc: Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 86be475..8258597 100644 --- a

[PATCHv7 01/18] I2C: OMAP: make omap_i2c_unidle/idle functions depend on CONFIG_PM_RUNTIME

2012-04-11 Thread Shubhrajyoti D
defined CC arch/arm/mach-omap2/board-ti8168evm.o drivers/i2c/busses/i2c-omap.c:272: warning: 'omap_i2c_unidle' defined but not used drivers/i2c/busses/i2c-omap.c:293: warning: 'omap_i2c_idle' defined but not used CC net/ipv4/ip_forward.o Signed-off-by: Shubhraj

[PATCHv7 03/18] I2C: OMAP: Recover from Bus Busy condition

2012-04-11 Thread Shubhrajyoti D
mit;h=a2ab04192ba25e60f95ba1ff3af5601a2d7b5bd1 Signed-off-by: Vikram Pandita Signed-off-by: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 33 ++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-oma

[PATCHv7 09/18] I2C: OMAP: Correct I2C revision for OMAP3

2012-04-11 Thread Shubhrajyoti D
Changes from his patch - Update OMAP_I2C_REV_ON_3430 also to reflect that it is same as 3530 Signed-off-by: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b

[PATCHv7 13/18] I2C: OMAP: Handle error check for pm runtime

2012-04-11 Thread Shubhrajyoti D
If PM runtime get_sync fails return with the error so that no further reads/writes goes through the interface. This will avoid possible abort. Add a error message in case of failure with the cause of the failure. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 19

[PATCHv7 16/18] I2C: OMAP: fix missing handling of errata I2C_OMAP3_1P153

2012-04-11 Thread Shubhrajyoti D
From: Tasslehoff Kjappfot i2c_probe set the dev->errata flag, but omap_i2c_init cleared the flag again. Move the errata handling to i2c_probe. Signed-off-by: Tasslehoff Kjappfot Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 +- 1 files changed, 5 inserti

[PATCHv7 00/18] I2C updates

2012-04-11 Thread Shubhrajyoti D
revision for OMAP3 Shubhrajyoti D (15): I2C: OMAP: make omap_i2c_unidle/idle functions depend on CONFIG_PM_RUNTIME I2C: OMAP: Remove reset at init I2C: OMAP: I2C register restore only if context is lost I2C: OMAP: Fix the interrupt clearing in OMAP4 I2C: OMAP: Fix the mismatch of

[PATCHv7 15/18] I2C: OMAP: make the read ready processing a separate function

2012-04-11 Thread Shubhrajyoti D
No functional change. Makes the read ready processing a separate function. This is to avoid extremely long level of indentation. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 86 +--- 1 files changed, 45 insertions(+), 41 deletions

[PATCHv7 07/18] I2C: OMAP: Optimise the remove code

2012-04-11 Thread Shubhrajyoti D
The omap_i2c_remove function may not be needed after device exit so the memory could be freed. Signed-off-by: Shubhrajyoti D --- 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

[PATCHv7 05/18] I2C: OMAP: Fix the interrupt clearing in OMAP4

2012-04-11 Thread Shubhrajyoti D
the IRQENABLE_CLR register to clear as it is not mentioned to be legacy register IRQENABLE_CLR helps in atomically setting/clearing specific interrupts, instead use the OMAP_I2C_IE_REG as we are clearing all interrupts. Cc: Vikram Pandita Signed-off-by: Shubhrajyoti D --- drivers/i2c

[PATCHv7 02/18] I2C: OMAP: Remove reset at init

2012-04-11 Thread Shubhrajyoti D
. - Reset is removed from omap_i2c_init, which was called not only during probe, but also after time out and error handling. omap_i2c_reset is added in those places to effect the reset. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 20 +--- 1 files changed

[PATCHv7 14/18] I2C: OMAP: Use SET_RUNTIME_PM_OPS

2012-04-11 Thread Shubhrajyoti D
Use SET_RUNTIME_PM_OPS macro to set runtime functions. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index dd65416..28de1d2 100644

[PATCHv7 18/18] I2C: OMAP: Rename the 1p153 to the erratum id i462

2012-04-11 Thread Shubhrajyoti D
The section number in the recent errata document has changed. Rename the erratum 1p153 to the unique id i462 instead, so that it is easier to reference. Also change the function name and comments to reflect the same. Cc: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c

[PATCHv7 17/18] I2C: OMAP: Do not set the XUDF if the underflow is not reached

2012-04-11 Thread Shubhrajyoti D
Currently in the 1.153 errata handling while waiting for transmitter underflow if NACK is got the XUDF flag is also set. The flag is set after wait for the condition is over. Cc: Alexander Shishkin Acked-by: Moiz Sonasath Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2

[PATCHv7 11/18] I2C: OMAP: use devm_* functions

2012-04-11 Thread Shubhrajyoti D
The various devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_kzalloc, devm_request_mem_region and devm_ioremap for data that is allocated in the probe function of a platform device and is only freed in the remove function. Signed-off-by: Shubhrajyoti D

[PATCHv7 04/18] I2C: OMAP: I2C register restore only if context is lost

2012-04-11 Thread Shubhrajyoti D
Currently i2c register restore is done always. Adding conditional restore. The i2c register restore is done only if the context is lost. Also remove the definition of SYSS_RESETDONE_MASK and use the one in omap_hwmod.h. Signed-off-by: Shubhrajyoti D --- arch/arm/plat-omap/i2c.c |3

[PATCHv7 06/18] I2C: OMAP: Fix the mismatch of pm_runtime enable and disable

2012-04-11 Thread Shubhrajyoti D
: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2769f67..3670088 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1124,6

[PATCHv7 10/18] I2C: OMAP: Don't check if wait_for_completion_timeout() returns less than zero

2012-04-11 Thread Shubhrajyoti D
returns long. Original patch is http://git.omapzoom.org/?p=kernel/omap.git;a=commitdiff;h=ea02cece7bbc736e60c4188a11aaa74bc6e6 Cc : Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a

[PATCHv7 12/18] I2C: OMAP: Fix the crash in i2c remove

2012-04-11 Thread Shubhrajyoti D
[ 154.937316] ---[ end trace 1b75b31a2719ed21 ]-- Cc: Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 86be475..8258597 100644 --- a

[PATCHv7 08/18] I2C: OMAP: Fix the error handling

2012-04-11 Thread Shubhrajyoti D
ng to fix the same by moving the pm_rintime_put after the error check. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2096726..a461

[PATCHv8 08/18] I2C: OMAP: Fix the error handling

2012-04-12 Thread Shubhrajyoti D
ng to fix the same by moving the pm_rintime_put after the error check. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2096726..a461

[PATCHv8 11/18] I2C: OMAP: use devm_* functions

2012-04-12 Thread Shubhrajyoti D
The various devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_kzalloc, devm_request_mem_region and devm_ioremap for data that is allocated in the probe function of a platform device and is only freed in the remove function. Signed-off-by: Shubhrajyoti D

[PATCHv8 01/18] I2C: OMAP: make omap_i2c_unidle/idle functions depend on CONFIG_PM_RUNTIME

2012-04-12 Thread Shubhrajyoti D
defined CC arch/arm/mach-omap2/board-ti8168evm.o drivers/i2c/busses/i2c-omap.c:272: warning: 'omap_i2c_unidle' defined but not used drivers/i2c/busses/i2c-omap.c:293: warning: 'omap_i2c_idle' defined but not used CC net/ipv4/ip_forward.o Signed-off-by: Shubhraj

[PATCHv8 06/18] I2C: OMAP: Fix the mismatch of pm_runtime enable and disable

2012-04-12 Thread Shubhrajyoti D
: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2769f67..3670088 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1124,6

[PATCHv8 07/18] I2C: OMAP: Optimise the remove code

2012-04-12 Thread Shubhrajyoti D
The omap_i2c_remove function may not be needed after device exit so the memory could be freed. Signed-off-by: Shubhrajyoti D --- 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

[PATCHv8 02/18] I2C: OMAP: Remove reset at init

2012-04-12 Thread Shubhrajyoti D
. - Reset is removed from omap_i2c_init, which was called not only during probe, but also after time out and error handling. omap_i2c_reset is added in those places to effect the reset. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 20 +--- 1 files changed

[PATCHv8 05/18] I2C: OMAP: Fix the interrupt clearing in OMAP4

2012-04-12 Thread Shubhrajyoti D
the IRQENABLE_CLR register to clear as it is not mentioned to be legacy register IRQENABLE_CLR helps in atomically setting/clearing specific interrupts, instead use the OMAP_I2C_IE_REG as we are clearing all interrupts. Cc: Vikram Pandita Signed-off-by: Shubhrajyoti D --- drivers/i2c

[PATCHv8 14/18] I2C: OMAP: Use SET_RUNTIME_PM_OPS

2012-04-12 Thread Shubhrajyoti D
Use SET_RUNTIME_PM_OPS macro to set runtime functions. Acked-by: Felipe Balbi Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index

[PATCHv8 16/18] I2C: OMAP: fix missing handling of errata I2C_OMAP3_1P153

2012-04-12 Thread Shubhrajyoti D
From: Tasslehoff Kjappfot i2c_probe set the dev->errata flag, but omap_i2c_init cleared the flag again. Move the errata handling to i2c_probe. Signed-off-by: Tasslehoff Kjappfot Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 +- 1 files changed, 5 inserti

[PATCHv8 10/18] I2C: OMAP: Don't check if wait_for_completion_timeout() returns less than zero

2012-04-12 Thread Shubhrajyoti D
returns long. Original patch is http://git.omapzoom.org/?p=kernel/omap.git;a=commitdiff;h=ea02cece7bbc736e60c4188a11aaa74bc6e6 Cc : Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a

[PATCHv8 04/18] I2C: OMAP: I2C register restore only if context is lost

2012-04-12 Thread Shubhrajyoti D
Currently i2c register restore is done always. Adding conditional restore. The i2c register restore is done only if the context is lost. Also remove the definition of SYSS_RESETDONE_MASK and use the one in omap_hwmod.h. Signed-off-by: Shubhrajyoti D --- arch/arm/plat-omap/i2c.c |3

[PATCHv8 18/18] I2C: OMAP: Rename the 1p153 to the erratum id i462

2012-04-12 Thread Shubhrajyoti D
The section number in the recent errata document has changed. Rename the erratum 1p153 to the unique id i462 instead, so that it is easier to reference. Also change the function name and comments to reflect the same. Cc: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c

[PATCHv8 03/18] I2C: OMAP: Recover from Bus Busy condition

2012-04-12 Thread Shubhrajyoti D
mit;h=a2ab04192ba25e60f95ba1ff3af5601a2d7b5bd1 Signed-off-by: Vikram Pandita Signed-off-by: Jon Hunter Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 33 ++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-oma

<    1   2   3   4   5   6   >