[PATCHv7 2/3] OMAP: I2C: Remove the reset in the init path

2011-12-02 Thread Shubhrajyoti D
-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 82 +++-- 1 files changed, 22 insertions(+), 60 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index fa23faa..beff9f3 100644 --- a/drivers/i2c/busses/i2c

[PATCHv8 3/5] OMAP: I2C: Reset support

2011-12-13 Thread Shubhrajyoti D
Under some error conditions the i2c driver may do a reset. Adding a reset field and support in the device-specific code to aid error-recovery. Signed-off-by: Shubhrajyoti D --- arch/arm/plat-omap/i2c.c |2 ++ include/linux/i2c-omap.h |1 + 2 files changed, 3 insertions(+), 0 deletions

[PATCHv8 2/5] OMAP: hwmod/device : add omap_device_reset to reset all the hwmods in the device

2011-12-13 Thread Shubhrajyoti D
: Shubhrajyoti D --- arch/arm/plat-omap/include/plat/omap_device.h |1 + arch/arm/plat-omap/omap_device.c | 22 ++ 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-omap/include/plat/omap_device.h b/arch/arm/plat-omap/include/plat

[PATCHv8 0/5] I2C driver updates

2011-12-13 Thread Shubhrajyoti D
call omap_hwmod_reset() on each. This is rebased on Kevin's tree for_3.2/fixes/i2c branch. Acknowledge Balaji ,Santosh ,Kevin , Paul and Jon for the review comments. Shubhrajyoti D (5): OMAP3+: HWMOD: Add the default clockactivity for I2C OMAP: hwmod/device : add omap_device_rese

[PATCHv8 1/5] OMAP3+: HWMOD: Add the default clockactivity for I2C

2011-12-13 Thread Shubhrajyoti D
kept active; system clock can be cut off 0x3: Both clocks must be kept active 0x2: Only system clock must be kept active; OCP clock can be cut off The patch makes 0x2(CLOCKACT_TEST_ICLK) the default for OMAP3 and OMAP4. Signed-off-by: Shubhrajyoti D Signed-off-by: Jon Hunter --- arch

[PATCHv8 4/5] OMAP: I2C: Remove the reset in the init path

2011-12-13 Thread Shubhrajyoti D
-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 83 +++- 1 files changed, 23 insertions(+), 60 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 257c1a5..70136a2 100644 --- a/drivers/i2c/busses/i2c-omap.c

[PATCHv8 5/5] OMAP: I2C: Remove the SYSC register definition

2011-12-13 Thread Shubhrajyoti D
The SYSC register should not accessed in the driver removing the define from the driver. Also clean up the syscstate from the omap_i2c_dev struct. Acked-by: Santosh Shilimkar Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |5 - 1 files changed, 0 insertions(+), 5

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

2011-12-16 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 --- Original patch can

[PATCH] OMAP: I2C: add devexit to the remove code

2011-12-19 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

[PATCH RFC] MFD: OMAP: USB: Make the runtime functions depend on CONFIG_PM_RUNTIME

2012-01-02 Thread Shubhrajyoti D
Currently the runtime functions are compiled regardless of CONFIG_PM_RUNTIME flag. This patch intends to fix the same by using SET_RUNTIME_PM_OPS. Cc : Keshava Munegowda Signed-off-by: Shubhrajyoti D --- applies on Tony's ehci branch. Compile tested only. drivers/mfd/omap-usb-host.c |

[PATCH RFCv2] MFD: OMAP: USB: Make the runtime functions depend on CONFIG_PM_RUNTIME

2012-01-09 Thread Shubhrajyoti D
Currently the runtime functions are compiled regardless of CONFIG_PM_RUNTIME flag. This patch intends to fix the same by using SET_RUNTIME_PM_OPS. Cc : Keshava Munegowda Signed-off-by: Shubhrajyoti D --- applies on Tony's ehci branch. Compile tested only. drivers/mfd/omap-usb-host.c |

[PATCH RFC] omap-serial :Make the suspend/resume functions depend on CONFIG_PM_SLEEP.

2012-01-10 Thread Shubhrajyoti D
The macro SET_SYSTEM_SLEEP_PM_OPS depends CONFIG_PM_SLEEP. The patch defines the suspend and resume functions for CONFIG_PM_SLEEP instead of CONFIG_SUSPEND. Signed-off-by: Shubhrajyoti D --- applies on Tony's uart branch drivers/tty/serial/omap-serial.c |2 +- 1 files ch

[PATCH RFC] omap-serial: make serial_omap_restore_context depend on CONFIG_PM_RUNTIME

2012-01-10 Thread Shubhrajyoti D
/omap-serial.c:1524: warning: 'serial_omap_restore_context' defined but not used CC drivers/tty/vt/selection.o Signed-off-by: Shubhrajyoti D --- applies on Tony's uart branch drivers/tty/serial/omap-serial.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH RFC] I2C : OMAP : make omap_i2c_unidle/idle functions depend on CONFIG_PM_RUNTIME

2012-01-11 Thread Shubhrajyoti D
/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: Shubhrajyoti D --- applies to Kevi

[PATCH RFC] OMAP: I2C: Fix the mismatch of pm_runtime enable and disable

2012-01-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 12d402c..abc7b5b 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1070,6

[PATCH RFC] OMAP : watchdog : Fix the mismatch of pm_runtime enable and disable

2012-01-11 Thread Shubhrajyoti D
] OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec /build/watchdog # Attempting to fix the same by calling pm_runtime_disable. Signed-off-by: Shubhrajyoti D --- drivers/watchdog/omap_wdt.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/watchdog/omap_wdt.c b

[PATCH v2] I2C: OMAP: Recover from Bus Busy condition

2012-01-11 Thread Shubhrajyoti D
ement perform a soft-reset. 4. Clear the CON register after performing the bus clear, so when we call the init function the controller is disabled and the init function will re-enable later. Cc: Kevin Hilman Signed-off-by: Vikram Pandita Signed-off-by: Jon Hunter Signed-off-by: Shubhrajy

[PATCH v2] I2C: OMAP: Recover from Bus Busy condition

2012-01-11 Thread Shubhrajyoti D
ement perform a soft-reset. 4. Clear the CON register after performing the bus clear, so when we call the init function the controller is disabled and the init function will re-enable later. Cc: Kevin Hilman Signed-off-by: Vikram Pandita Signed-off-by: Jon Hunter Signed-off-by: Shubhrajy

[PATCH RFC] omap-serial: Fix the error handling in the omap_serial probe

2012-01-12 Thread Shubhrajyoti D
called fix the same by calling iounmap in the error case of probe and remove . - Make the name of the error tags more meaningful. Signed-off-by: Shubhrajyoti D --- drivers/tty/serial/omap-serial.c | 27 +-- 1 files changed, 17 insertions(+), 10 deletions(-) diff --git

[PATCH RFC 1/2] ARM : OMAP : serial : Make context_loss_cnt signed

2012-01-12 Thread Shubhrajyoti D
get_context_loss_count returns an int however it is stored in unsigned integer context_loss_cnt . This patch tries to make context_loss_cnt int. So that in case of errors(which may be negative) the value is not interpreted wrongly. Signed-off-by: Shubhrajyoti D --- applies on Tony's uart b

[PATCH RFC 2/2] OMAP : serial : Check for error in get_context_loss_count

2012-01-12 Thread Shubhrajyoti D
In serial_omap_runtime_resume in case of errors returned by get_context_loss_count print a warning and do a restore. Signed-off-by: Shubhrajyoti D --- applies on Tony's uart branch drivers/tty/serial/omap-serial.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff

[PATCH 2/2] I2C: OMAP: Recover from Bus Busy condition

2012-01-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

[PATCHv9 0/2] I2C driver updates

2012-01-12 Thread Shubhrajyoti D
/misc Shubhrajyoti D (1): OMAP : I2C : Remove reset at init Vikram Pandita (1): I2C: OMAP: Recover from bus busy condition drivers/i2c/busses/i2c-omap.c | 53 +--- 1 files changed, 43 insertions(+), 10 deletions(-) -- To unsubscribe from this list: send the

[PATCHv9 1/2] OMAP : I2C : Remove reset at init

2012-01-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

[PATCH RFC/RFT] mmc : updates

2012-01-13 Thread Shubhrajyoti D
ove pm_runtime_get_sync/put sync from suspend/resume. - does some cleanup of the flags used. remove pm_runtime_get_sync/put sync from suspend/resume Shubhrajyoti D (3): mmc: omap_hsmmc : Make the suspend/resume functions depend on CONFIG_PM_SLEEP mmc: omap_hsmmc : Clean up

[PATCH RFC/RFT 1/3] mmc: omap_hsmmc : Make the suspend/resume functions depend on CONFIG_PM_SLEEP

2012-01-13 Thread Shubhrajyoti D
Currently the suspend/resume functions depend on CONFIG_PM however the callers have no such dependency. This patch tries to fix the same by using SET_SYSTEM_SLEEP_PM_OPS and making the functions depend on CONFIG_PM_SLEEP. Signed-off-by: Shubhrajyoti D --- drivers/mmc/host/omap_hsmmc.c |9

[PATCH RFC/RFT 2/3] mmc: omap_hsmmc : Clean up the runtime suspend/resume

2012-01-13 Thread Shubhrajyoti D
currently omap_hsmmc_context_restore depends on CONFIG_PM. However the caller runtime resume has no such dependency. This patch intends to fix the same. omap_hsmmc_context_save is called from probe unconditionally. However the defined under CONFIG_PM flag. Signed-off-by: Shubhrajyoti D

[PATCH RFC/RFT 3/3] omap : hsmmc : remove pm_runtime_get_sync/put sync from suspend/resume

2012-01-13 Thread Shubhrajyoti D
The pm_runtime_get_sync/put_sync may not be needed in the latest code as it is taken care in the framework. Cc: Govindraj.R Cc: Keshava Munegowda Signed-off-by: Shubhrajyoti D --- drivers/mmc/host/omap_hsmmc.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a

[PATCH 0/5] uart updates

2012-01-16 Thread Shubhrajyoti D
The patch series does the following - Make the Make the suspend/resume functions depend on CONFIG_PM_SLEEP - Fix the serial omap probe's error handling - Make he context_loss_cnt signed so that error handling is possible. Shubhrajyoti D (5): omap-serial :Make the suspend/r

[PATCH 1/5] omap-serial :Make the suspend/resume functions depend on CONFIG_PM_SLEEP.

2012-01-16 Thread Shubhrajyoti D
The macro SET_SYSTEM_SLEEP_PM_OPS depends CONFIG_PM_SLEEP. The patch defines the suspend and resume functions for CONFIG_PM_SLEEP instead of CONFIG_SUSPEND. Signed-off-by: Shubhrajyoti D --- drivers/tty/serial/omap-serial.c |2 +- 1 files changed, 1 insertions(+), 1 deletions

[PATCH 2/5] omap-serial: make serial_omap_restore_context depend on CONFIG_PM_RUNTIME

2012-01-16 Thread Shubhrajyoti D
/omap-serial.c:1524: warning: 'serial_omap_restore_context' defined but not used CC drivers/tty/vt/selection.o Acked-by: Govindraj.R Signed-off-by: Shubhrajyoti D --- drivers/tty/serial/omap-serial.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/d

[PATCH 3/5] omap-serial: Fix the error handling in the omap_serial probe

2012-01-16 Thread Shubhrajyoti D
called fix the same by calling iounmap in the error case of probe and remove . - Make the name of the error tags more meaningful. Signed-off-by: Shubhrajyoti D --- drivers/tty/serial/omap-serial.c | 27 +-- 1 files changed, 17 insertions(+), 10 deletions(-) diff --git

[PATCH 5/5] OMAP : serial : Check for error in get_context_loss_count

2012-01-16 Thread Shubhrajyoti D
In serial_omap_runtime_resume in case of errors returned by get_context_loss_count print a warning and do a restore. Signed-off-by: Shubhrajyoti D --- drivers/tty/serial/omap-serial.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/omap

[PATCH 4/5] ARM : OMAP : serial : Make context_loss_cnt signed

2012-01-16 Thread Shubhrajyoti D
get_context_loss_count returns an int however it is stored in unsigned integer context_loss_cnt . This patch tries to make context_loss_cnt int. So that in case of errors(which may be negative) the value is not interpreted wrongly. Signed-off-by: Shubhrajyoti D --- arch/arm/plat-omap/include

[PATCH v2] I2C : OMAP : make omap_i2c_unidle/idle functions depend on CONFIG_PM_RUNTIME

2012-01-17 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: Shubhrajyo

[PATCH RFC 0/2] mtd updates

2012-01-23 Thread Shubhrajyoti D
not implemented Shubhrajyoti D (2): mtd : Prevent the NULL pointer access mtd : Make the mtd_suspend return 0 if the suspend is not implemented drivers/mtd/mtdcore.c |5 +++-- include/linux/mtd/mtd.h |6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) -- To unsubscribe from t

[PATCH RFC 1/2] mtd : Prevent the NULL pointer access

2012-01-23 Thread Shubhrajyoti D
This patch intends to fix the null pointer access. Signed-off-by: Shubhrajyoti D --- drivers/mtd/mtdcore.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 6ae9ca0..2b3bda7 100644 --- a/drivers/mtd/mtdcore.c +++ b

[PATCH RFC 2/2] mtd : Make the mtd_suspend return 0 if the suspend is not implemented

2012-01-23 Thread Shubhrajyoti D
Currently mtd_suspend returns an error value -EOPNOTSUPP if the suspend function is not implemented which prevents the suspend. This patch prevents the nack of suspend if suspend is not implemented. Signed-off-by: Shubhrajyoti D --- include/linux/mtd/mtd.h |6 +++--- 1 files changed, 3

[PATCH RFC 0/2] watchdog boot status

2012-01-23 Thread Shubhrajyoti D
This patch series does the following Patch 1: Fixes the omap_prcm_get_reset_sources() for omap3/4 Patch 2: Extends the WDIOC_GETBOOTSTATUS to support omap3/4. Tested on omap3sdp and omap4sdp. Rajendra Nayak (1): ARM: omap: Fix omap_prcm_get_reset_sources() for omap3/4 Shubhrajyoti D (1

[PATCH RFC 1/2] watchdog : omap_wdt : Implement WDIOC_GETBOOTSTATUS for omap3+

2012-01-23 Thread Shubhrajyoti D
This patch intends to implement the WDIOC_GETBOOTSTATUS ioctl for the omap3 and omap4. Signed-off-by: Shubhrajyoti D --- drivers/watchdog/omap_wdt.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 4b33e3f

[PATCH 2/2] ARM: omap: Fix omap_prcm_get_reset_sources() for omap3/4

2012-01-23 Thread Shubhrajyoti D
identifying the issue with the offset macros for OMAP4_RM_RSTST and OMAP4_RM_RSTTIME being swapped, which resulted in this patch. Signed-off-by: Rajendra Nayak Signed-off-by: Shubhrajyoti D Cc: Gina Glaser Cc: Benoit Cousson --- arch/arm/mach-omap2/prcm.c| 13 - arch/arm/mach-omap2

[PATCH RFC] OMAP: serial: Remove the hardcode serial_omap_console_ports array.

2012-02-09 Thread Shubhrajyoti D
Currently the array serial_omap_console_ports is hard coded to 4. Make it depend on the macro OMAP_MAX_HSUART_PORTS(which is 4) which the maximum uart count. Cc: Govindraj Raja Signed-off-by: Shubhrajyoti D --- drivers/tty/serial/omap-serial.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH RFC] OMAP: serial: Release the claimed memory region in remove

2012-02-09 Thread Shubhrajyoti D
[ 130.789947] omap_uart: probe of omap_uart.3 failed with error -16 Fix it by releasing the memory region. Cc: Govindraj.R Signed-off-by: Shubhrajyoti D --- drivers/tty/serial/omap-serial.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/tty/serial/omap-serial.c b

[PATCH 00/10] I2C updates

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

[PATCH 01/10] I2C : OMAP : make omap_i2c_unidle/idle functions depend on CONFIG_PM_RUNTIME

2012-02-10 Thread Shubhrajyoti D
en Dooks Signed-off-by: Shubhrajyoti D --- previous post http://lists.infradead.org/pipermail/linux-arm-kernel/2012-January/080664.html drivers/i2c/busses/i2c-omap.c | 75 +--- 1 files changed, 32 insertions(+), 43 deletions(-) diff --git a/drivers/i2c

[PATCH 04/10] OMAP: I2C: I2C register restore only if context is lost

2012-02-10 Thread Shubhrajyoti D
-off-by: Shubhrajyoti D --- Previous discurssion http://lists.infradead.org/pipermail/linux-arm-kernel/2011-July/058747.html drivers/i2c/busses/i2c-omap.c | 36 +++- 1 files changed, 23 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b

[PATCH 02/10] OMAP : I2C : Remove reset at init

2012-02-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. Cc: Benoit Cousson Cc: Kevin Hilman Cc: Ben Dooks Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c

[PATCH 07/10] OMAP: I2C: add devexit to the remove code

2012-02-10 Thread Shubhrajyoti D
The omap_i2c_remove function may not be needed after device exit so the memory could be freed. Cc: Ben Dooks Cc: Kevin Hilman Signed-off-by: Shubhrajyoti D --- Previous discurssion http://www.mail-archive.com/linux-i2c@vger.kernel.org/msg06976.html drivers/i2c/busses/i2c-omap.c |5

[PATCH 05/10] OMAP: I2C: Fix the interrupt clearing in OMAP4

2012-02-10 Thread Shubhrajyoti D
: Shubhrajyoti D --- Original patch can be found here: http://git.omapzoom.org/?p=kernel/omap.git;a=commit;h=41049d62e146e0fafe2fac0a31be566b3bbc9149 drivers/i2c/busses/i2c-omap.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c

[PATCH 03/10] I2C: OMAP: Recover from Bus Busy condition

2012-02-10 Thread Shubhrajyoti D
unter Signed-off-by: Shubhrajyoti D --- Original patch can be found here: http://git.omapzoom.org/?p=kernel/omap.git;a=commit;h=a2ab04192ba25e60f95ba1ff3af5601a2d7b5bd1 drivers/i2c/busses/i2c-omap.c | 33 ++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff

[PATCH 09/10] I2C: OMAP: Correct I2C revision for OMAP3

2012-02-10 Thread Shubhrajyoti D
Changes from his patch - Update OMAP_I2C_REV_ON_3430 also to reflect that it is same as 3530 Cc: Ben Dooks Cc: Kevin Hilman 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

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

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

[PATCH 08/10] OMAP: I2C: Fix the error handling

2012-02-10 Thread Shubhrajyoti D
ng to fix the same by moving the pm_rintime_put after the error check. Cc: Ben Dooks Cc: Kevin Hilman 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/bus

[PATCH 06/10] OMAP: I2C: Fix the mismatch of pm_runtime enable and disable

2012-02-10 Thread Shubhrajyoti D
Signed-off-by: Shubhrajyoti D --- previous discurssion http://marc.info/?l=linux-arm-kernel&m=132628828411133&w=2 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

[PATCH] OMAP: serial: Release the claimed memory region in remove

2012-02-10 Thread Shubhrajyoti D
[ 130.789947] omap_uart: probe of omap_uart.3 failed with error -16 Fix it by releasing the memory region. Cc: Govindraj.R Signed-off-by: Shubhrajyoti D --- changes from the rfc version - move the release after the unmap. drivers/tty/serial/omap-serial.c |3 +++ 1 files changed, 3 insertions

[PATCH] i2c: omap: re-factor omap_i2c_init function

2012-10-23 Thread Shubhrajyoti D
re-factor omap_i2c_init() so that we can re-use it for resume. While at it also remove the bufstate variable as we write it in omap_i2c_resize_fifo for every transfer. Signed-off-by: Shubhrajyoti D --- Applies on Felipe's series http://www.spinics.net/lists/linux-omap/msg79995.html Tested

[PATCH v2] i2c: omap: re-factor omap_i2c_init function

2012-10-24 Thread Shubhrajyoti D
re-factor omap_i2c_init() so that we can re-use it for resume. While at it also remove the bufstate variable as we write it in omap_i2c_resize_fifo for every transfer. Signed-off-by: Shubhrajyoti D --- v2 - add the iestate 0 check back. - Remove a stray change. - Applies on top of Felipe&#

[PATCH 0/2] i2c: omap: cleanups

2012-10-25 Thread Shubhrajyoti D
Applies on Felipe's series http://www.spinics.net/lists/linux-omap/msg79995.html Tested with Terro sys fix + Felipe's stop sched_clock() during suspend on omap3630 beagle both idle and suspend. Functional testing on omap4sdp. Shubhrajyoti D (2): i2c: omap: re-factor omap_i2c_ini

[PATCH 2/2] i2c: omap: make reset a seperate function

2012-10-25 Thread Shubhrajyoti D
Implement reset as a seperate function. This will enable us to make sure that we don't do the calculation again on every transfer. Also at probe the reset is not added as the hwmod is doing that for us. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |

[PATCH 1/2] i2c: omap: re-factor omap_i2c_init function

2012-10-25 Thread Shubhrajyoti D
re-factor omap_i2c_init() so that we can re-use it for resume. While at it also remove the bufstate variable as we write it in omap_i2c_resize_fifo for every transfer. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 71 ++-- 1 files

[PATCHv4 0/2] i2c: omap: cleanups

2012-10-25 Thread Shubhrajyoti D
Applies on Felipe's series http://www.spinics.net/lists/linux-omap/msg79995.html Tested with Terro sys fix + Felipe's stop sched_clock() during suspend on omap3630 beagle both idle and suspend. Functional testing on omap4sdp. Todo: all the error cases may not need a reset. Shubhra

[PATCHv4 2/2] i2c: omap: make reset a seperate function

2012-10-25 Thread Shubhrajyoti D
Implement reset as a separate function. This will enable us to make sure that we don't do the calculation again on every transfer. Also at probe the reset is not added as the hwmod is doing that for us. Signed-off-by: Shubhrajyoti D --- some of the errors may not need a reset. will chec

[PATCHv4 1/2] i2c: omap: re-factor omap_i2c_init function

2012-10-25 Thread Shubhrajyoti D
re-factor omap_i2c_init() so that we can re-use it for resume. While at it also remove the bufstate variable as we write it in omap_i2c_resize_fifo for every transfer. Signed-off-by: Shubhrajyoti D --- v4: add spaces for readability drivers/i2c/busses/i2c-omap.c | 74

[PATCHv4 2/2] i2c: omap: make reset a seperate function

2012-10-25 Thread Shubhrajyoti D
Implement reset as a separate function. This will enable us to make sure that we don't do the calculation again on every transfer. Also at probe the reset is not added as the hwmod is doing that for us. Signed-off-by: Shubhrajyoti D --- some of the errors may not need a reset. will chec

[PATCHv4 0/2] i2c: omap: cleanups

2012-10-25 Thread Shubhrajyoti D
Applies on Felipe's series http://www.spinics.net/lists/linux-omap/msg79995.html Tested with Terro sys fix + Felipe's stop sched_clock() during suspend on omap3630 beagle both idle and suspend. Functional testing on omap4sdp. Todo: all the error cases may not need a reset. Shubhra

[PATCHv4 1/2] i2c: omap: re-factor omap_i2c_init function

2012-10-25 Thread Shubhrajyoti D
re-factor omap_i2c_init() so that we can re-use it for resume. While at it also remove the bufstate variable as we write it in omap_i2c_resize_fifo for every transfer. Signed-off-by: Shubhrajyoti D --- v4: add spaces for readability drivers/i2c/busses/i2c-omap.c | 74

[PATCH RFC] i2c: omap: Fix the revision register read

2012-10-31 Thread Shubhrajyoti D
-by: Shubhrajyoti D --- todo: some of the flag checks can be removed in favour of revision check. drivers/i2c/busses/i2c-omap.c | 35 +-- 1 files changed, 25 insertions(+), 10 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c in

[PATCH 2/2] i2c: omap: use revision check for OMAP_I2C_FLAG_APPLY_ERRATA_I207

2012-11-02 Thread Shubhrajyoti D
The errata i207 is enabled for 2430 and 3xxx. Use the revision check to enable the erratum instead. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c

[PATCH 0/2] i2c: omap: revision register updates

2012-11-02 Thread Shubhrajyoti D
. Shubhrajyoti D (2): i2c: omap: use revision check for OMAP_I2C_FLAG_APPLY_ERRATA_I207 i2c: omap: Fix the revision register read drivers/i2c/busses/i2c-omap.c | 62 +++- 1 files changed, 48 insertions(+), 14 deletions(-) -- 1.7.5.4 -- To unsubscribe from this

[PATCH 1/2] i2c: omap: Fix the revision register read

2012-11-02 Thread Shubhrajyoti D
een added in the resume handler to prevent the access before the setting of the regs. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 59 - 1 files changed, 46 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/driv

[PATCHv2 7/7] i2c: omap: Restore i2c context always

2012-11-04 Thread Shubhrajyoti D
reset is done. However the restore never happens as it is dependent on the POSTIDLE flag. The other option would be to call a restore in the reset case. As there are only a few registers to be restored the penalty in the idle case should not be much. Signed-off-by: Shubhrajyoti D --- Todo: the flag

[PATCHv2 0/7] i2c: omap: updates

2012-11-04 Thread Shubhrajyoti D
after enabling hwmod Also available through git://gitorious.org/linus-tree/linus-tree.git i2c_omap/for_3.8 Shubhrajyoti D (7): i2c: omap: Fix the revision register read i2c: omap: use revision check for OMAP_I2C_FLAG_APPLY_ERRATA_I207 i2c: omap: remove the dtrev ARM: i2c: omap: Remove the

[PATCHv2 5/7] i2c: omap: re-factor omap_i2c_init function

2012-11-04 Thread Shubhrajyoti D
re-factor omap_i2c_init() so that we can re-use it for resume. While at it also remove the bufstate variable as we write it in omap_i2c_resize_fifo for every transfer. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 75 +++-- 1 files

[PATCHv2 4/7] ARM: i2c: omap: Remove the i207 errata flag

2012-11-04 Thread Shubhrajyoti D
The commit [i2c: omap: use revision check for OMAP_I2C_FLAG_APPLY_ERRATA_I207] uses the revision id instead of the flag. So the flag can be safely removed. Signed-off-by: Shubhrajyoti D --- arch/arm/mach-omap2/omap_hwmod_2430_data.c |3 +-- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |9

[PATCHv2 1/7] i2c: omap: Fix the revision register read

2012-11-04 Thread Shubhrajyoti D
een added in the resume handler to prevent the access before the setting of the regs. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 61 - 1 files changed, 48 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/driv

[PATCHv2 2/7] i2c: omap: use revision check for OMAP_I2C_FLAG_APPLY_ERRATA_I207

2012-11-04 Thread Shubhrajyoti D
The errata i207 is enabled for 2430 and 3xxx. Use the revision check to enable the erratum instead. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c

[PATCHv2 6/7] i2c: omap: make reset a seperate function

2012-11-04 Thread Shubhrajyoti D
Implement reset as a separate function. This will enable us to make sure that we don't do the calculation again on every transfer. Also at probe the reset is not added as the hwmod is doing that for us. Signed-off-by: Shubhrajyoti D --- todo: reprodue the errors and optimise the res

[PATCHv2 3/7] i2c: omap: remove the dtrev

2012-11-04 Thread Shubhrajyoti D
The dtrev is used only for the comments. Remove the same and use the scheme instead to know if it is version2. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b

[PATCHv3 2/8] i2c: omap: use revision check for OMAP_I2C_FLAG_APPLY_ERRATA_I207

2012-11-05 Thread Shubhrajyoti D
The errata i207 is enabled for 2430 and 3xxx. Use the revision check to enable the erratum instead. Reviewed-by: Felipe Balbi Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c

[PATCHv3 0/7] i2c: omap: updates

2012-11-05 Thread Shubhrajyoti D
: Linux 3.7-rc4 (2012-11-04 11:07:39 -0800) are available in the git repository at: git://gitorious.org/linus-tree/linus-tree.git i2c_omap/for_3.8 Shubhrajyoti D (8): i2c: omap: Fix the revision register read i2c: omap: use revision check for OMAP_I2C_FLAG_APPLY_ERRATA_I207

[PATCHv3 8/8] i2c: omap: cleanup the sysc write

2012-11-05 Thread Shubhrajyoti D
the cases the minor values of the 2430 register is different(0x37) in that case the autoidle setting may be missed. Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 20 +--- 1 files changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/i2c/busses/i2c

[PATCHv3 7/8] i2c: omap: Restore i2c context always

2012-11-05 Thread Shubhrajyoti D
: Shubhrajyoti D --- Todo: the flag could be deleted if the patch is accepted. drivers/i2c/busses/i2c-omap.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 7393017..25f1564 100644 --- a/drivers/i2c/busses/i2c

[PATCHv3 6/8] i2c: omap: make reset a seperate function

2012-11-05 Thread Shubhrajyoti D
Implement reset as a separate function. This will enable us to make sure that we don't do the calculation again on every transfer. Also at probe the reset is not added as the hwmod is doing that for us. Reviewed-by: Felipe Balbi Signed-off-by: Shubhrajyoti D --- todo: reprodue the error

[PATCHv3 4/8] ARM: i2c: omap: Remove the i207 errata flag

2012-11-05 Thread Shubhrajyoti D
The commit [i2c: omap: use revision check for OMAP_I2C_FLAG_APPLY_ERRATA_I207] uses the revision id instead of the flag. So the flag can be safely removed. Reviewed-by: Felipe Balbi Signed-off-by: Shubhrajyoti D --- arch/arm/mach-omap2/omap_hwmod_2430_data.c |3 +-- arch/arm/mach-omap2

[PATCHv3 1/8] i2c: omap: Fix the revision register read

2012-11-05 Thread Shubhrajyoti D
een added in the resume handler to prevent the access before the setting of the regs. Signed-off-by: Shubhrajyoti D --- v3: Fix the comments. drivers/i2c/busses/i2c-omap.c | 61 - 1 files changed, 48 insertions(+), 13 deletions(-) diff --git a/drivers/

[PATCHv3 5/8] i2c: omap: re-factor omap_i2c_init function

2012-11-05 Thread Shubhrajyoti D
re-factor omap_i2c_init() so that we can re-use it for resume. While at it also remove the bufstate variable as we write it in omap_i2c_resize_fifo for every transfer. Reviewed-by: Felipe Balbi Signed-off-by: Shubhrajyoti D --- drivers/i2c/busses/i2c-omap.c | 75

[PATCHv3 3/8] i2c: omap: remove the dtrev

2012-11-05 Thread Shubhrajyoti D
The dtrev is used only for the comments. Remove the same and use the scheme instead to know if it is version2. Signed-off-by: Shubhrajyoti D --- v3: remove the scheme from the commments. todo: remove the dtrev from hwmod etc. drivers/i2c/busses/i2c-omap.c | 12 +--- 1 files changed

[PATCH] spi: omap2-mcspi: Reorder the wait_for_completion for tx

2012-11-06 Thread Shubhrajyoti D
The commit d7b4394e[Cleanup the omap2_mcspi_txrx_dma function] changed the wait_for_completion order. Move the wait so that the rx doesnot wait for the tx to complete. Reported-and-tested-by: Sørensen, Stefan Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c | 39

[PATCH] spi: omap2-mcspi: Reorder the wait_for_completion for tx

2012-11-06 Thread Shubhrajyoti D
The commit d7b4394e[Cleanup the omap2_mcspi_txrx_dma function] changed the wait_for_completion order. Move the wait so that the rx doesnot wait for the tx to complete. Reported-and-tested-by: Sørensen, Stefan Signed-off-by: Shubhrajyoti D --- drivers/spi/spi-omap2-mcspi.c | 39

[PATCH] i2c: omap: Move the remove constraint

2012-11-06 Thread Shubhrajyoti D
Currently we just queue the transfer and release the qos constraints, however we donot wait for the transfer to complete to release the constraint. Move the remove constraint after the bus busy as we are sure that the transfers are completed by then. Signed-off-by: Shubhrajyoti D --- drivers

[PATCHv2] i2c: omap: Move the remove constraint

2012-11-14 Thread Shubhrajyoti D
Currently we just queue the transfer and release the qos constraints, however we donot wait for the transfer to complete to release the constraint. Move the remove constraint after the bus busy as we are sure that the transfers are completed by then. Signed-off-by: Shubhrajyoti D --- v2: rebase

[PATCHv3] i2c: omap: Move the remove constraint

2012-11-15 Thread Shubhrajyoti D
: Shubhrajyoti D --- v2: rebase to the for-next branch v3: Fix a typo drivers/i2c/busses/i2c-omap.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 482c63d..fabcbe1 100644 --- a/drivers/i2c/busses/i2c-omap.c

[PATCH] spi: omap2-mcspi: Fix the redifine warning

2012-11-18 Thread Shubhrajyoti D
Fix the below warning drivers/spi/spi-omap2-mcspi.c:336:34: warning: symbol 'tx' shadows an earlier one drivers/spi/spi-omap2-mcspi.c:327:12: originally declared here So delete the u8 tx as it is assigned and not used(resigned afterwards). Signed-off-by: Shubhrajyoti D --- drive

[PATCH] i2c: omap: Remove the OMAP_I2C_FLAG_RESET_REGS_POSTIDLE flag

2012-11-26 Thread Shubhrajyoti D
The OMAP_I2C_FLAG_RESET_REGS_POSTIDLE is not used anymore in the i2c driver. Remove the flag. Signed-off-by: Shubhrajyoti D --- Has dependency on the below patch http://git.pengutronix.de/?p=wsa/linux.git;a=commitdiff;h=554c96744afd169886bd6fc2736fb0d9aaf634e8 arch/arm/mach-omap2

[PATCH] i2c: omap: Remove the OMAP_I2C_FLAG_RESET_REGS_POSTIDLE flag

2012-11-26 Thread Shubhrajyoti D
The OMAP_I2C_FLAG_RESET_REGS_POSTIDLE is not used anymore in the i2c driver. Remove the flag. Signed-off-by: Shubhrajyoti D --- Has dependency on the below patch http://git.pengutronix.de/?p=wsa/linux.git;a=commitdiff;h=554c96744afd169886bd6fc2736fb0d9aaf634e8 arch/arm/mach-omap2

[PATCHv2] i2c: omap: Remove the OMAP_I2C_FLAG_RESET_REGS_POSTIDLE flag

2012-11-26 Thread Shubhrajyoti D
The OMAP_I2C_FLAG_RESET_REGS_POSTIDLE is not used anymore in the i2c driver. Remove the flag. Signed-off-by: Shubhrajyoti D --- Has dependency on the below patch http://git.pengutronix.de/?p=wsa/linux.git;a=commitdiff;h=554c96744afd169886bd6fc2736fb0d9aaf634e8 arch/arm/mach-omap2

[PATCH] Input: omap4-keypad: Remove the OMAP4_KBD_SYSCONFIG and OMAP4_KBD_SYSSTATUS

2012-11-26 Thread Shubhrajyoti D
The macros OMAP4_KBD_SYSSTATUS and OMAP4_KBD_SYSSTATUS are not used so remove them. Signed-off-by: Shubhrajyoti D --- drivers/input/keyboard/omap4-keypad.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/input/keyboard/omap4-keypad.c b/drivers/input/keyboard

[PATCH RFC] i2c: omap: Remove the OMAP_I2C_IP_VERSION_*

2012-11-26 Thread Shubhrajyoti D
the common defines to i2c-omap.h to avoid duplication. Signed-off-by: Shubhrajyoti D --- arch/arm/mach-omap2/i2c.c | 16 +++- arch/arm/mach-omap2/omap_hwmod_2420_data.c |1 - arch/arm/mach-omap2/omap_hwmod_2430_data.c |1 - arch/arm/mach-omap2

<    1   2   3   4   5   6