netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ll_temac: Add support for V2 LLTEMAC core
@ 2010-02-17 17:14 Steven J. Magnani
  2010-02-17 21:42 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Steven J. Magnani @ 2010-02-17 17:14 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel, Steven J. Magnani

LLTEMAC V1 cores place only received packet length in the app4 word.
V2 cores place additional information in app4.
Mask out the additional information when retrieving the packet length.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
---
diff -uprN a/drivers/net/ll_temac_main.c b/drivers/net/ll_temac_main.c
--- a/drivers/net/ll_temac_main.c	2010-02-17 10:38:35.000000000 -0600
+++ b/drivers/net/ll_temac_main.c	2010-02-17 10:57:01.000000000 -0600
@@ -615,7 +615,7 @@ static void ll_temac_recv(struct net_dev
 	while ((bdstat & STS_CTRL_APP0_CMPLT)) {
 
 		skb = lp->rx_skb[lp->rx_bd_ci];
-		length = cur_p->app4;
+		length = cur_p->app4 & 0x3FFF;
 
 		skb_vaddr = virt_to_bus(skb->data);
 		dma_unmap_single(ndev->dev.parent, skb_vaddr, length,
@@ -938,6 +938,9 @@ static int __devexit temac_of_remove(str
 
 static struct of_device_id temac_of_match[] __devinitdata = {
 	{ .compatible = "xlnx,xps-ll-temac-1.01.b", },
+	{ .compatible = "xlnx,xps-ll-temac-2.00.a", },
+	{ .compatible = "xlnx,xps-ll-temac-2.02.a", },
+	{ .compatible = "xlnx,xps-ll-temac-2.03.a", },
 	{},
 };
 MODULE_DEVICE_TABLE(of, temac_of_match);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ll_temac: Add support for V2 LLTEMAC core
  2010-02-17 17:14 [PATCH] ll_temac: Add support for V2 LLTEMAC core Steven J. Magnani
@ 2010-02-17 21:42 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-02-17 21:42 UTC (permalink / raw)
  To: steve; +Cc: netdev, linux-kernel

From: "Steven J. Magnani" <steve@digidescorp.com>
Date: Wed, 17 Feb 2010 11:14:20 -0600

> LLTEMAC V1 cores place only received packet length in the app4 word.
> V2 cores place additional information in app4.
> Mask out the additional information when retrieving the packet length.
> 
> Signed-off-by: Steven J. Magnani <steve@digidescorp.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-17 21:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-17 17:14 [PATCH] ll_temac: Add support for V2 LLTEMAC core Steven J. Magnani
2010-02-17 21:42 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).