[PATCH] net: davinci_emac: fix spinlock bug with dma channel cleanup

2011-04-11 Thread Sriramakrishnan A G
The DMA cleanup function was holding the spinlock across a busy loop where it waits for HW to indicate teardown is complete. This generates a backtrace, when DEBUG_SPINLOCK is enabled. Make the locking more granular. Signed-off-by: Sriramakrishnan A G --- drivers/net/davinci_cpdma.c |3

[PATCHv2] net: davinci_emac:Fix translation logic for buffer descriptor

2011-03-22 Thread Sriramakrishnan A G
translation logic support: Commit: ad021ae8862209864dc8ebd3b7d3a55ce84b9ea2 Signed-off-by: Sriramakrishnan A G --- Addresses review comments from Sergei. Generated against tip of Linus tree. drivers/net/davinci_cpdma.c | 11 --- drivers/net/davinci_cpdma.h |1 + drivers/net

[PATCH] net: davinci_emac:Fix translation logic for buffer descriptor

2011-03-22 Thread Sriramakrishnan
translation logic support: Commit: ad021ae8862209864dc8ebd3b7d3a55ce84b9ea2 Signed-off-by: Sriramakrishnan --- This patch has been generated against tip of Linus tree. drivers/net/davinci_cpdma.c | 11 --- drivers/net/davinci_cpdma.h |1 + drivers/net/davinci_emac.c |5

[PATCH 2/3] TI DaVinci EMAC: Fix asymmetric handling of packets in NAPI Poll function.

2010-07-29 Thread Sriramakrishnan
service tx/rx packets in an identical manner. Signed-off-by: Sriramakrishnan --- drivers/net/davinci_emac.c | 21 - 1 files changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index bc1b270..4ee9af6 100644 --- a

[PATCH 1/3] TI DaVinci EMAC : Implement interrupt pacing functionality.

2010-07-29 Thread Sriramakrishnan
: Sriramakrishnan --- drivers/net/davinci_emac.c | 133 +++- 1 files changed, 131 insertions(+), 2 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 08e82b1..bc1b270 100644 --- a/drivers/net/davinci_emac.c +++ b/drivers/net

[PATCH 3/3] TI DaVinci EMAC: Fix incorrect reference to EMAC_CTRL registers.

2010-07-29 Thread Sriramakrishnan
The EMAC modules control registers vary as per the version of the EMAC module. EMAC_CTRL_EWCTL,EMAC_CTRL_EWINTTCNT are available only on EMAC_VERSION_1. The emac_dump_regs() function accesses these indiscriminately. This patch fixes the issue. Signed-off-by: Sriramakrishnan --- drivers/net

[PATCH 4/4] AM3517 defconfig update : enable EMAC support

2010-03-11 Thread Sriramakrishnan
Update the default configuration for AM3517EVM to enable support for EMAC peripheral. Signed-off-by: Sriramakrishnan --- arch/arm/configs/am3517_evm_defconfig | 70 - 1 files changed, 69 insertions(+), 1 deletions(-) diff --git a/arch/arm/configs

[PATCH 2/4] AM35xx : Platform specific hookup for EMAC module

2010-03-11 Thread Sriramakrishnan
Modified AM35xx EVM init sequence to handle EMAC initialization. Signed-off-by: Sriramakrishnan --- arch/arm/mach-omap2/board-am3517evm.c | 98 + 1 files changed, 98 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm

[PATCH 1/4] AM35xx EMAC : define submodule offsets.

2010-03-11 Thread Sriramakrishnan
Define offsets for EMAC sub modules. Signed-off-by: Sriramakrishnan --- arch/arm/mach-omap2/include/mach/am35xx.h | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/include/mach/am35xx.h b/arch/arm/mach-omap2/include/mach/am35xx.h index

[PATCH 3/4] OMAP3 : clock data: Update name string for EMAC clocks.

2010-03-11 Thread Sriramakrishnan
The emac driver uses generic name for the module and phy clocks. Updated the omap3xxx_clks table to match the names used by the Davinci emac driver. Signed-off-by: Sriramakrishnan --- arch/arm/mach-omap2/clock3xxx_data.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 0/4] AM35xx : Add support for EMAC Peripheral

2010-03-11 Thread Sriramakrishnan
/linux-davinci list. [1].http://patchwork.ozlabs.org/patch/47331/ [2].http://patchwork.ozlabs.org/patch/47332/ Sriramakrishnan (4): AM35xx EMAC : define submodule offsets. AM35xx : Platform specific hookup for EMAC module OMAP3 : clock data: Update name string for EMAC clocks. AM3517

[PATCH 2/2] davinci: introduce EMAC PHY clock usage

2010-03-11 Thread Sriramakrishnan
From: Sekhar Nori The patch "TI DaVinci EMAC: Add EMAC PHY clock handling" adds support for enabling and disabling the EMAC PHY clock. The PHY clock on all DaVinci boards is derived from a fixed on board clock. This patch adds the PHY clock definition to the clock tree for all the DaVinci boards

[PATCH 0/2] TI DaVinci EMAC: Add support for handling PHY Clock.

2010-03-11 Thread Sriramakrishnan
://patchwork.ozlabs.org/patch/47303/ Sekhar Nori (1): davinci: introduce EMAC PHY clock usage Sriramakrishnan (1): TI DaVinci EMAC: Add EMAC PHY clock handling. arch/arm/mach-davinci/board-da830-evm.c | 19 +++ arch/arm/mach-davinci/board-da850-evm.c | 21

[PATCH 1/2] TI DaVinci EMAC: Add EMAC PHY clock handling.

2010-03-11 Thread Sriramakrishnan
adding clock management for phy clock. Signed-off-by: Sriramakrishnan --- drivers/net/davinci_emac.c | 22 -- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 8a42dbe..d9ae6ee 100644 --- a/drivers/net

[PATCH] TI DaVinci EMAC: Handle emac module clock correctly.

2010-01-07 Thread Sriramakrishnan
matching clk_disable for failure conditions in probe function. Signed-off-by: Sriramakrishnan --- This patch has been generated against tip of net-2.6.git drivers/net/davinci_emac.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers

RE: Compile Error for TI Davinci

2009-11-20 Thread Govindarajan, Sriramakrishnan
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Friday, November 20, 2009 11:20 PM > To: Govindarajan, Sriramakrishnan > Cc: net...@vger.kernel.org; davinci-linux-open- > sou...@linux.davincidsp.com; Subrahmanya, Chaithrika > Subject:

Compile Error for TI Davinci

2009-11-20 Thread Govindarajan, Sriramakrishnan
David, Patch for "TI DaVinci EMAC: Clear statistics register properly"(commit- 0fe7463a35aadfaf22d1ca58325ab3851b8d757c on net-next) has dependency on Patch "TI DaVinci EMAC: Minor macro related updates "(commit - 69ef9694099802f7feeb23182dfb869e7c5f76f0 on net-next). The first patch has been

[PATCH-v2 1/3] TI Davinci EMAC : Re-use driver for other platforms.

2009-11-19 Thread Sriramakrishnan
The davinci EMAC peripheral is also available on other TI platforms -notably TI AM3517 SoC. This patch modifies the config option and the platform structure header files so that the driver can be reused on non-davinci platforms as well. Signed-off-by: Sriramakrishnan Acked-by: Chaithrika U S

[PATCH-v2 0/3] TI EMAC driver : Make driver re-usable on non-davinci platforms.

2009-11-19 Thread Sriramakrishnan
The Davinci EMAC peripheral is also available on other TI platforms - notably TI AM3517 SoC. The following series of patches modify the driver suitably to make it platform agnostic. This patch has been generated against the tip of linux-davinci git. Sriramakrishnan (3): TI Davinci EMAC : Re

[PATCH-v2 2/3] TI Davinci EMAC : add platform specific interrupt enable/disable logic.

2009-11-19 Thread Sriramakrishnan
On certain SOCs, the EMAC controller is interfaced with a wrapper logic for handling interrupts. This patch implements a platform specific hook to cater to platforms that require custom interrupt handling logic Signed-off-by: Sriramakrishnan Acked-by: Chaithrika U S Acked-by: David S. Miller

[PATCH-v2 3/3] TI Davinci EMAC : Abstract Buffer address translation logic.

2009-11-19 Thread Sriramakrishnan
: Sriramakrishnan Acked-by: Chaithrika U S Acked-by: David S. Miller --- drivers/net/davinci_emac.c | 41 - include/linux/davinci_emac.h |1 + 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net

[PATCH 2/3] TI Davinci EMAC : add platform specific interrupt enable/disable logic.

2009-11-18 Thread Sriramakrishnan
On certain SOCs, the EMAC controller is interfaced with a wrapper logic for handling interrupts. This patch implements a platform specific hook to cater to platforms that require custom interrupt handling logic Signed-off-by: Sriramakrishnan Acked-by: Chaithrika U S --- drivers/net

[PATCH 3/3] TI Davinci EMAC : Abstract Buffer address translation logic.

2009-11-18 Thread Sriramakrishnan
: Sriramakrishnan Acked-by: Chaithrika U S --- drivers/net/davinci_emac.c | 41 - include/linux/davinci_emac.h |1 + 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 81931f8..d4e173b

[PATCH 0/3] TI EMAC driver : Make driver re-usable on non-davinci platforms.

2009-11-18 Thread Sriramakrishnan
The Davinci EMAC peripheral is also available on other TI platforms - notably TI AM3517 SoC. The following series of patches modify the driver suitably to make it platform agnostic. Sriramakrishnan (3): TI Davinci EMAC : Re-use driver for other platforms. TI Davinci EMAC : add platform

[PATCH 1/3] TI Davinci EMAC : Re-use driver for other platforms.

2009-11-18 Thread Sriramakrishnan
The davinci EMAC peripheral is also available on other TI platforms -notably TI AM3517 SoC. This patch modifies the config option and the platform structure header files so that the driver can be reused on non-davinci platforms as well. Signed-off-by: Sriramakrishnan Acked-by: Chaithrika U S

[PATCH] TI DaVinci EMAC: Clear statistics register properly.

2009-10-07 Thread Sriramakrishnan
register before choosing an appropriate mask for clearing stats registers. Signed-off-by: Sriramakrishnan Acked-by: Chaithrika U S --- This patch is generated against the tip of net-next-2.6. drivers/net/davinci_emac.c | 36 1 files changed, 24 insertions