[PATCH 1/2] drivers: net: ethernet: davince_mdio: device tree implementation

2012-08-06 Thread Mugunthan V N
device tree implementation for davinci mdio driver Signed-off-by: Mugunthan V N mugunthan...@ti.com --- .../devicetree/bindings/net/davinci-mdio.txt | 33 drivers/net/ethernet/ti/davinci_mdio.c | 41 ++-- 2 files changed, 70 insertions(+), 4

[PATCH 2/2] documentation: dt: bindings: cpsw: fixing the examples for directly using it in dts file

2012-08-06 Thread Mugunthan V N
Fixing the cpsw device tree example to make it simpler to copy pastable to dts file and use it directly. Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Documentation/devicetree/bindings/net/cpsw.txt | 101 --- 1 files changed, 53 insertions(+), 48 deletions(-) diff

[PATCH 0/2] Add device tree support for davinci_mdio driver and fix cpsw DT binding documentation

2012-08-06 Thread Mugunthan V N
Mugunthan V N (2): drivers: net: ethernet: davince_mdio: device tree implementation documentation: dt: bindings: cpsw: fixing the examples for directly using it in dts file Documentation/devicetree/bindings/net/cpsw.txt | 101 ++- .../devicetree/bindings/net/davinci

[PATCH 2/7] net: cpsw: Add parent-child relation support between cpsw and mdio

2012-11-06 Thread Mugunthan V N
and populated in DT execution flow. The only required change is inside DTS file, making MDIO as a child to CPSW node. Signed-off-by: Vaibhav Hiremath hvaib...@ti.com Cc: Mugunthan V N mugunthan...@ti.com Cc: Richard Cochran richardcoch...@gmail.com --- drivers/net/ethernet/ti/cpsw.c | 16

[PATCH 5/7] arm/dts: am33xx: Add CPSW and MDIO module nodes for AM33XX

2012-11-06 Thread Mugunthan V N
Add CPSW and MDIO related device tree data for AM33XX. Also enable them into board/evm dts files by providing respective phy-id. Signed-off-by: Mugunthan V N mugunthan...@ti.com Signed-off-by: Vaibhav Hiremath hvaib...@ti.com Cc: Richard Cochran richardcoch...@gmail.com Cc: Benoit Cousson b-cous

[PATCH 3/7] ARM: OMAP3+: hwmod: Add AM33XX HWMOD data for davinci_mdio module

2012-11-06 Thread Mugunthan V N
to control module/clock enable/disable, makes it difficult to handle common resources from both drivers. So the solution is, create parent-child relationship between CPGMAC MDIO modules. Signed-off-by: Mugunthan V N mugunthan...@ti.com Signed-off-by: Vaibhav Hiremath hvaib...@ti.com Cc: Richard Cochran

[PATCH 4/7] cpsw: simplify the setup of the register pointers

2012-11-06 Thread Mugunthan V N
...@gmail.com Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Documentation/devicetree/bindings/net/cpsw.txt | 34 drivers/net/ethernet/ti/cpsw.c | 209 +-- include/linux/platform_data/cpsw.h | 19 -- 3 files changed, 82 insertions

[PATCH 6/7] ARM: OMAP2+: omap2plus_defconfig: Enable CPSW support

2012-11-06 Thread Mugunthan V N
Enable CPSW support in defconfig which is present in AM33xx SoC Signed-off-by: Mugunthan V N mugunthan...@ti.com --- arch/arm/configs/omap2plus_defconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs

[PATCH 7/7] net: cpsw: halt network stack before halting the device during suspend

2012-11-06 Thread Mugunthan V N
Move network stack halt APIs before halting the hardware to ensure no packets are queued to hardware during closing the device during suspend sequence. Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions

[PATCH 1/7] net: davinci_mdio: Fix typo mistake in calling runtime-pm api

2012-11-06 Thread Mugunthan V N
it didn't impact functionality is, the patch has been tested on AM335x-EVM and BeagleBone platform while submitting; and in case of AM335x the MDIO driver doesn't control the module enable/disable part, which is handled by CPSW driver. Signed-off-by: Vaibhav Hiremath hvaib...@ti.com Cc: Mugunthan V N

[PATCH 0/7] ARM: AM33XX: net: Add DT support to CPGMAC and MDIO driver

2012-11-06 Thread Mugunthan V N
for NFS boot and basic ping test cases. Mugunthan V N (4): ARM: OMAP3+: hwmod: Add AM33XX HWMOD data for davinci_mdio module arm/dts: am33xx: Add CPSW and MDIO module nodes for AM33XX ARM: OMAP2+: omap2plus_defconfig: Enable CPSW support net: cpsw: halt network stack before halting

Re: [PATCH 3/7] ARM: OMAP3+: hwmod: Add AM33XX HWMOD data for davinci_mdio module

2012-11-06 Thread Mugunthan V N
code to do here? Will remove the unnecessary flags and submit the patch. Regards Mugunthan V N -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/7] ARM: OMAP3+: hwmod: Add AM33XX HWMOD data for davinci_mdio module

2012-11-06 Thread Mugunthan V N
, + .slave = am33xx_mdio_hwmod, + .addr = am33xx_mdio_addr_space, + .user = OCP_USER_MPU, +}; + static struct omap_hwmod_addr_space am33xx_elm_addr_space[] = { { .pa_start = 0x4808, Regards Mugunthan V N -- To unsubscribe

[PATCH V4 0/7] ARM: AM33XX: net: Add DT support to CPGMAC and MDIO driver

2012-11-06 Thread Mugunthan V N
for NFS boot and basic ping test cases. Changes from V3: * Removed unnecessary flags in Davinci MDIO Hwmod entry. Mugunthan V N (4): ARM: OMAP3+: hwmod: Add AM33XX HWMOD data for davinci_mdio module arm/dts: am33xx: Add CPSW and MDIO module nodes for AM33XX ARM: OMAP2+: omap2plus_defconfig

[PATCH V4 3/7] ARM: OMAP3+: hwmod: Add AM33XX HWMOD data for davinci_mdio module

2012-11-06 Thread Mugunthan V N
to control module/clock enable/disable, makes it difficult to handle common resources from both drivers. So the solution is, create parent-child relationship between CPGMAC MDIO modules. Signed-off-by: Mugunthan V N mugunthan...@ti.com Signed-off-by: Vaibhav Hiremath hvaib...@ti.com Cc: Paul Walmsley p

[PATCH V4 7/7] net: cpsw: halt network stack before halting the device during suspend

2012-11-06 Thread Mugunthan V N
Move network stack halt APIs before halting the hardware to ensure no packets are queued to hardware during closing the device during suspend sequence. Signed-off-by: Mugunthan V N mugunthan...@ti.com Acked-by: Richard Cochran richardcoch...@gmail.com --- drivers/net/ethernet/ti/cpsw.c |6

[PATCH V4 4/7] cpsw: simplify the setup of the register pointers

2012-11-06 Thread Mugunthan V N
...@gmail.com Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Documentation/devicetree/bindings/net/cpsw.txt | 34 drivers/net/ethernet/ti/cpsw.c | 209 +-- include/linux/platform_data/cpsw.h | 19 -- 3 files changed, 82 insertions

[PATCH V4 5/7] arm/dts: am33xx: Add CPSW and MDIO module nodes for AM33XX

2012-11-06 Thread Mugunthan V N
Add CPSW and MDIO related device tree data for AM33XX. Also enable them into board/evm dts files by providing respective phy-id. Signed-off-by: Mugunthan V N mugunthan...@ti.com Signed-off-by: Vaibhav Hiremath hvaib...@ti.com Cc: Benoit Cousson b-cous...@ti.com Acked-by: Peter Korsgaard jac

[PATCH V4 1/7] net: davinci_mdio: Fix typo mistake in calling runtime-pm api

2012-11-06 Thread Mugunthan V N
-by: Mugunthan V N mugunthan...@ti.com Acked-by: Peter Korsgaard jac...@sunsite.dk Acked-by: Richard Cochran richardcoch...@gmail.com --- drivers/net/ethernet/ti/davinci_mdio.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net

[PATCH V4 6/7] ARM: OMAP2+: omap2plus_defconfig: Enable CPSW support

2012-11-06 Thread Mugunthan V N
Enable CPSW support in defconfig which is present in AM33xx SoC Signed-off-by: Mugunthan V N mugunthan...@ti.com Acked-by: Richard Cochran richardcoch...@gmail.com --- arch/arm/configs/omap2plus_defconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/configs

[PATCH V4 2/7] net: cpsw: Add parent-child relation support between cpsw and mdio

2012-11-06 Thread Mugunthan V N
and populated in DT execution flow. The only required change is inside DTS file, making MDIO as a child to CPSW node. Signed-off-by: Vaibhav Hiremath hvaib...@ti.com Signed-off-by: Mugunthan V N mugunthan...@ti.com Acked-by: Peter Korsgaard jac...@sunsite.dk Acked-by: Richard Cochran richardcoch

Re: [PATCH V4 0/7] ARM: AM33XX: net: Add DT support to CPGMAC and MDIO driver

2012-11-07 Thread Mugunthan V N
On 11/6/2012 11:02 PM, Mugunthan V N wrote: This patch-series adds support for, [1/7]: Typo mistake in CPSW driver while invoking runtime_pm api's [2/7]: Adds parent-child relation between CPSW MDIO module inside cpsw driver, as in case of AM33XX, the resources are shared and common

Re: [PATCH 4/4] arm/dts: am33xx: Add CPSW and MDIO module nodes for AM33XX

2012-11-08 Thread Mugunthan V N
to 4a101000.mdio:00. Since davinci_mdio is a child node to cpsw, the platform device for mdio is not created to get the mdio device name 4a101000.mdio. Can you point me a reference to get the right implementation. Regards Mugunthan V N -- To unsubscribe from this list: send the line unsubscribe

[PATCH V5 0/7] ARM: AM33XX: net: Add DT support to CPSW and MDIO driver

2012-11-14 Thread Mugunthan V N
for NFS boot and basic ping test cases. Changes from V3: * Removed unnecessary flags in Davinci MDIO Hwmod entry. Changes from V4: * Changed CPSW phy ID in DT to make it generic. * Applied cosmetic changed in AM33XX dts file from Benoit Cousson Mugunthan V N (4): net: cpsw: halt network stack

[PATCH V5 6/7] ARM: OMAP2+: omap2plus_defconfig: Enable CPSW support

2012-11-14 Thread Mugunthan V N
Enable CPSW support in defconfig which is present in AM33xx SoC Signed-off-by: Mugunthan V N mugunthan...@ti.com Acked-by: Richard Cochran richardcoch...@gmail.com --- arch/arm/configs/omap2plus_defconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/configs

[PATCH V5 4/7] net: cpsw: halt network stack before halting the device during suspend

2012-11-14 Thread Mugunthan V N
Move network stack halt APIs before halting the hardware to ensure no packets are queued to hardware during closing the device during suspend sequence. Signed-off-by: Mugunthan V N mugunthan...@ti.com Acked-by: Richard Cochran richardcoch...@gmail.com --- drivers/net/ethernet/ti/cpsw.c |6

[PATCH V5 3/7] cpsw: simplify the setup of the register pointers

2012-11-14 Thread Mugunthan V N
...@gmail.com Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Documentation/devicetree/bindings/net/cpsw.txt | 42 + drivers/net/ethernet/ti/cpsw.c | 242 ++-- include/linux/platform_data/cpsw.h | 21 +-- 3 files changed, 108 insertions

[PATCH V5 2/7] net: cpsw: Add parent-child relation support between cpsw and mdio

2012-11-14 Thread Mugunthan V N
and populated in DT execution flow. The only required change is inside DTS file, making MDIO as a child to CPSW node. Signed-off-by: Vaibhav Hiremath hvaib...@ti.com Signed-off-by: Mugunthan V N mugunthan...@ti.com Acked-by: Peter Korsgaard jac...@sunsite.dk Acked-by: Richard Cochran richardcoch

[PATCH V5 1/7] net: davinci_mdio: Fix typo mistake in calling runtime-pm api

2012-11-14 Thread Mugunthan V N
-by: Mugunthan V N mugunthan...@ti.com Acked-by: Peter Korsgaard jac...@sunsite.dk Acked-by: Richard Cochran richardcoch...@gmail.com --- drivers/net/ethernet/ti/davinci_mdio.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net

[PATCH 1/1] ARM: dts: am335x-evmsk: Add cpsw phy_id

2012-11-23 Thread Mugunthan V N
Add phy id for CPSW Signed-off-by: Mugunthan V N mugunthan...@ti.com --- The patch is verified with CPSW patches present in the following git repo git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git arch/arm/boot/dts/am335x-evmsk.dts |8 1 files changed, 8 insertions

[PATCH 1/1] ARM: OMAP: fix build error in arch/arm/mach-omap2/timer.c

2012-11-27 Thread Mugunthan V N
* Rename the prom_*_property routines of the generic OF code to of_*_property. This brings them in line with the naming used by the rest of the OF code. Signed-off-by: Mugunthan V N mugunthan...@ti.com --- arch/arm/mach-omap2/timer.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH 1/1] net: cpts: fix for build break after ARM SoC integration

2012-11-27 Thread Mugunthan V N
Remove arch/arm/plat-omap/include/plat/clock.h by merging it into arch/arm/mach-omap1/clock.h and arch/arm/mach-omap2/clock.h. The goal here is to facilitate ARM single image kernels by removing includes via the plat/ symlink. Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers

Re: [PATCH 1/1] net: cpts: fix for build break after ARM SoC integration

2012-11-27 Thread Mugunthan V N
On 11/27/2012 3:57 PM, Mugunthan V N wrote: CC drivers/net/ethernet/ti/cpts.o drivers/net/ethernet/ti/cpts.c:30:24: fatal error: plat/clock.h: No such file or directory compilation terminated. make[4]: *** [drivers/net/ethernet/ti/cpts.o] Error 1 make[3]: *** [drivers/net/ethernet/ti

[PATCH 1/1] net: ethernet: cpsw: fix build warnings for CPSW when CPTS not selected

2012-11-27 Thread Mugunthan V N
IOCTL instead of passing priv Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 02c2477..c9714e1 100644

Re: [PATCH 1/3] net: cpsw: replace pr_xxx with dev_xxx functions

2012-12-03 Thread Mugunthan V N
On 12/3/2012 7:19 PM, Jan Luebbe wrote: Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/net/ethernet/ti/cpsw.c | 47 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c

Re: [PATCH 2/3] net: cpsw: verify correct number of slaves in DT

2012-12-03 Thread Mugunthan V N
); + ret = -EINVAL; + goto error_ret; + } + /* * Populate all the child nodes here... */ The patches look good to me. Acked-by: Mugunthan V Nmugunthan...@ti.com Regards Mugunthan V N -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH 3/3] net: cpsw: implement ioctl for MII

2012-12-03 Thread Mugunthan V N
= cpsw_ndo_get_stats, Already ndo_do_ioctl is already implemented. Can you rebase the patch with latest git repo and resubmit the patch Regards Mugunthan V N -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More

[PATCH 1/1] net: ethernet: davinci_cpdma: Add boundary for rx and tx descriptors

2012-12-09 Thread Mugunthan V N
V N mugunthan...@ti.com --- drivers/net/ethernet/ti/davinci_cpdma.c | 20 ++-- drivers/net/ethernet/ti/davinci_emac.c |8 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/net/ethernet/ti/davinci_cpdma.c b/drivers/net/ethernet/ti

Re: [PATCH 1/1] net: ethernet: davinci_cpdma: Add boundary for rx and tx descriptors

2012-12-10 Thread Mugunthan V N
On 12/10/2012 1:41 PM, Christian Riesch wrote: Hi, On Mon, Dec 10, 2012 at 8:37 AM, Mugunthan V N mugunthan...@ti.com wrote: When there is heavy transmission traffic in the CPDMA, then Rx descriptors memory is also utilized as tx desc memory this leads to reduced rx desc memory which leads

Re: [PATCH 1/1] net: ethernet: davinci_cpdma: Add boundary for rx and tx descriptors

2012-12-10 Thread Mugunthan V N
On 12/10/2012 1:54 PM, Christian Riesch wrote: Hi again, On Mon, Dec 10, 2012 at 8:37 AM, Mugunthan V N mugunthan...@ti.com wrote: When there is heavy transmission traffic in the CPDMA, then Rx descriptors memory is also utilized as tx desc memory this leads to reduced rx desc memory which

[PATCH v2 1/1] net: ethernet: davinci_cpdma: Add boundary for rx and tx descriptors

2012-12-10 Thread Mugunthan V N
descriptors. The driver stops working then. To fix this limit the number of tx descriptors used to half of the descriptors available, the rx path uses the other half. Tested on a custom board using nmap / ping -f to the board from two different hosts. Signed-off-by: Mugunthan V N

Re: [PATCH v2 1/1] net: ethernet: davinci_cpdma: Add boundary for rx and tx descriptors

2012-12-12 Thread Mugunthan V N
to me. I will submit next version with the suggestion Regards Mugunthan V N -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/3] ARM: OMAP AM33xx: hwmod data: resolve sparse warnings

2012-12-25 Thread Mugunthan V N
' was not declared. Should it be static? arch/arm/mach-omap2/omap_hwmod_33xx_data.c:2526:26: warning: symbol 'am33xx_cpgmac0__mdio' was not declared. Should it be static? Fix by marking the two new records as static. Signed-off-by: Paul Walmsley p...@pwsan.com Cc: Mugunthan V N mugunthan...@ti.com Cc: Vaibhav

Re: [PATCH v2 0/2] cpts fixes for v3.8-rc2

2012-12-25 Thread Mugunthan V N
code. cpts: fix a run time warn_on. drivers/net/ethernet/ti/cpts.c |3 +-- drivers/net/ethernet/ti/cpts.h |1 - 2 files changed, 1 insertions(+), 3 deletions(-) Looks good to me. Acked-by : Mugunthan V N mugunthan...@ti.com -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCHv2] am33xx: cpsw: default to ethernet hwaddr from efuse if not defined in dt

2013-01-17 Thread Mugunthan V N
ones. Signed-off-by: Peter Korsgaard jac...@sunsite.dk This implementation looks fine. Acked-by: Mugunthan V N mugunthan...@ti.com Regards Mugunthan V N -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo

[PATCH 2/2] drivers: net:ethernet: cpsw: add support for VLAN

2013-01-28 Thread Mugunthan V N
adding support for VLAN interface for cpsw. CPSW VLAN Capability * Can filter VLAN packets in Hardware Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Documentation/devicetree/bindings/net/cpsw.txt |2 + drivers/net/ethernet/ti/cpsw.c | 108

[PATCH 1/2] drivers: net: cpsw: Add helper functions for VLAN ALE implementation

2013-01-28 Thread Mugunthan V N
Add helper functions for VLAN ALE implementations for Add, Delete Dump VLAN related ALE entries Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw_ale.c | 172 ++-- drivers/net/ethernet/ti/cpsw_ale.h | 11 +++ 2 files changed, 178

[PATCH 0/2] Add CPSW VLAN Support

2013-01-28 Thread Mugunthan V N
CPSW is capable of filtering VLAN packets in hardware. This patch series implements VLAN support to CPSW driver. This patch series is tested on net-next with AM335x EVM with ping test. Mugunthan V N (2): drivers: net: cpsw: Add helper functions for VLAN ALE implementation drivers

Re: [PATCH 2/2] drivers: net:ethernet: cpsw: add support for VLAN

2013-01-28 Thread Mugunthan V N
On 1/29/2013 2:14 AM, Felipe Balbi wrote: On Tue, Jan 29, 2013 at 01:42:25AM +0530, Mugunthan V N wrote: adding support for VLAN interface for cpsw. CPSW VLAN Capability * Can filter VLAN packets in Hardware Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Documentation/devicetree

Re: [PATCH] cpsw: Fix interrupt storm among other things

2013-01-29 Thread Mugunthan V N
files changed, 194 insertions(+), 36 deletions(-) I have tested CPSW on AM335x EVM 1.5A with flood ping and i am not seeing any interrupt storm. Can you provide more details on how to reproduce the issue. Regards Mugunthan V N -- To unsubscribe from this list: send the line unsubscribe linux-omap

Re: [PATCH 2/2] drivers: net:ethernet: cpsw: add support for VLAN

2013-01-29 Thread Mugunthan V N
On 1/29/2013 3:18 PM, Jan Lübbe wrote: On Tue, 2013-01-29 at 01:42 +0530, Mugunthan V N wrote: --- a/Documentation/devicetree/bindings/net/cpsw.txt +++ b/Documentation/devicetree/bindings/net/cpsw.txt @@ -24,6 +24,8 @@ Required properties: Optional properties: - ti,hwmods: Must

Re: [PATCH 2/2] drivers: net:ethernet: cpsw: add support for VLAN

2013-01-29 Thread Mugunthan V N
On 1/29/2013 1:06 PM, Richard Cochran wrote: On Tue, Jan 29, 2013 at 01:42:25AM +0530, Mugunthan V N wrote: @@ -947,6 +1042,10 @@ static const struct net_device_ops cpsw_netdev_ops = { #ifdef CONFIG_NET_POLL_CONTROLLER .ndo_poll_controller= cpsw_ndo_poll_controller, #endif

Re: [PATCH 1/2] drivers: net: cpsw: Add helper functions for VLAN ALE implementation

2013-01-29 Thread Mugunthan V N
On 1/30/2013 5:08 AM, Cyril Chemparathy wrote: On 01/28/2013 03:12 PM, Mugunthan V N wrote: Add helper functions for VLAN ALE implementations for Add, Delete Dump VLAN related ALE entries Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw_ale.c | 172

Re: [PATCH] cpsw: Fix interrupt storm among other things

2013-01-30 Thread Mugunthan V N
On 1/30/2013 2:06 PM, Pantelis Antoniou wrote: Hi Mugunthan, On Jan 29, 2013, at 1:45 PM, Mugunthan V N wrote: On 1/28/2013 6:41 PM, Pantelis Antoniou wrote: Fix interrupt storm on bone A4 cause by non-by-the-book interrupt handling. While at it, added a non-NAPI mode (which is easier

Re: [PATCH] cpsw: Fix interrupt storm among other things

2013-01-30 Thread Mugunthan V N
On 1/30/2013 3:06 PM, Pantelis Antoniou wrote: Hi, On Jan 30, 2013, at 11:03 AM, Mugunthan V N wrote: On 1/30/2013 2:06 PM, Pantelis Antoniou wrote: Hi Mugunthan, On Jan 29, 2013, at 1:45 PM, Mugunthan V N wrote: On 1/28/2013 6:41 PM, Pantelis Antoniou wrote: Fix interrupt storm on bone

Re: [PATCH] cpsw: Fix interrupt storm among other things

2013-01-30 Thread Mugunthan V N
-- Pantelis This is the device ID which i have [root@arago /]# devmem 0x44e10600 0x1B94402E Regards Mugunthan V N -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [PATCH] cpsw: Fix interrupt storm among other things

2013-01-30 Thread Mugunthan V N
On 1/30/2013 7:25 PM, Pantelis Antoniou wrote: Hi Mugunthan, On Jan 30, 2013, at 3:53 PM, Mugunthan V N wrote: On 1/30/2013 7:21 PM, Pantelis Antoniou wrote: Hi Vaibhav, On Jan 30, 2013, at 3:47 PM, Bedia, Vaibhav wrote: Hi Antoniou, On Wed, Jan 30, 2013 at 19:07:19, Pantelis Antoniou

[PATCH v2 0/2] Add CPSW VLAN Support

2013-01-30 Thread Mugunthan V N
as default VLAN enabled so that drivers need to be recompiled when stack is compiled with VLAN Mugunthan V N (2): drivers: net: cpsw: Add helper functions for VLAN ALE implementation drivers: net:ethernet: cpsw: add support for VLAN Documentation/devicetree/bindings/net/cpsw.txt |2

[PATCH v2 1/2] drivers: net: cpsw: Add helper functions for VLAN ALE implementation

2013-01-30 Thread Mugunthan V N
Add helper functions for VLAN ALE implementations for Add, Delete Dump VLAN related ALE entries Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw.c |8 +-- drivers/net/ethernet/ti/cpsw_ale.c | 106 drivers/net/ethernet

[PATCH v2 2/2] drivers: net:ethernet: cpsw: add support for VLAN

2013-01-30 Thread Mugunthan V N
adding support for VLAN interface for cpsw. CPSW VLAN Capability * Can filter VLAN packets in Hardware Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Documentation/devicetree/bindings/net/cpsw.txt |2 + drivers/net/ethernet/ti/cpsw.c | 92

Re: [PATCH] cpsw: Fix interrupt storm among other things

2013-01-30 Thread Mugunthan V N
Hi Antoniou On 1/30/2013 7:25 PM, Pantelis Antoniou wrote: Hi Mugunthan, On Jan 30, 2013, at 3:53 PM, Mugunthan V N wrote: On 1/30/2013 7:21 PM, Pantelis Antoniou wrote: Hi Vaibhav, On Jan 30, 2013, at 3:47 PM, Bedia, Vaibhav wrote: Hi Antoniou, On Wed, Jan 30, 2013 at 19:07:19

[PATCH 1/1] drivers: net: davinci_cpdma: acknowledge interrupt properly

2013-01-30 Thread Mugunthan V N
-consulting.com Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/davinci_cpdma.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/ti/davinci_cpdma.c b/drivers/net/ethernet/ti/davinci_cpdma.c index f862918..afe14a6 100644 --- a/drivers/net

Re: [PATCH 1/1] drivers: net: davinci_cpdma: acknowledge interrupt properly

2013-01-31 Thread Mugunthan V N
On 1/31/2013 1:33 AM, Koen Kooi wrote: Op 30 jan. 2013, om 20:56 heeft Mugunthan V N mugunthan...@ti.com het volgende geschreven: CPDMA interrupts are not properly acknowledged which leads to interrupt storm, only cpdma interrupt 0 is acknowledged in Davinci CPDMA driver. Changed

Re: [PATCH v2 1/2] drivers: net: cpsw: Add helper functions for VLAN ALE implementation

2013-01-31 Thread Mugunthan V N
On 1/31/2013 3:32 AM, Francois Romieu wrote: Mugunthan V N mugunthan...@ti.com : [...] diff --git a/drivers/net/ethernet/ti/cpsw_ale.c b/drivers/net/ethernet/ti/cpsw_ale.c index 0e9ccc2..18b88ce 100644 --- a/drivers/net/ethernet/ti/cpsw_ale.c +++ b/drivers/net/ethernet/ti/cpsw_ale.c

Re: [PATCH v2 2/2] drivers: net:ethernet: cpsw: add support for VLAN

2013-01-31 Thread Mugunthan V N
On 1/31/2013 3:32 AM, Francois Romieu wrote: Mugunthan V N mugunthan...@ti.com : [...] diff --git a/Documentation/devicetree/bindings/net/cpsw.txt b/Documentation/devicetree/bindings/net/cpsw.txt index 6ddd028..99696bf 100644 --- a/Documentation/devicetree/bindings/net/cpsw.txt +++ b

Re: [PATCH 1/1] drivers: net: davinci_cpdma: acknowledge interrupt properly

2013-01-31 Thread Mugunthan V N
Pantelis On 1/31/2013 4:52 PM, Pantelis Antoniou wrote: Hi On Jan 31, 2013, at 12:17 PM, Mugunthan V N wrote: On 1/31/2013 1:33 AM, Koen Kooi wrote: Op 30 jan. 2013, om 20:56 heeft Mugunthan V N mugunthan...@ti.com het volgende geschreven: CPDMA interrupts are not properly acknowledged

[PATCH v3 0/2] Add CPSW VLAN Support

2013-01-31 Thread Mugunthan V N
cpsw_add_default_vlan for better readability * changed BIT(1) port representation to defines Mugunthan V N (2): drivers: net: cpsw: Add helper functions for VLAN ALE implementation drivers: net:ethernet: cpsw: add support for VLAN Documentation/devicetree/bindings/net/cpsw.txt |2 + drivers/net/ethernet/ti

[PATCH v3 2/2] drivers: net:ethernet: cpsw: add support for VLAN

2013-01-31 Thread Mugunthan V N
adding support for VLAN interface for cpsw. CPSW VLAN Capability * Can filter VLAN packets in Hardware Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Documentation/devicetree/bindings/net/cpsw.txt |2 + drivers/net/ethernet/ti/cpsw.c | 85

[PATCH v3 1/2] drivers: net: cpsw: Add helper functions for VLAN ALE implementation

2013-01-31 Thread Mugunthan V N
Add helper functions for VLAN ALE implementations for Add, Delete Dump VLAN related ALE entries Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw.c |8 +-- drivers/net/ethernet/ti/cpsw_ale.c | 105 +++- drivers/net/ethernet

[PATCH v4 0/2] Add CPSW VLAN Support

2013-02-05 Thread Mugunthan V N
cpsw_add_default_vlan for better readability * changed BIT(1) port representation to defines Changes from V3 * Dropped default VLAN id passing from DT, will find a way to pass it through ethtool or similar interface and submit the patch. Mugunthan V N (2): drivers: net: cpsw: Add helper functions for VLAN ALE

[PATCH v4 2/2] drivers: net:ethernet: cpsw: add support for VLAN

2013-02-05 Thread Mugunthan V N
adding support for VLAN interface for cpsw. CPSW VLAN Capability * Can filter VLAN packets in Hardware Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw.c | 106 +++- drivers/net/ethernet/ti/cpsw_ale.h |4 ++ include/linux

[PATCH v4 1/2] drivers: net: cpsw: Add helper functions for VLAN ALE implementation

2013-02-05 Thread Mugunthan V N
Add helper functions for VLAN ALE implementations for Add, Delete Dump VLAN related ALE entries Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw.c |8 +-- drivers/net/ethernet/ti/cpsw_ale.c | 107 drivers/net/ethernet

[PATCH 0/3] Dual EMAC mode implementation of CPSW

2013-02-11 Thread Mugunthan V N
This patch series implements Dual EMAC mode implementation of CPSW which acts as two standalone EMAC by segregating the switch using VIDs and port VLAN Mugunthan V N (3): driver: net: ethernet: davinci_cpdma: add support for directed packet and source port detection driver: net: ethernet

[PATCH 2/3] driver: net: ethernet: cpsw: make cpts as pointer

2013-02-11 Thread Mugunthan V N
As CPTS is common module for both EMAC in Dual EMAC mode so making cpts as pointer. Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw.c | 36 +--- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/drivers/net

[PATCH 3/3] driver: net: ethernet: cpsw: dual emac interface implementation

2013-02-11 Thread Mugunthan V N
of One port should not be used in other interface which will enable switching functionality * Same VID must not be used in both the interface which will enable switching functionality Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Documentation/devicetree/bindings/net/cpsw.txt |2

[PATCH 1/3] driver: net: ethernet: davinci_cpdma: add support for directed packet and source port detection

2013-02-11 Thread Mugunthan V N
* Introduced parameter to add port number for directed packet in cpdma_chan_submit * Source port detection macro with DMA descriptor status Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw.c |6 +++--- drivers/net/ethernet/ti/davinci_cpdma.c | 17

[PATCH 1/1] ARM: dts: AM33XX: Add CPSW phy_id device tree data to am335x-evmsk

2013-02-14 Thread Mugunthan V N
Add phy_id device tree data to am335x-evmsk device to bring up CPSW ethernet present on am335x starter kit. Signed-off-by: Mugunthan V N mugunthan...@ti.com --- arch/arm/boot/dts/am335x-evmsk.dts |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b

[PATCH v2 1/1] drivers: net: davinci_cpdma: acknowledge interrupt properly

2013-02-14 Thread Mugunthan V N
-consulting.com Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Changes from Initial Version: * Changed Tx and Rx EOI seperated so that Tx interrupt will not be cleared without processing any txpackets so that none of the interrupt are missed or cleared without processing. drivers/net/ethernet

Re: [PATCH v2 1/1] drivers: net: davinci_cpdma: acknowledge interrupt properly

2013-02-17 Thread Mugunthan V N
On 2/16/2013 1:35 AM, David Miller wrote: From: Mugunthan V N mugunthan...@ti.com Date: Thu, 14 Feb 2013 23:56:46 +0530 +enum { + CPDMA_EOI_RX_THRESH = 0, + CPDMA_EOI_RX, + CPDMA_EOI_TX, + CPDMA_EOI_MISC, +}; Do not use enumerations for hardware register values, which

Re: [PATCH v2 1/1] drivers: net: davinci_cpdma: acknowledge interrupt properly

2013-02-17 Thread Mugunthan V N
On 2/16/2013 1:35 AM, David Miller wrote: Also please indicate, clearly, what tree your patch is targetted at. Sorry for not mentioning the tree, will mention in the future patches. Regards Mugunthan V N -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body

[PATCH v3 net-next 1/1] drivers: net: davinci_cpdma: acknowledge interrupt properly

2013-02-18 Thread Mugunthan V N
-consulting.com Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Changes from v2: * Changed the hardware register values from enumeration to defines drivers/net/ethernet/ti/cpsw.c | 25 - drivers/net/ethernet/ti/davinci_cpdma.c |4 ++-- drivers/net/ethernet/ti

Re: [PATCH 3/3] driver: net: ethernet: cpsw: dual emac interface implementation

2013-02-18 Thread Mugunthan V N
On 2/18/2013 7:06 PM, Peter Korsgaard wrote: M == Mugunthan V N mugunthan...@ti.com writes: M The CPSW switch can act as Dual EMAC by segregating the switch ports M using VLAN and port VLAN as per the TRM description in M 14.3.2.10.2 Dual Mac Mode M Following CPSW components

[PATCH 3/3] driver: net: ethernet: cpsw: implement interrupt pacing via ethtool

2013-03-07 Thread Mugunthan V N
This patch implements support for interrupt pacing block of CPSW via ethtool Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw.c | 95 1 file changed, 95 insertions(+) diff --git a/drivers/net/ethernet/ti/cpsw.c b

[PATCH 0/3] cpsw interrupt pacing and get/set phy setting implementation

2013-03-07 Thread Mugunthan V N
This patch serires implements the following features in CPSW driver * get/set phy link settings * interrupt pacing Mugunthan V N (3): driver: net: ethernet: cpsw: implement ethtool get/set phy setting arm: dts: am33xx: add default ethtool slave to cpsw node driver: net: ethernet: cpsw

[PATCH 2/3] arm: dts: am33xx: add default ethtool slave to cpsw node

2013-03-07 Thread Mugunthan V N
Signed-off-by: Mugunthan V N mugunthan...@ti.com --- arch/arm/boot/dts/am33xx.dtsi |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 0957645..f8c83a1 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts

[PATCH 1/3] driver: net: ethernet: cpsw: implement ethtool get/set phy setting

2013-03-07 Thread Mugunthan V N
This patch implements get/set of the phy settings via ethtool apis Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Documentation/devicetree/bindings/net/cpsw.txt |3 +++ drivers/net/ethernet/ti/cpsw.c | 32 include/linux/platform_data/cpsw.h

Re: [PATCH 1/3] driver: net: ethernet: cpsw: implement ethtool get/set phy setting

2013-03-07 Thread Mugunthan V N
On 3/7/2013 6:54 PM, Peter Korsgaard wrote: M == Mugunthan V N mugunthan...@ti.com writes: M This patch implements get/set of the phy settings via ethtool apis M Signed-off-by: Mugunthan V N mugunthan...@ti.com M --- M Documentation/devicetree/bindings/net/cpsw.txt |3 +++ M

Re: [PATCH 2/3] arm: dts: am33xx: add default ethtool slave to cpsw node

2013-03-07 Thread Mugunthan V N
On 3/7/2013 9:43 PM, Tony Lindgren wrote: * Mugunthan V N mugunthan...@ti.com [130307 04:35]: Can you please add a description and send this separately so Benoit can queue it. Will send this patch separately after this patch series has been reviewed and accepted by netdev maintainer

Re: [PATCH 1/3] driver: net: ethernet: cpsw: implement ethtool get/set phy setting

2013-03-07 Thread Mugunthan V N
On 3/8/2013 1:29 AM, Ben Hutchings wrote: On Thu, 2013-03-07 at 14:24 +0100, Peter Korsgaard wrote: M == Mugunthan V N mugunthan...@ti.com writes: M This patch implements get/set of the phy settings via ethtool apis M Signed-off-by: Mugunthan V N mugunthan...@ti.com M --- M

Re: [PATCH 1/3] driver: net: ethernet: cpsw: implement ethtool get/set phy setting

2013-03-08 Thread Mugunthan V N
On 3/8/2013 8:23 PM, Ben Hutchings wrote: On Fri, 2013-03-08 at 12:53 +0530, Mugunthan V N wrote: On 3/8/2013 1:29 AM, Ben Hutchings wrote: On Thu, 2013-03-07 at 14:24 +0100, Peter Korsgaard wrote: M == Mugunthan V N mugunthan...@ti.com writes: M This patch implements get/set of the phy

Re: [PATCH 1/3] driver: net: ethernet: cpsw: implement ethtool get/set phy setting

2013-03-08 Thread Mugunthan V N
their own net device (as with DSA). Indeed, I think that would simplify all of this quite a bit. I will update this in the next patch series Regards Mugunthan V N -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo

[PATCH v2 4/5] driver: net: ethernet: cpsw: implement interrupt pacing via ethtool

2013-03-12 Thread Mugunthan V N
This patch implements support for interrupt pacing block of CPSW via ethtool Inetrrupt pacing block is common of both the ethernet interface in dual emac mode Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw.c | 104 1

[PATCH v2 5/5] drivers: net: ethernet: cpsw: implement get phy_id via ioctl

2013-03-12 Thread Mugunthan V N
Implement get phy_id via ioctl SIOCGMIIPHY. In switch mode active phy_id is returned and in dual EMAC mode slave's specific phy_id is returned. Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw.c | 16 ++-- 1 file changed, 14 insertions(+), 2

[PATCH v2 1/5] documentation: dt: bindings: cpsw: cleanup documentation

2013-03-12 Thread Mugunthan V N
Move all the slave note properties to separate section to reduce the confusion between slave note properties and cpsw node properties Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Documentation/devicetree/bindings/net/cpsw.txt |9 +++-- 1 file changed, 7 insertions(+), 2 deletions

[PATCH v2 3/5] driver: net: ethernet: cpsw: implement ethtool get/set phy setting

2013-03-12 Thread Mugunthan V N
This patch implements get/set of the phy settings via ethtool apis Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/cpsw.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti

[PATCH v2 0/5] cpsw interrupt pacing and get/set phy setting implementation

2013-03-12 Thread Mugunthan V N
by seperating slave nodes under sub-section * implemented get phy id via ioctl cmd SIOCGMIIPHY Mugunthan V N (5): documentation: dt: bindings: cpsw: cleanup documentation drivers: net: ethernet: cpsw: change cpts_active_slave to active_slave driver: net: ethernet: cpsw: implement ethtool get

[PATCH v2 2/5] drivers: net: ethernet: cpsw: change cpts_active_slave to active_slave

2013-03-12 Thread Mugunthan V N
Change cpts_active_slave to active_slave so that the same DT property can be used to ethtool and SIOCGMIIPHY. CC: Richard Cochran richardcoch...@gmail.com Signed-off-by: Mugunthan V N mugunthan...@ti.com --- Documentation/devicetree/bindings/net/cpsw.txt |7 --- arch/arm/boot/dts

Re: [PATCH v3 net-next 1/1] drivers: net: davinci_cpdma: acknowledge interrupt properly

2013-03-14 Thread Mugunthan V N
On 3/13/2013 3:04 PM, Mark Jackson wrote: On 18/02/13 08:19, Mugunthan V N wrote: CPDMA interrupts are not properly acknowledged which leads to interrupt storm, only cpdma interrupt 0 is acknowledged in Davinci CPDMA driver. Changed cpdma_ctlr_eoi api to acknowledge 1 and 2 interrupts which

[net PATCH 1/1] drivers: net: ethernet: ti: davinci_emac: fix usage of cpdma_check_free_tx_desc()

2013-03-15 Thread Mugunthan V N
slots. However, cpdma_check_free_tx_desc() returns 'true' if there is room in the bitmap, not 'false', so the usage of the function is wrong. Reported-by: Prabhakar Lad prabhakar.cse...@gmail.com Signed-off-by: Mugunthan V N mugunthan...@ti.com --- drivers/net/ethernet/ti/davinci_emac.c

[RESEND PATCH 1/1] ARM: dts: AM33XX: Add CPSW phy_id device tree data to am335x-evmsk

2013-03-20 Thread Mugunthan V N
Add phy_id device tree data to am335x-evmsk device to bring up CPSW ethernet present on am335x starter kit. Signed-off-by: Mugunthan V N mugunthan...@ti.com --- arch/arm/boot/dts/am335x-evmsk.dts |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b

  1   2   3   4   >