Commit 08e95cae authored by Julian Wiedmann's avatar Julian Wiedmann Committed by David S. Miller

s390/qeth: only init the isolation mode when necessary

A newly initialized device defaults to ISOLATION_MODE_NONE, don't bother
with programming this a second time.

Then remove the OSD/OSX check, it's already done in the sysfs path
whenever the user actually changes the configuration.
Signed-off-by: default avatarJulian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dbdd04d3
...@@ -4663,8 +4663,7 @@ int qeth_set_access_ctrl_online(struct qeth_card *card, int fallback) ...@@ -4663,8 +4663,7 @@ int qeth_set_access_ctrl_online(struct qeth_card *card, int fallback)
QETH_CARD_TEXT(card, 4, "setactlo"); QETH_CARD_TEXT(card, 4, "setactlo");
if ((IS_OSD(card) || IS_OSX(card)) && if (qeth_adp_supported(card, IPA_SETADP_SET_ACCESS_CONTROL)) {
qeth_adp_supported(card, IPA_SETADP_SET_ACCESS_CONTROL)) {
rc = qeth_setadpparms_set_access_ctrl(card, rc = qeth_setadpparms_set_access_ctrl(card,
card->options.isolation, fallback); card->options.isolation, fallback);
if (rc) { if (rc) {
...@@ -5347,9 +5346,11 @@ int qeth_core_hardsetup_card(struct qeth_card *card, bool *carrier_ok) ...@@ -5347,9 +5346,11 @@ int qeth_core_hardsetup_card(struct qeth_card *card, bool *carrier_ok)
(card->info.hwtrap && qeth_hw_trap(card, QETH_DIAGS_TRAP_ARM))) (card->info.hwtrap && qeth_hw_trap(card, QETH_DIAGS_TRAP_ARM)))
card->info.hwtrap = 0; card->info.hwtrap = 0;
rc = qeth_set_access_ctrl_online(card, 0); if (card->options.isolation != ISOLATION_MODE_NONE) {
if (rc) rc = qeth_set_access_ctrl_online(card, 0);
goto out; if (rc)
goto out;
}
rc = qeth_init_qdio_queues(card); rc = qeth_init_qdio_queues(card);
if (rc) { if (rc) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment