diff mbox

[2/2] net: sh_eth: fix the parameter for the ETHER of SH7757

Message ID 4E1401D5.60506@renesas.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Yoshihiro Shimoda July 6, 2011, 6:33 a.m. UTC
If the driver didn't set this parameter on the ETHER, the CPU will
encounter the "data address error" exception.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 drivers/net/sh_eth.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

David Miller July 6, 2011, 6:43 a.m. UTC | #1
From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Date: Wed, 06 Jul 2011 15:33:57 +0900

> If the driver didn't set this parameter on the ETHER, the CPU will
> encounter the "data address error" exception.
> 
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index c08d9e1..93b347a 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -139,6 +139,8 @@  static struct sh_eth_cpu_data sh_eth_my_cpu_data = {
 	.tpauser	= 1,
 	.hw_swap	= 1,
 	.no_ade		= 1,
+	.rpadir		= 1,
+	.rpadir_value   = 2 << 16,
 };

 #define SH_GIGA_ETH_BASE	0xfee00000