aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-10-11 12:33:18 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-11 12:33:18 -0400
commit4dd9ec4946b4651a295d3bc8df9c15ac692a8f4e (patch)
treeafb300c752de7175bb2df4722d5c857e070c75d9 /drivers/s390/net
parent86ed5a93b8b56e4e0877b914af0e10883a196384 (diff)
parent6861ff35ec5b60fafaf8651754c9a75142bfa9a4 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1075 commits) myri10ge: update driver version number to 1.4.3-1.369 r8169: add shutdown handler r8169: preliminary 8168d support r8169: support additional 8168cp chipset r8169: change default behavior for mildly identified 8168c chipsets r8169: add a new 8168cp flavor r8169: add a new 8168c flavor (bis) r8169: add a new 8168c flavor r8169: sync existing 8168 device hardware start sequences with vendor driver r8169: 8168b Tx performance tweak r8169: make room for more specific 8168 hardware start procedure r8169: shuffle some registers handling around (8168 operation only) r8169: new phy init parameters for the 8168b r8169: update phy init parameters r8169: wake up the PHY of the 8168 af_key: fix SADB_X_SPDDELETE response ath9k: Fix return code when ath9k_hw_setpower() fails on reset ath9k: remove nasty FAIL macro from ath9k_hw_reset() gre: minor cleanups in netlink interface gre: fix copy and paste error ...
Diffstat (limited to 'drivers/s390/net')
-rw-r--r--drivers/s390/net/qeth_core_main.c4
-rw-r--r--drivers/s390/net/qeth_l2_main.c14
-rw-r--r--drivers/s390/net/qeth_l3_main.c8
3 files changed, 17 insertions, 9 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index 141b2bb7b3cf..7de410d5be4a 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -760,7 +760,7 @@ static int qeth_get_problem(struct ccw_device *cdev, struct irb *irb)
760 if (sense[SENSE_COMMAND_REJECT_BYTE] & 760 if (sense[SENSE_COMMAND_REJECT_BYTE] &
761 SENSE_COMMAND_REJECT_FLAG) { 761 SENSE_COMMAND_REJECT_FLAG) {
762 QETH_DBF_TEXT(TRACE, 2, "CMDREJi"); 762 QETH_DBF_TEXT(TRACE, 2, "CMDREJi");
763 return 0; 763 return 1;
764 } 764 }
765 if ((sense[2] == 0xaf) && (sense[3] == 0xfe)) { 765 if ((sense[2] == 0xaf) && (sense[3] == 0xfe)) {
766 QETH_DBF_TEXT(TRACE, 2, "AFFE"); 766 QETH_DBF_TEXT(TRACE, 2, "AFFE");
@@ -884,6 +884,7 @@ static void qeth_irq(struct ccw_device *cdev, unsigned long intparm,
884 } 884 }
885 rc = qeth_get_problem(cdev, irb); 885 rc = qeth_get_problem(cdev, irb);
886 if (rc) { 886 if (rc) {
887 qeth_clear_ipacmd_list(card);
887 qeth_schedule_recovery(card); 888 qeth_schedule_recovery(card);
888 goto out; 889 goto out;
889 } 890 }
@@ -4147,6 +4148,7 @@ static void qeth_core_remove_device(struct ccwgroup_device *gdev)
4147 unsigned long flags; 4148 unsigned long flags;
4148 struct qeth_card *card = dev_get_drvdata(&gdev->dev); 4149 struct qeth_card *card = dev_get_drvdata(&gdev->dev);
4149 4150
4151 QETH_DBF_TEXT(SETUP, 2, "removedv");
4150 if (card->discipline.ccwgdriver) { 4152 if (card->discipline.ccwgdriver) {
4151 card->discipline.ccwgdriver->remove(gdev); 4153 card->discipline.ccwgdriver->remove(gdev);
4152 qeth_core_free_discipline(card); 4154 qeth_core_free_discipline(card);
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c
index 3ac3cc1e03cc..955ba7a31b90 100644
--- a/drivers/s390/net/qeth_l2_main.c
+++ b/drivers/s390/net/qeth_l2_main.c
@@ -395,7 +395,8 @@ static int qeth_l2_stop_card(struct qeth_card *card, int recovery_mode)
395 } 395 }
396 if (card->state == CARD_STATE_SOFTSETUP) { 396 if (card->state == CARD_STATE_SOFTSETUP) {
397 qeth_l2_process_vlans(card, 1); 397 qeth_l2_process_vlans(card, 1);
398 qeth_l2_del_all_mc(card); 398 if (!card->use_hard_stop)
399 qeth_l2_del_all_mc(card);
399 qeth_clear_ipacmd_list(card); 400 qeth_clear_ipacmd_list(card);
400 card->state = CARD_STATE_HARDSETUP; 401 card->state = CARD_STATE_HARDSETUP;
401 } 402 }
@@ -559,7 +560,8 @@ static int qeth_l2_request_initial_mac(struct qeth_card *card)
559 "device %s: x%x\n", CARD_BUS_ID(card), rc); 560 "device %s: x%x\n", CARD_BUS_ID(card), rc);
560 } 561 }
561 562
562 if (card->info.guestlan) { 563 if ((card->info.type == QETH_CARD_TYPE_IQD) ||
564 (card->info.guestlan)) {
563 rc = qeth_setadpparms_change_macaddr(card); 565 rc = qeth_setadpparms_change_macaddr(card);
564 if (rc) { 566 if (rc) {
565 QETH_DBF_MESSAGE(2, "couldn't get MAC address on " 567 QETH_DBF_MESSAGE(2, "couldn't get MAC address on "
@@ -825,7 +827,6 @@ static int qeth_l2_open(struct net_device *dev)
825 } 827 }
826 card->data.state = CH_STATE_UP; 828 card->data.state = CH_STATE_UP;
827 card->state = CARD_STATE_UP; 829 card->state = CARD_STATE_UP;
828 card->dev->flags |= IFF_UP;
829 netif_start_queue(dev); 830 netif_start_queue(dev);
830 831
831 if (!card->lan_online && netif_carrier_ok(dev)) 832 if (!card->lan_online && netif_carrier_ok(dev))
@@ -840,7 +841,6 @@ static int qeth_l2_stop(struct net_device *dev)
840 841
841 QETH_DBF_TEXT(TRACE, 4, "qethstop"); 842 QETH_DBF_TEXT(TRACE, 4, "qethstop");
842 netif_tx_disable(dev); 843 netif_tx_disable(dev);
843 card->dev->flags &= ~IFF_UP;
844 if (card->state == CARD_STATE_UP) 844 if (card->state == CARD_STATE_UP)
845 card->state = CARD_STATE_SOFTSETUP; 845 card->state = CARD_STATE_SOFTSETUP;
846 return 0; 846 return 0;
@@ -1137,9 +1137,13 @@ static int qeth_l2_recover(void *ptr)
1137 if (!rc) 1137 if (!rc)
1138 PRINT_INFO("Device %s successfully recovered!\n", 1138 PRINT_INFO("Device %s successfully recovered!\n",
1139 CARD_BUS_ID(card)); 1139 CARD_BUS_ID(card));
1140 else 1140 else {
1141 rtnl_lock();
1142 dev_close(card->dev);
1143 rtnl_unlock();
1141 PRINT_INFO("Device %s could not be recovered!\n", 1144 PRINT_INFO("Device %s could not be recovered!\n",
1142 CARD_BUS_ID(card)); 1145 CARD_BUS_ID(card));
1146 }
1143 return 0; 1147 return 0;
1144} 1148}
1145 1149
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c
index dd72c3c20165..99547dea44de 100644
--- a/drivers/s390/net/qeth_l3_main.c
+++ b/drivers/s390/net/qeth_l3_main.c
@@ -2795,7 +2795,6 @@ static int qeth_l3_open(struct net_device *dev)
2795 return -ENODEV; 2795 return -ENODEV;
2796 card->data.state = CH_STATE_UP; 2796 card->data.state = CH_STATE_UP;
2797 card->state = CARD_STATE_UP; 2797 card->state = CARD_STATE_UP;
2798 card->dev->flags |= IFF_UP;
2799 netif_start_queue(dev); 2798 netif_start_queue(dev);
2800 2799
2801 if (!card->lan_online && netif_carrier_ok(dev)) 2800 if (!card->lan_online && netif_carrier_ok(dev))
@@ -2809,7 +2808,6 @@ static int qeth_l3_stop(struct net_device *dev)
2809 2808
2810 QETH_DBF_TEXT(TRACE, 4, "qethstop"); 2809 QETH_DBF_TEXT(TRACE, 4, "qethstop");
2811 netif_tx_disable(dev); 2810 netif_tx_disable(dev);
2812 card->dev->flags &= ~IFF_UP;
2813 if (card->state == CARD_STATE_UP) 2811 if (card->state == CARD_STATE_UP)
2814 card->state = CARD_STATE_SOFTSETUP; 2812 card->state = CARD_STATE_SOFTSETUP;
2815 return 0; 2813 return 0;
@@ -3218,9 +3216,13 @@ static int qeth_l3_recover(void *ptr)
3218 if (!rc) 3216 if (!rc)
3219 PRINT_INFO("Device %s successfully recovered!\n", 3217 PRINT_INFO("Device %s successfully recovered!\n",
3220 CARD_BUS_ID(card)); 3218 CARD_BUS_ID(card));
3221 else 3219 else {
3220 rtnl_lock();
3221 dev_close(card->dev);
3222 rtnl_unlock();
3222 PRINT_INFO("Device %s could not be recovered!\n", 3223 PRINT_INFO("Device %s could not be recovered!\n",
3223 CARD_BUS_ID(card)); 3224 CARD_BUS_ID(card));
3225 }
3224 return 0; 3226 return 0;
3225} 3227}
3226 3228