[1/2] qeth: allow change of blkt default values

Submitted by frank.blaschka@de.ibm.com on April 23, 2012, 7:21 a.m.


Message ID 20120423072158.536697678@de.ibm.com
State Accepted
Delegated to: David Miller
Headers show

Commit Message

frank.blaschka@de.ibm.com April 23, 2012, 7:21 a.m.
From: Ursula Braun <ursula.braun@de.ibm.com>

There exist qeth sysfs blkt attributes to change the default blkt
values. But blkt changes are reset during online setting due to a 2nd
invocation of qeth_determine_capabilites(). This patch makes sure
blkt default values are configured during 1st run of 
qeth_determine_capabilities() only. Thus blkt changes are kept
during online setting.

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Reported-by: Horst Hartmann <horst.hartmann@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>

 drivers/s390/net/qeth_core_main.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

Patch hide | download patch | download mbox

--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -4540,7 +4540,8 @@  static void qeth_determine_capabilities(
 		goto out_offline;
 	qeth_configure_unitaddr(card, prcd);
-	qeth_configure_blkt_default(card, prcd);
+	if (ddev_offline)
+		qeth_configure_blkt_default(card, prcd);
 	rc = qdio_get_ssqd_desc(ddev, &card->ssqd);