[RFC PATCH] Board support for the the GPIO keys

2010-08-19 Thread Shubhrajyoti D
Board support for the GPIO keys. The proximity sensor is connected to GPIO and is registered as a GPIO key. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- arch/arm/mach-omap2/board-4430sdp.c | 56 +++ 1 files changed, 56 insertions(+), 0 deletions

[PATCH] Board changes for gpio-keys

2010-08-20 Thread Shubhrajyoti D
Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- arch/arm/mach-omap2/board-4430sdp.c | 64 +++ 1 files changed, 64 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index 9447644..699620d

[PATCH] omap: 4430sdp board support for the the GPIO keys

2010-08-20 Thread Shubhrajyoti D
omap 4430sdp board support for the GPIO keys. The proximity sensor is connected to GPIO and is registered as a GPIO key. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- arch/arm/mach-omap2/board-4430sdp.c | 64 +++ 1 files changed, 64 insertions(+), 0

[PATCH v2] omap: 4430sdp board support for the the GPIO keys

2010-08-20 Thread Shubhrajyoti D
omap 4430sdp board support for the GPIO keys. The proximity sensor is connected to GPIO and is registered as a GPIO key. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- arch/arm/mach-omap2/board-4430sdp.c | 64 +++ 1 files changed, 64 insertions(+), 0

[PATCH v2] omap: 4430sdp board support for the the GPIO keys

2010-08-23 Thread Shubhrajyoti D
omap 4430sdp board support for the GPIO keys. The proximity sensor is connected to GPIO and is registered as a GPIO key. - Making the default state of the sensor off at bootup Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- arch/arm/mach-omap2/board-4430sdp.c | 61

[PATCH] omap: 4430sdp board support for the the GPIO keys

2010-08-31 Thread Shubhrajyoti D
omap 4430sdp board support for the GPIO keys. The proximity sensor is connected to GPIO and is registered as a GPIO key. - Making the default state of the sensor off at bootup - The init is called before platform_add_devices Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- arch/arm/mach

[PATCH] omap: 4430sdp board support for proximity sensor

2010-09-01 Thread Shubhrajyoti D
omap 4430sdp board support for the proximity sensor via GPIO keys. The proximity sensor is connected to GPIO and is registered as a GPIO key. - Making the default state of the sensor off at bootup - The init is called before platform_add_devices Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com

[PATCH v7] OMAP4:keypad: PM runtime

2010-12-14 Thread Shubhrajyoti D
From: Abraham Arce x0066...@ti.com Enable Runtime PM functionality in OMAP4 driver based on the following assumptions - Runtime PM selected by ARCH_OMAP2PLUS_TYPICAL ARCH_OMAP2PLUS, which is the default OMAP2+ defconfig including OMAP4 - Runtime PM APIs handles Clock Framework APIs - Do not

[PATCH v7] OMAP4:keypad: PM runtime

2010-12-14 Thread Shubhrajyoti D
From: Abraham Arce x0066...@ti.com Enable Runtime PM functionality in OMAP4 driver based on the following assumptions A minimal pm runtime get/put approach is implemented in probe/remove calls respectively. - Keyboard controller in wakeup domain so it is always on and power impact may be

[PATCH] [RFC] Remove the debug print noise

2010-08-02 Thread Shubhrajyoti D
This patch intends to make the i2cdetect more readable. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 7674efb

[PATCH] OMAP2+: UART: Make the SERIAL_OMAP depend on ARCH_OMAP2PLUS

2011-11-14 Thread Shubhrajyoti D
Making SERIAL_OMAP depend on ARCH_OMAP2PLUS instead of oring with ARCH2/3/4. Acked-by: Felipe Balbi ba...@ti.com Suggested-by: Sricharan R r.sricha...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/tty/serial/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions

[PATCH] MTD: nand: Making MTD_NAND_OMAP2 depend on ARCH_OMAP2PLUS

2011-11-15 Thread Shubhrajyoti D
Making MTD_NAND_OMAP2 depend on ARCH_OMAP2PLUS instead of oring with ARCH2/3/4. Reported-by: Russell King li...@arm.linux.org.uk Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/mtd/nand/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd

[PATCH] MTD: nand: Making MTD_NAND_OMAP2 depend on ARCH_OMAP2PLUS

2011-11-15 Thread Shubhrajyoti D
Making MTD_NAND_OMAP2 depend on ARCH_OMAP2PLUS instead of oring with ARCH2/3/4. Reported-by: Russell King rmk+ker...@arm.linux.org.uk Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/mtd/nand/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers

[PATCH] I2C: OMAP: fix the clearing of interrupts

2011-11-15 Thread Shubhrajyoti D
The register IRQENABLE_CLR is a bit map of interrupt events. All the bits have to be cleared to clear the interrupts. Signed-off-by: Vikram Pandita vikram.pand...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |2 +- 1 files changed, 1 insertions

[PATCH v2] OMAP: I2C: Fix the interrupt clearing in OMAP4

2011-11-20 Thread Shubhrajyoti D
-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 15 ++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2dfb631..bf4376f 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c

[PATCH v3] OMAP: I2C: Fix the interrupt clearing in OMAP4

2011-11-21 Thread Shubhrajyoti D
However on OMAP4 we were writing 1 to IRQENABLE_CLR which clears only the arbitration lost interrupt. The patch intends to fix the same by writing 0 to the IE register. Signed-off-by: Vikram Pandita vikram.pand...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses

[PATCHv4 18/18] i2c: omap: remove redundant status read

2012-07-03 Thread Shubhrajyoti D
Remove the redundant read of the status register. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- v4:Patch addition(fixes a review comment) drivers/i2c/busses/i2c-omap.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c

[PATCHv4 17/18] i2c: omap: get rid of the complete label

2012-07-03 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com we can ack stat and complete the command from the errata handling itself. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 16 +--- 1 files changed, 13 insertions(+), 3

[PATCHv4 10/18] i2c: omap: ack IRQ in parts

2012-07-03 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com According to flow diagrams on OMAP TRMs, we should ACK the IRQ as they happen. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 28 1 files changed, 16

[PATCHv4 02/18] i2c: omap: simplify num_bytes handling

2012-07-03 Thread Shubhrajyoti D
optimised. Signed-off-by: Felipe Balbi ba...@ti.com Reviewed-by : Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b

[PATCHv4 07/18] i2c: omap: improve i462 errata handling

2012-07-03 Thread Shubhrajyoti D
-by: Felipe Balbi ba...@ti.com [Avoid flagging the XUDF] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 43 1 files changed, 30 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c

[PATCHv4 05/18] i2c: omap: simplify omap_i2c_ack_stat()

2012-07-03 Thread Shubhrajyoti D
[Added the explaination from the discurssion to the commit logs] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 19 ++- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c

[PATCHv4 04/18] i2c: omap: add blank lines

2012-07-03 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com trivial patch to aid readability. No functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

[PATCHv4 00/18] I2C OMAP big cleanup

2012-07-03 Thread Shubhrajyoti D
: simplify errata check i2c: omap: always return IRQ_HANDLED i2c: omap: simplify IRQ exit path i2c: omap: resize fifos before each message i2c: omap: get rid of the complete label Shubhrajyoti D (1): i2c: omap: remove redundant status read drivers/i2c/busses/i2c-omap.c | 392

[PATCHv4 13/18] i2c: omap: simplify errata check

2012-07-03 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com omap_i2c_dev is allocated with kzalloc(), so we need not initialize b_hw to zero. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |4 +--- 1 files changed, 1 insertions(+), 3

[PATCHv4 03/18] i2c: omap: decrease indentation level on data handling

2012-07-03 Thread Shubhrajyoti D
; break; } aaa; Hence no functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Reviewed-by : Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 63 - 1 files changed, 31

[PATCHv4 16/18] i2c: omap: resize fifos before each message

2012-07-03 Thread Shubhrajyoti D
uneeded check for dev-buf_len as we always know the amount of data to be transmitted. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 83 + 1 files changed, 51 insertions(+), 32

[PATCHv4 15/18] i2c: omap: simplify IRQ exit path

2012-07-03 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com instead of having multiple return points, use a goto statement to make that clearer. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 20 1 files changed, 8

[PATCHv4 11/18] i2c: omap: switch to platform_get_irq()

2012-07-03 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com that's a nice helper from drivers core which will give us the exact IRQ number, instead of a pointer to an IRQ resource. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 12

[PATCHv4 12/18] i2c: omap: bus: add a receiver flag

2012-07-03 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com that way we can ignore TX IRQs while in receiver mode and ignore RX IRQs while in transmitter mode. Signed-off-by: Felipe Balbi ba...@ti.com [Trivial formatting changes] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |8

[PATCHv4 06/18] i2c: omap: split out [XR]DR and [XR]RDY

2012-07-03 Thread Shubhrajyoti D
at that, also avoid an unncessary register read since dev-fifo_len will always contain the correct amount of data to be transferred. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- v4: use dev-buf_len as it is in sync with the remaining bytes avoids a reg read

[PATCHv4 09/18] i2c: omap: switch over to do {} while loop

2012-07-03 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com this will make sure that we execute at least once. No functional changes otherwise. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 20 ++-- 1 files changed, 14

[PATCHv4 01/18] i2c: omap: switch to devm_* API

2012-07-03 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com that helps deleting some boiler plate code and lets driver-core manage our resources for us. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 41

[PATCHv4 08/18] i2c: omap: re-factor receive/transmit data loop

2012-07-03 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com re-factor the common parts to a separate function, so that code is easier to read and understand. No functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 204

[PATCHv5 13/18] i2c: omap: simplify errata check

2012-07-19 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com omap_i2c_dev is allocated with kzalloc(), so we need not initialize b_hw to zero. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |4 +--- 1 files changed, 1 insertions(+), 3

[PATCHv5 08/18] i2c: omap: re-factor receive/transmit data loop

2012-07-19 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com re-factor the common parts to a separate function, so that code is easier to read and understand. No functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 204

[PATCHv5 05/18] i2c: omap: simplify omap_i2c_ack_stat()

2012-07-19 Thread Shubhrajyoti D
[Added the explaination from the discurssion to the commit logs] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 19 ++- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c

[PATCHv5 14/18] i2c: omap: always return IRQ_HANDLED

2012-07-19 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com otherwise we could get our IRQ line disabled due to many spurious IRQs. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCHv5 02/18] i2c: omap: simplify num_bytes handling

2012-07-19 Thread Shubhrajyoti D
optimised. Signed-off-by: Felipe Balbi ba...@ti.com Reviewed-by : Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b

[PATCHv5 12/18] i2c: omap: bus: add a receiver flag

2012-07-19 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com that way we can ignore TX IRQs while in receiver mode and ignore RX IRQs while in transmitter mode. Signed-off-by: Felipe Balbi ba...@ti.com [Trivial formatting changes] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |8

[PATCHv5 10/18] i2c: omap: ack IRQ in parts

2012-07-19 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com According to flow diagrams on OMAP TRMs, we should ACK the IRQ as they happen. Signed-off-by: Felipe Balbi ba...@ti.com [ack the stat OMAP_I2C_STAT_AL in case of arbitration lost] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- v5 - ack the OMAP_I2C_STAT_AL

[PATCHv5 07/18] i2c: omap: improve i462 errata handling

2012-07-19 Thread Shubhrajyoti D
the data. Signed-off-by: Felipe Balbi ba...@ti.com [Avoid flagging the XUDF] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 43 1 files changed, 30 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/busses/i2c

[PATCHv5 00/18] I2C big cleanup

2012-07-19 Thread Shubhrajyoti D
i2c: omap: simplify IRQ exit path i2c: omap: resize fifos before each message i2c: omap: get rid of the complete label Shubhrajyoti D (1): i2c: omap: remove redundant status read drivers/i2c/busses/i2c-omap.c | 392 - 1 files changed, 228 insertions

[PATCHv5 15/18] i2c: omap: simplify IRQ exit path

2012-07-19 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com instead of having multiple return points, use a goto statement to make that clearer. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 20 1 files changed, 8

[PATCHv5 18/18] i2c: omap: remove redundant status read

2012-07-19 Thread Shubhrajyoti D
Remove the redundant read of the status register. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 2e48da9..7ad24ac

[PATCHv5 16/18] i2c: omap: resize fifos before each message

2012-07-19 Thread Shubhrajyoti D
unneeded check for dev-buf_len as we always know the amount of data to be transmitted. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 83 + 1 files changed, 51 insertions(+), 32

[PATCHv5 09/18] i2c: omap: switch over to do {} while loop

2012-07-19 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com this will make sure that we execute at least once. No functional changes otherwise. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 20 ++-- 1 files changed, 14

[PATCHv5 01/18] i2c: omap: switch to devm_* API

2012-07-19 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com that helps deleting some boiler plate code and lets driver-core manage our resources for us. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 41

[PATCHv5 04/18] i2c: omap: add blank lines

2012-07-19 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com trivial patch to aid readability. No functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

[PATCHv5 06/18] i2c: omap: split out [XR]DR and [XR]RDY

2012-07-19 Thread Shubhrajyoti D
at that, also avoid an unncessary register read since dev-fifo_len will always contain the correct amount of data to be transferred. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- v4: use dev-buf_len as it is in sync with the remaining bytes avoids a reg read

[PATCHv5 11/18] i2c: omap: switch to platform_get_irq()

2012-07-19 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com that's a nice helper from drivers core which will give us the exact IRQ number, instead of a pointer to an IRQ resource. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 12

[PATCHv5 03/18] i2c: omap: decrease indentation level on data handling

2012-07-19 Thread Shubhrajyoti D
; break; } aaa; Hence no functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Reviewed-by : Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 63 - 1 files changed, 31

[PATCHv5 17/18] i2c: omap: get rid of the complete label

2012-07-19 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com we can ack stat and complete the command from the errata handling itself. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 16 +--- 1 files changed, 13 insertions(+), 3

[PATCH] spi/omap2: mark omap2_mcspi_master_setup as __devinit

2012-07-20 Thread Shubhrajyoti D
__init. Signed-off-by: Arnd Bergmann a...@arndb.de Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 37ccdb7..7d46b15 100644

[PATCH RFC] mmc: omap_hsmmc: Fix the warning

2012-07-24 Thread Shubhrajyoti D
by assigning the error value to ret. Cc: Kevin Hilman khil...@ti.com Reported-by: Archit Taneja arc...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/mmc/host/omap_hsmmc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b

[PATCH] spi: omap2-mcspi: In case of dma errors fall back to pio

2012-07-25 Thread Shubhrajyoti D
-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c | 21 + 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index bc47781..f243a39 100644 --- a/drivers/spi/spi-omap2-mcspi.c

[PATCH] Input: omap4-keypad: Fix the probe error handling

2012-07-25 Thread Shubhrajyoti D
the register access in probe instead of waiting for input registration etc. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/input/keyboard/omap4-keypad.c | 16 +++- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/input/keyboard/omap4-keypad.c b/drivers

[PATCH] spi: omap2-mcspi: Fix the error handling in probe

2012-08-02 Thread Shubhrajyoti D
device_put in some of the error paths. Acked-by: Guenter Roeck li...@roeck-us.net Reported-by: Guenter Roeck li...@roeck-us.net Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/spi/spi-omap2-mcspi.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCHv6 18/24] i2c: omap: remove redundant status read

2012-08-14 Thread Shubhrajyoti D
Remove the redundant read of the status register. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index dfdcc2b..2dd2301

[PATCHv6 08/24] i2c: omap: re-factor receive/transmit data loop

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com re-factor the common parts to a separate function, so that code is easier to read and understand. No functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 204

[PATCHv6 10/24] i2c: omap: ack IRQ in parts

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com According to flow diagrams on OMAP TRMs, we should ACK the IRQ as they happen. Signed-off-by: Felipe Balbi ba...@ti.com [Ack the stat OMAP_I2C_STAT_AL in case of arbitration lost] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c

[PATCHv6 12/24] i2c: omap: bus: add a receiver flag

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com that way we can ignore TX IRQs while in receiver mode and ignore RX IRQs while in transmitter mode. Signed-off-by: Felipe Balbi ba...@ti.com [Remove unnecessary braces] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |8

[PATCHv6 02/24] i2c: omap: simplify num_bytes handling

2012-08-14 Thread Shubhrajyoti D
optimised. Signed-off-by: Felipe Balbi ba...@ti.com Reviewed-by : Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b

[PATCHv6 07/24] i2c: omap: improve i462 errata handling

2012-08-14 Thread Shubhrajyoti D
the data. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 43 1 files changed, 30 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses

[PATCHv6 17/24] i2c: omap: get rid of the complete label

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com we can ack stat and complete the command from the errata handling itself. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 16 +--- 1 files changed, 13 insertions(+), 3

[PATCHv6 14/24] i2c: omap: always return IRQ_HANDLED

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com otherwise we could get our IRQ line disabled due to many spurious IRQs. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCHv6 19/24] i2c: omap: always return IRQ_HANDLED

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com even if our clocks are disabled, we still handled the IRQ, so we should return IRQ_HANDLED. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCHv6 13/24] i2c: omap: simplify errata check

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com omap_i2c_dev is allocated with kzalloc(), so we need not initialize b_hw to zero. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |4 +--- 1 files changed, 1 insertions(+), 3

[PATCHv6 11/24] i2c: omap: switch to platform_get_irq()

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com that's a nice helper from drivers core which will give us the exact IRQ number, instead of a pointer to an IRQ resource. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 12

[PATCHv6 03/24] i2c: omap: decrease indentation level on data handling

2012-08-14 Thread Shubhrajyoti D
; break; } aaa; Hence no functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Reviewed-by : Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 63 - 1 files changed, 31

[PATCHv6 01/24] i2c: omap: switch to devm_* API

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com that helps deleting some boiler plate code and lets driver-core manage our resources for us. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 41

[PATCHv6 09/24] i2c: omap: switch over to do {} while loop

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com this will make sure that we execute at least once. No functional changes otherwise. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 20 ++-- 1 files changed, 14

[PATCHv6 23/24] i2c: omap: sanitize exit path

2012-08-14 Thread Shubhrajyoti D
there was to be transferred. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c

[PATCHv6 24/24] i2c: omap: Prevent NULL pointer dereference in remove

2012-08-14 Thread Shubhrajyoti D
-by: Shubhrajyoti D shubhrajy...@ti.com --- 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 3df6f92..49dbff1 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c

[PATCHv6 06/24] i2c: omap: split out [XR]DR and [XR]RDY

2012-08-14 Thread Shubhrajyoti D
at that, also avoid an unncessary register read since dev-fifo_len will always contain the correct amount of data to be transferred. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 126

[PATCHv6 22/24] i2c: omap: switch over to autosuspend API

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com this helps us reduce unnecessary pm transitions in case we have another i2c message starting soon. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 12 ++-- 1 files changed

[PATCHv6 00/24] I2C big cleanup

2012-08-14 Thread Shubhrajyoti D
: omap: sanitize exit path Shubhrajyoti D (2): i2c: omap: remove redundant status read i2c: omap: Prevent NULL pointer dereference in remove drivers/i2c/busses/i2c-omap.c | 446 + 1 files changed, 273 insertions(+), 173 deletions(-) -- 1.7.5.4

[PATCHv6 15/24] i2c: omap: simplify IRQ exit path

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com instead of having multiple return points, use a goto statement to make that clearer. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 20 1 files changed, 8

[PATCHv6 16/24] i2c: omap: resize fifos before each message

2012-08-14 Thread Shubhrajyoti D
unneeded check for dev-buf_len as we always know the amount of data to be transmitted. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 83 + 1 files changed, 51 insertions(+), 32

[PATCHv6 04/24] i2c: omap: add blank lines

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com trivial patch to aid readability. No functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

[PATCHv6 21/24] i2c: omap: remove unnecessary pm_runtime_suspended check

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com before starting any messages we call pm_runtime_get_sync() which will make sure that by the time we program a transfer and our IRQ handler gets called, we're not suspended anymore. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy

[PATCHv6 20/24] i2c: omap: switch to threaded IRQ support

2012-08-14 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com for OMAP2, we can easily switch over to threaded IRQs on the I2C driver. This will allow us to spend less time in hardirq context. Signed-off-by: Felipe Balbi ba...@ti.com [Trivial formating changes] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers

[PATCHv6 05/24] i2c: omap: simplify omap_i2c_ack_stat()

2012-08-14 Thread Shubhrajyoti D
[Added the explaination from the discurssion to the commit logs] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 19 ++- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c

[PATCHv7 14/24] i2c: omap: always return IRQ_HANDLED

2012-08-16 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com Always return IRQ_HANDLED otherwise we could get our IRQ line disabled due to many spurious IRQs. Signed-off-by: Felipe Balbi ba...@ti.com [Trivial changes to commitlogs] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |2

[PATCHv7 10/24] i2c: omap: ack IRQ in parts

2012-08-16 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com According to flow diagrams on OMAP TRMs, we should ACK the IRQ as they happen. Signed-off-by: Felipe Balbi ba...@ti.com [Ack the stat OMAP_I2C_STAT_AL in case of arbitration lost] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c

[PATCHv7 18/24] i2c: omap: remove redundant status read

2012-08-16 Thread Shubhrajyoti D
Remove the redundant read of the status register. Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index dfdcc2b..2dd2301

[PATCHv7 19/24] i2c: omap: always return IRQ_HANDLED

2012-08-16 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com even if our clocks are disabled, we still handled the IRQ, so we should return IRQ_HANDLED. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCHv7 00/24] I2C big cleanup

2012-08-16 Thread Shubhrajyoti D
path Shubhrajyoti D (2): i2c: omap: remove redundant status read i2c: omap: Prevent NULL pointer dereference in remove drivers/i2c/busses/i2c-omap.c | 446 + 1 files changed, 271 insertions(+), 175 deletions(-) -- 1.7.5.4 -- To unsubscribe from

[PATCHv7 12/24] i2c: omap: bus: add a receiver flag

2012-08-16 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com that way we can ignore TX IRQs while in receiver mode and ignore RX IRQs while in transmitter mode. Signed-off-by: Felipe Balbi ba...@ti.com [Remove unnecessary braces] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |8

[PATCHv7 06/24] i2c: omap: split out [XR]DR and [XR]RDY

2012-08-16 Thread Shubhrajyoti D
at that, also avoid an unncessary register read since dev-fifo_len will always contain the correct amount of data to be transferred. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 126

[PATCHv7 15/24] i2c: omap: simplify IRQ exit path

2012-08-16 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com instead of having multiple return points, use a goto statement to make that clearer. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 20 1 files changed, 8

[PATCHv7 01/24] i2c: omap: switch to devm_* API

2012-08-16 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com that helps deleting some boiler plate code and lets driver-core manage our resources for us. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 41

[PATCHv7 11/24] i2c: omap: switch to platform_get_irq()

2012-08-16 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com that's a nice helper from drivers core which will give us the exact IRQ number, instead of a pointer to an IRQ resource. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 12

[PATCHv7 17/24] i2c: omap: get rid of the complete label

2012-08-16 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com we can ack stat and complete the command from the errata handling itself. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 16 +--- 1 files changed, 13 insertions(+), 3

[PATCHv7 03/24] i2c: omap: decrease indentation level on data handling

2012-08-16 Thread Shubhrajyoti D
; break; } aaa; Hence no functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Reviewed-by : Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 63 - 1 files changed, 31

[PATCHv7 05/24] i2c: omap: simplify omap_i2c_ack_stat()

2012-08-16 Thread Shubhrajyoti D
[Added the explaination from the discurssion to the commit logs] Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 19 ++- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c

[PATCHv7 07/24] i2c: omap: improve i462 errata handling

2012-08-16 Thread Shubhrajyoti D
the data. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 43 1 files changed, 30 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses

[PATCHv7 02/24] i2c: omap: simplify num_bytes handling

2012-08-16 Thread Shubhrajyoti D
optimised. Signed-off-by: Felipe Balbi ba...@ti.com Reviewed-by : Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b

[PATCHv7 04/24] i2c: omap: add blank lines

2012-08-16 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com trivial patch to aid readability. No functional changes. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

[PATCHv7 09/24] i2c: omap: switch over to do {} while loop

2012-08-16 Thread Shubhrajyoti D
From: Felipe Balbi ba...@ti.com this will make sure that we execute at least once. No functional changes otherwise. Signed-off-by: Felipe Balbi ba...@ti.com Signed-off-by: Shubhrajyoti D shubhrajy...@ti.com --- drivers/i2c/busses/i2c-omap.c | 20 ++-- 1 files changed, 14

  1   2   3   4   5   6   >