* [PATCH net-next v2 0/2] sh_eth Updates
@ 2013-08-30 3:41 Simon Horman
2013-08-30 3:41 ` [PATCH net-next v2 1/2] sh_eth: Fix cache invalidation omission of receive buffer Simon Horman
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Simon Horman @ 2013-08-30 3:41 UTC (permalink / raw)
To: David S. Miller, netdev, linux-sh
Cc: Magnus Damm, Sergei Shtylyov, Kouei Abe, Simon Horman
Hi,
please consider the following updates to the sh_eth driver
by Abe-san. They were developed during his testing of the
driver on the r8a7790/lager board.
Changes between v1 and v2:
* Correct indentation used in
"sh_eth: Fix cache invalidation omission of receive buffer"
Kouei Abe (2):
sh_eth: Fix cache invalidation omission of receive buffer
sh_eth: Enable Rx descriptor word 0 shift for r8a7790
drivers/net/ethernet/renesas/sh_eth.c | 4 ++++
1 file changed, 4 insertions(+)
--
1.8.4.rc4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH net-next v2 1/2] sh_eth: Fix cache invalidation omission of receive buffer
2013-08-30 3:41 [PATCH net-next v2 0/2] sh_eth Updates Simon Horman
@ 2013-08-30 3:41 ` Simon Horman
2013-08-30 3:41 ` [PATCH net-next v2 2/2] sh_eth: Enable Rx descriptor word 0 shift for r8a7790 Simon Horman
2013-09-04 2:02 ` [PATCH net-next v2 0/2] sh_eth Updates David Miller
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2013-08-30 3:41 UTC (permalink / raw)
To: David S. Miller, netdev, linux-sh
Cc: Magnus Damm, Sergei Shtylyov, Kouei Abe, Simon Horman
From: Kouei Abe <kouei.abe.cp@renesas.com>
Signed-off-by: Kouei Abe <kouei.abe.cp@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
v2 [Simon Horman]
* Correct indentation
drivers/net/ethernet/renesas/sh_eth.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c
index 4b47300..3c0a24a 100644
--- a/drivers/net/ethernet/renesas/sh_eth.c
+++ b/drivers/net/ethernet/renesas/sh_eth.c
@@ -1342,6 +1342,9 @@ static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota)
mdp->rx_skbuff[entry] = NULL;
if (mdp->cd->rpadir)
skb_reserve(skb, NET_IP_ALIGN);
+ dma_sync_single_for_cpu(&ndev->dev, rxdesc->addr,
+ mdp->rx_buf_sz,
+ DMA_FROM_DEVICE);
skb_put(skb, pkt_len);
skb->protocol = eth_type_trans(skb, ndev);
netif_rx(skb);
--
1.8.4.rc4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH net-next v2 2/2] sh_eth: Enable Rx descriptor word 0 shift for r8a7790
2013-08-30 3:41 [PATCH net-next v2 0/2] sh_eth Updates Simon Horman
2013-08-30 3:41 ` [PATCH net-next v2 1/2] sh_eth: Fix cache invalidation omission of receive buffer Simon Horman
@ 2013-08-30 3:41 ` Simon Horman
2013-09-04 2:02 ` [PATCH net-next v2 0/2] sh_eth Updates David Miller
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2013-08-30 3:41 UTC (permalink / raw)
To: David S. Miller, netdev, linux-sh
Cc: Magnus Damm, Sergei Shtylyov, Kouei Abe, Simon Horman
From: Kouei Abe <kouei.abe.cp@renesas.com>
This corrects an oversight when r8a7790 support was added to sh_eth.
Signed-off-by: Kouei Abe <kouei.abe.cp@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
v2
* No change
drivers/net/ethernet/renesas/sh_eth.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c
index 3c0a24a..7aebbe0 100644
--- a/drivers/net/ethernet/renesas/sh_eth.c
+++ b/drivers/net/ethernet/renesas/sh_eth.c
@@ -416,6 +416,7 @@ static struct sh_eth_cpu_data r8a7790_data = {
.tpauser = 1,
.hw_swap = 1,
.rmiimode = 1,
+ .shift_rd0 = 1,
};
static void sh_eth_set_rate_sh7724(struct net_device *ndev)
--
1.8.4.rc4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next v2 0/2] sh_eth Updates
2013-08-30 3:41 [PATCH net-next v2 0/2] sh_eth Updates Simon Horman
2013-08-30 3:41 ` [PATCH net-next v2 1/2] sh_eth: Fix cache invalidation omission of receive buffer Simon Horman
2013-08-30 3:41 ` [PATCH net-next v2 2/2] sh_eth: Enable Rx descriptor word 0 shift for r8a7790 Simon Horman
@ 2013-09-04 2:02 ` David Miller
2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2013-09-04 2:02 UTC (permalink / raw)
To: horms+renesas
Cc: netdev, linux-sh, magnus.damm, sergei.shtylyov, kouei.abe.cp
From: Simon Horman <horms+renesas@verge.net.au>
Date: Fri, 30 Aug 2013 12:41:06 +0900
> please consider the following updates to the sh_eth driver
> by Abe-san. They were developed during his testing of the
> driver on the r8a7790/lager board.
>
> Changes between v1 and v2:
Both applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-09-04 2:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-30 3:41 [PATCH net-next v2 0/2] sh_eth Updates Simon Horman
2013-08-30 3:41 ` [PATCH net-next v2 1/2] sh_eth: Fix cache invalidation omission of receive buffer Simon Horman
2013-08-30 3:41 ` [PATCH net-next v2 2/2] sh_eth: Enable Rx descriptor word 0 shift for r8a7790 Simon Horman
2013-09-04 2:02 ` [PATCH net-next v2 0/2] sh_eth Updates 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).