diff options
author | Stefan Raspl <raspl@linux.vnet.ibm.com> | 2012-11-18 21:46:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-19 14:19:00 -0500 |
commit | 395672e098d3094388b6204a8c80958d9212dbb4 (patch) | |
tree | d8fa6a586047bcfc82d9c70667f58985013641d1 /drivers/s390/net | |
parent | 7096b187396e8e329c5f6d296441b7b3328f75f0 (diff) |
qeth: Consolidate tracing of card features
Trace all supported and enabled card features to s390dbf.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Reviewed-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r-- | drivers/s390/net/qeth_core.h | 1 | ||||
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 16 | ||||
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 1 | ||||
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 1 |
4 files changed, 16 insertions, 3 deletions
diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h index fa7adad6f9ba..480fbeab0256 100644 --- a/drivers/s390/net/qeth_core.h +++ b/drivers/s390/net/qeth_core.h | |||
@@ -933,6 +933,7 @@ int qeth_hdr_chk_and_bounce(struct sk_buff *, int); | |||
933 | int qeth_configure_cq(struct qeth_card *, enum qeth_cq); | 933 | int qeth_configure_cq(struct qeth_card *, enum qeth_cq); |
934 | int qeth_hw_trap(struct qeth_card *, enum qeth_diags_trap_action); | 934 | int qeth_hw_trap(struct qeth_card *, enum qeth_diags_trap_action); |
935 | int qeth_query_ipassists(struct qeth_card *, enum qeth_prot_versions prot); | 935 | int qeth_query_ipassists(struct qeth_card *, enum qeth_prot_versions prot); |
936 | void qeth_trace_features(struct qeth_card *); | ||
936 | 937 | ||
937 | /* exports for OSN */ | 938 | /* exports for OSN */ |
938 | int qeth_osn_assist(struct net_device *, void *, int); | 939 | int qeth_osn_assist(struct net_device *, void *, int); |
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index af313bf7645b..b904c8c7bc1d 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c | |||
@@ -2968,9 +2968,6 @@ static int qeth_query_ipassists_cb(struct qeth_card *card, | |||
2968 | } else | 2968 | } else |
2969 | QETH_DBF_MESSAGE(1, "%s IPA_CMD_QIPASSIST: Flawed LIC detected" | 2969 | QETH_DBF_MESSAGE(1, "%s IPA_CMD_QIPASSIST: Flawed LIC detected" |
2970 | "\n", dev_name(&card->gdev->dev)); | 2970 | "\n", dev_name(&card->gdev->dev)); |
2971 | QETH_DBF_TEXT(SETUP, 2, "suppenbl"); | ||
2972 | QETH_DBF_TEXT_(SETUP, 2, "%08x", (__u32)cmd->hdr.ipa_supported); | ||
2973 | QETH_DBF_TEXT_(SETUP, 2, "%08x", (__u32)cmd->hdr.ipa_enabled); | ||
2974 | return 0; | 2971 | return 0; |
2975 | } | 2972 | } |
2976 | 2973 | ||
@@ -4730,6 +4727,19 @@ static void qeth_core_free_card(struct qeth_card *card) | |||
4730 | kfree(card); | 4727 | kfree(card); |
4731 | } | 4728 | } |
4732 | 4729 | ||
4730 | void qeth_trace_features(struct qeth_card *card) | ||
4731 | { | ||
4732 | QETH_CARD_TEXT(card, 2, "features"); | ||
4733 | QETH_CARD_TEXT_(card, 2, "%x", card->options.ipa4.supported_funcs); | ||
4734 | QETH_CARD_TEXT_(card, 2, "%x", card->options.ipa4.enabled_funcs); | ||
4735 | QETH_CARD_TEXT_(card, 2, "%x", card->options.ipa6.supported_funcs); | ||
4736 | QETH_CARD_TEXT_(card, 2, "%x", card->options.ipa6.enabled_funcs); | ||
4737 | QETH_CARD_TEXT_(card, 2, "%x", card->options.adp.supported_funcs); | ||
4738 | QETH_CARD_TEXT_(card, 2, "%x", card->options.adp.enabled_funcs); | ||
4739 | QETH_CARD_TEXT_(card, 2, "%x", card->info.diagass_support); | ||
4740 | } | ||
4741 | EXPORT_SYMBOL_GPL(qeth_trace_features); | ||
4742 | |||
4733 | static struct ccw_device_id qeth_ids[] = { | 4743 | static struct ccw_device_id qeth_ids[] = { |
4734 | {CCW_DEVICE_DEVTYPE(0x1731, 0x01, 0x1732, 0x01), | 4744 | {CCW_DEVICE_DEVTYPE(0x1731, 0x01, 0x1732, 0x01), |
4735 | .driver_info = QETH_CARD_TYPE_OSD}, | 4745 | .driver_info = QETH_CARD_TYPE_OSD}, |
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index fddb62654b6a..83849c290337 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c | |||
@@ -986,6 +986,7 @@ static int __qeth_l2_set_online(struct ccwgroup_device *gdev, int recovery_mode) | |||
986 | rc = -ENODEV; | 986 | rc = -ENODEV; |
987 | goto out_remove; | 987 | goto out_remove; |
988 | } | 988 | } |
989 | qeth_trace_features(card); | ||
989 | 990 | ||
990 | if (!card->dev && qeth_l2_setup_netdev(card)) { | 991 | if (!card->dev && qeth_l2_setup_netdev(card)) { |
991 | rc = -ENODEV; | 992 | rc = -ENODEV; |
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 5ba390658498..e4171a944b94 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -3347,6 +3347,7 @@ static int __qeth_l3_set_online(struct ccwgroup_device *gdev, int recovery_mode) | |||
3347 | rc = -ENODEV; | 3347 | rc = -ENODEV; |
3348 | goto out_remove; | 3348 | goto out_remove; |
3349 | } | 3349 | } |
3350 | qeth_trace_features(card); | ||
3350 | 3351 | ||
3351 | if (!card->dev && qeth_l3_setup_netdev(card)) { | 3352 | if (!card->dev && qeth_l3_setup_netdev(card)) { |
3352 | rc = -ENODEV; | 3353 | rc = -ENODEV; |