aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/renesas
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2013-07-03 17:50:41 -0400
committerDavid S. Miller <davem@davemloft.net>2013-07-03 17:55:13 -0400
commit0c1072ae0242fbdffd9a0bba36e7a7033d287f9c (patch)
treee0f4dbdbf5078d4a707911177e7bdc17a70bdce5 /drivers/net/ethernet/renesas
parentc50cd357887acf9fd7af3a5d492911bd825555a2 (diff)
parent8bb495e3f02401ee6f76d1b1d77f3ac9f079e376 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/freescale/fec_main.c drivers/net/ethernet/renesas/sh_eth.c net/ipv4/gre.c The GRE conflict is between a bug fix (kfree_skb --> kfree_skb_list) and the splitting of the gre.c code into seperate files. The FEC conflict was two sets of changes adding ethtool support code in an "!CONFIG_M5272" CPP protected block. Finally the sh_eth.c conflict was between one commit add bits set in the .eesr_err_check mask whilst another commit removed the .tx_error_check member and assignments. 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.c38
-rw-r--r--drivers/net/ethernet/renesas/sh_eth.h2
2 files changed, 22 insertions, 18 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c
index 7732f11f14ad..a753928bab9c 100644
--- a/drivers/net/ethernet/renesas/sh_eth.c
+++ b/drivers/net/ethernet/renesas/sh_eth.c
@@ -382,8 +382,9 @@ static struct sh_eth_cpu_data r8a777x_data = {
382 .eesipr_value = 0x01ff009f, 382 .eesipr_value = 0x01ff009f,
383 383
384 .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO, 384 .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO,
385 .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RDE | 385 .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RFE |
386 EESR_RFRMER | EESR_TFE | EESR_TDE | EESR_ECI, 386 EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE |
387 EESR_ECI,
387 388
388 .apr = 1, 389 .apr = 1,
389 .mpr = 1, 390 .mpr = 1,
@@ -417,8 +418,9 @@ static struct sh_eth_cpu_data sh7724_data = {
417 .eesipr_value = 0x01ff009f, 418 .eesipr_value = 0x01ff009f,
418 419
419 .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO, 420 .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO,
420 .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RDE | 421 .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RFE |
421 EESR_RFRMER | EESR_TFE | EESR_TDE | EESR_ECI, 422 EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE |
423 EESR_ECI,
422 424
423 .apr = 1, 425 .apr = 1,
424 .mpr = 1, 426 .mpr = 1,
@@ -453,8 +455,9 @@ static struct sh_eth_cpu_data sh7757_data = {
453 .rmcr_value = 0x00000001, 455 .rmcr_value = 0x00000001,
454 456
455 .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO, 457 .tx_check = EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | EESR_RTO,
456 .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RDE | 458 .eesr_err_check = EESR_TWB | EESR_TABT | EESR_RABT | EESR_RFE |
457 EESR_RFRMER | EESR_TFE | EESR_TDE | EESR_ECI, 459 EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE |
460 EESR_ECI,
458 461
459 .irq_flags = IRQF_SHARED, 462 .irq_flags = IRQF_SHARED,
460 .apr = 1, 463 .apr = 1,
@@ -521,9 +524,9 @@ static struct sh_eth_cpu_data sh7757_data_giga = {
521 .eesipr_value = DMAC_M_RFRMER | DMAC_M_ECI | 0x003fffff, 524 .eesipr_value = DMAC_M_RFRMER | DMAC_M_ECI | 0x003fffff,
522 525
523 .tx_check = EESR_TC1 | EESR_FTC, 526 .tx_check = EESR_TC1 | EESR_FTC,
524 .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | \ 527 .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT |
525 EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE | \ 528 EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE |
526 EESR_ECI, 529 EESR_TDE | EESR_ECI,
527 .fdr_value = 0x0000072f, 530 .fdr_value = 0x0000072f,
528 .rmcr_value = 0x00000001, 531 .rmcr_value = 0x00000001,
529 532
@@ -579,9 +582,9 @@ static struct sh_eth_cpu_data sh7734_data = {
579 .eesipr_value = DMAC_M_RFRMER | DMAC_M_ECI | 0x003fffff, 582 .eesipr_value = DMAC_M_RFRMER | DMAC_M_ECI | 0x003fffff,
580 583
581 .tx_check = EESR_TC1 | EESR_FTC, 584 .tx_check = EESR_TC1 | EESR_FTC,
582 .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | \ 585 .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT |
583 EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE | \ 586 EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE |
584 EESR_ECI, 587 EESR_TDE | EESR_ECI,
585 588
586 .apr = 1, 589 .apr = 1,
587 .mpr = 1, 590 .mpr = 1,
@@ -643,9 +646,9 @@ static struct sh_eth_cpu_data r8a7740_data = {
643 .eesipr_value = DMAC_M_RFRMER | DMAC_M_ECI | 0x003fffff, 646 .eesipr_value = DMAC_M_RFRMER | DMAC_M_ECI | 0x003fffff,
644 647
645 .tx_check = EESR_TC1 | EESR_FTC, 648 .tx_check = EESR_TC1 | EESR_FTC,
646 .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT | \ 649 .eesr_err_check = EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT |
647 EESR_RDE | EESR_RFRMER | EESR_TFE | EESR_TDE | \ 650 EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE |
648 EESR_ECI, 651 EESR_TDE | EESR_ECI,
649 652
650 .apr = 1, 653 .apr = 1,
651 .mpr = 1, 654 .mpr = 1,
@@ -1401,11 +1404,12 @@ static void sh_eth_error(struct net_device *ndev, int intr_status)
1401 1404
1402ignore_link: 1405ignore_link:
1403 if (intr_status & EESR_TWB) { 1406 if (intr_status & EESR_TWB) {
1404 /* Write buck end. unused write back interrupt */ 1407 /* Unused write back interrupt */
1405 if (intr_status & EESR_TABT) /* Transmit Abort int */ 1408 if (intr_status & EESR_TABT) { /* Transmit Abort int */
1406 ndev->stats.tx_aborted_errors++; 1409 ndev->stats.tx_aborted_errors++;
1407 if (netif_msg_tx_err(mdp)) 1410 if (netif_msg_tx_err(mdp))
1408 dev_err(&ndev->dev, "Transmit Abort\n"); 1411 dev_err(&ndev->dev, "Transmit Abort\n");
1412 }
1409 } 1413 }
1410 1414
1411 if (intr_status & EESR_RABT) { 1415 if (intr_status & EESR_RABT) {
diff --git a/drivers/net/ethernet/renesas/sh_eth.h b/drivers/net/ethernet/renesas/sh_eth.h
index a78fb0c424f8..99995bf38c40 100644
--- a/drivers/net/ethernet/renesas/sh_eth.h
+++ b/drivers/net/ethernet/renesas/sh_eth.h
@@ -258,7 +258,7 @@ enum EESR_BIT {
258 258
259#define DEFAULT_TX_CHECK (EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | \ 259#define DEFAULT_TX_CHECK (EESR_FTC | EESR_CND | EESR_DLC | EESR_CD | \
260 EESR_RTO) 260 EESR_RTO)
261#define DEFAULT_EESR_ERR_CHECK (EESR_TWB | EESR_TABT | EESR_RABT | \ 261#define DEFAULT_EESR_ERR_CHECK (EESR_TWB | EESR_TABT | EESR_RABT | EESR_RFE | \
262 EESR_RDE | EESR_RFRMER | EESR_ADE | \ 262 EESR_RDE | EESR_RFRMER | EESR_ADE | \
263 EESR_TFE | EESR_TDE | EESR_ECI) 263 EESR_TFE | EESR_TDE | EESR_ECI)
264 264