diff options
author | Simon Horman <horms+renesas@verge.net.au> | 2013-10-10 01:51:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-11 14:57:22 -0400 |
commit | cc23528db0300d5c8c0b98670a577bf1dc3e0e82 (patch) | |
tree | d5dd8fecd7d0940f766de502edb7b1f854edb4e7 /drivers/net/ethernet/renesas | |
parent | 7263a5187f9e9de45fcb51349cf0e031142c19a1 (diff) |
net: sh_eth: Correct fix for RX packet errors on R8A7740
Nguyen Hong Ky posted a patch to correct RX packet errors on R8A7740 which
was applied as 2c6221e4a5aab417 ("net: sh_eth: Fix RX packets errors on
R8A7740"). Unfortunately sh_eth.c contains many similar instances
of struct sh_eth_cpu_data and the patch was miss-applied, updating
sh7734_data instead of r8a7740_data.
This patch corrects this problem by.
1. Reverting the change to sh7734_data and;
2. Applying the change to r8a7740_data.
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index c7e1b8f333ed..b57c278d3b46 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c | |||
@@ -620,16 +620,12 @@ static struct sh_eth_cpu_data sh7734_data = { | |||
620 | .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | | 620 | .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | |
621 | EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE | | 621 | EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE | |
622 | EESR_TDE | EESR_ECI, | 622 | EESR_TDE | EESR_ECI, |
623 | .fdr_value = 0x0000070f, | ||
624 | .rmcr_value = 0x00000001, | ||
625 | 623 | ||
626 | .apr = 1, | 624 | .apr = 1, |
627 | .mpr = 1, | 625 | .mpr = 1, |
628 | .tpauser = 1, | 626 | .tpauser = 1, |
629 | .bculr = 1, | 627 | .bculr = 1, |
630 | .hw_swap = 1, | 628 | .hw_swap = 1, |
631 | .rpadir = 1, | ||
632 | .rpadir_value = 2 << 16, | ||
633 | .no_trimd = 1, | 629 | .no_trimd = 1, |
634 | .no_ade = 1, | 630 | .no_ade = 1, |
635 | .tsu = 1, | 631 | .tsu = 1, |
@@ -692,12 +688,16 @@ static struct sh_eth_cpu_data r8a7740_data = { | |||
692 | .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | | 688 | .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | |
693 | EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE | | 689 | EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE | |
694 | EESR_TDE | EESR_ECI, | 690 | EESR_TDE | EESR_ECI, |
691 | .fdr_value = 0x0000070f, | ||
692 | .rmcr_value = 0x00000001, | ||
695 | 693 | ||
696 | .apr = 1, | 694 | .apr = 1, |
697 | .mpr = 1, | 695 | .mpr = 1, |
698 | .tpauser = 1, | 696 | .tpauser = 1, |
699 | .bculr = 1, | 697 | .bculr = 1, |
700 | .hw_swap = 1, | 698 | .hw_swap = 1, |
699 | .rpadir = 1, | ||
700 | .rpadir_value = 2 << 16, | ||
701 | .no_trimd = 1, | 701 | .no_trimd = 1, |
702 | .no_ade = 1, | 702 | .no_ade = 1, |
703 | .tsu = 1, | 703 | .tsu = 1, |