diff options
Diffstat (limited to 'drivers/message/fusion/mptsas.c')
-rw-r--r-- | drivers/message/fusion/mptsas.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index b1147aa7afde..12b732512e57 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c | |||
@@ -300,7 +300,7 @@ mptsas_port_delete(MPT_ADAPTER *ioc, struct mptsas_portinfo_details * port_detai | |||
300 | phy_info = port_info->phy_info; | 300 | phy_info = port_info->phy_info; |
301 | 301 | ||
302 | dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "%s: [%p]: num_phys=%02d " | 302 | dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "%s: [%p]: num_phys=%02d " |
303 | "bitmask=0x%016llX\n", ioc->name, __FUNCTION__, port_details, | 303 | "bitmask=0x%016llX\n", ioc->name, __func__, port_details, |
304 | port_details->num_phys, (unsigned long long) | 304 | port_details->num_phys, (unsigned long long) |
305 | port_details->phy_bitmask)); | 305 | port_details->phy_bitmask)); |
306 | 306 | ||
@@ -411,7 +411,7 @@ mptsas_setup_wide_ports(MPT_ADAPTER *ioc, struct mptsas_portinfo *port_info) | |||
411 | */ | 411 | */ |
412 | dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT | 412 | dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT |
413 | "%s: [%p]: deleting phy = %d\n", | 413 | "%s: [%p]: deleting phy = %d\n", |
414 | ioc->name, __FUNCTION__, port_details, i)); | 414 | ioc->name, __func__, port_details, i)); |
415 | port_details->num_phys--; | 415 | port_details->num_phys--; |
416 | port_details->phy_bitmask &= ~ (1 << phy_info->phy_id); | 416 | port_details->phy_bitmask &= ~ (1 << phy_info->phy_id); |
417 | memset(&phy_info->attached, 0, sizeof(struct mptsas_devinfo)); | 417 | memset(&phy_info->attached, 0, sizeof(struct mptsas_devinfo)); |
@@ -497,7 +497,7 @@ mptsas_setup_wide_ports(MPT_ADAPTER *ioc, struct mptsas_portinfo *port_info) | |||
497 | continue; | 497 | continue; |
498 | dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT | 498 | dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT |
499 | "%s: [%p]: phy_id=%02d num_phys=%02d " | 499 | "%s: [%p]: phy_id=%02d num_phys=%02d " |
500 | "bitmask=0x%016llX\n", ioc->name, __FUNCTION__, | 500 | "bitmask=0x%016llX\n", ioc->name, __func__, |
501 | port_details, i, port_details->num_phys, | 501 | port_details, i, port_details->num_phys, |
502 | (unsigned long long)port_details->phy_bitmask)); | 502 | (unsigned long long)port_details->phy_bitmask)); |
503 | dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "\t\tport = %p rphy=%p\n", | 503 | dsaswideprintk(ioc, printk(MYIOC_s_DEBUG_FMT "\t\tport = %p rphy=%p\n", |
@@ -553,7 +553,7 @@ mptsas_target_reset(MPT_ADAPTER *ioc, u8 channel, u8 id) | |||
553 | 553 | ||
554 | if ((mf = mpt_get_msg_frame(ioc->TaskCtx, ioc)) == NULL) { | 554 | if ((mf = mpt_get_msg_frame(ioc->TaskCtx, ioc)) == NULL) { |
555 | dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, no msg frames @%d!!\n", | 555 | dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, no msg frames @%d!!\n", |
556 | ioc->name,__FUNCTION__, __LINE__)); | 556 | ioc->name,__func__, __LINE__)); |
557 | return 0; | 557 | return 0; |
558 | } | 558 | } |
559 | 559 | ||
@@ -606,7 +606,7 @@ mptsas_target_reset_queue(MPT_ADAPTER *ioc, | |||
606 | GFP_ATOMIC); | 606 | GFP_ATOMIC); |
607 | if (!target_reset_list) { | 607 | if (!target_reset_list) { |
608 | dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, failed to allocate mem @%d..!!\n", | 608 | dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, failed to allocate mem @%d..!!\n", |
609 | ioc->name,__FUNCTION__, __LINE__)); | 609 | ioc->name,__func__, __LINE__)); |
610 | return; | 610 | return; |
611 | } | 611 | } |
612 | 612 | ||
@@ -673,7 +673,7 @@ mptsas_dev_reset_complete(MPT_ADAPTER *ioc) | |||
673 | ev = kzalloc(sizeof(*ev), GFP_ATOMIC); | 673 | ev = kzalloc(sizeof(*ev), GFP_ATOMIC); |
674 | if (!ev) { | 674 | if (!ev) { |
675 | dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, failed to allocate mem @%d..!!\n", | 675 | dfailprintk(ioc, printk(MYIOC_s_WARN_FMT "%s, failed to allocate mem @%d..!!\n", |
676 | ioc->name,__FUNCTION__, __LINE__)); | 676 | ioc->name,__func__, __LINE__)); |
677 | return; | 677 | return; |
678 | } | 678 | } |
679 | 679 | ||
@@ -1183,7 +1183,7 @@ static int mptsas_phy_reset(struct sas_phy *phy, int hard_reset) | |||
1183 | reply = (SasIoUnitControlReply_t *)ioc->sas_mgmt.reply; | 1183 | reply = (SasIoUnitControlReply_t *)ioc->sas_mgmt.reply; |
1184 | if (reply->IOCStatus != MPI_IOCSTATUS_SUCCESS) { | 1184 | if (reply->IOCStatus != MPI_IOCSTATUS_SUCCESS) { |
1185 | printk(MYIOC_s_INFO_FMT "%s: IOCStatus=0x%X IOCLogInfo=0x%X\n", | 1185 | printk(MYIOC_s_INFO_FMT "%s: IOCStatus=0x%X IOCLogInfo=0x%X\n", |
1186 | ioc->name, __FUNCTION__, reply->IOCStatus, reply->IOCLogInfo); | 1186 | ioc->name, __func__, reply->IOCStatus, reply->IOCLogInfo); |
1187 | error = -ENXIO; | 1187 | error = -ENXIO; |
1188 | goto out_unlock; | 1188 | goto out_unlock; |
1189 | } | 1189 | } |
@@ -1270,14 +1270,14 @@ static int mptsas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, | |||
1270 | 1270 | ||
1271 | if (!rsp) { | 1271 | if (!rsp) { |
1272 | printk(MYIOC_s_ERR_FMT "%s: the smp response space is missing\n", | 1272 | printk(MYIOC_s_ERR_FMT "%s: the smp response space is missing\n", |
1273 | ioc->name, __FUNCTION__); | 1273 | ioc->name, __func__); |
1274 | return -EINVAL; | 1274 | return -EINVAL; |
1275 | } | 1275 | } |
1276 | 1276 | ||
1277 | /* do we need to support multiple segments? */ | 1277 | /* do we need to support multiple segments? */ |
1278 | if (req->bio->bi_vcnt > 1 || rsp->bio->bi_vcnt > 1) { | 1278 | if (req->bio->bi_vcnt > 1 || rsp->bio->bi_vcnt > 1) { |
1279 | printk(MYIOC_s_ERR_FMT "%s: multiple segments req %u %u, rsp %u %u\n", | 1279 | printk(MYIOC_s_ERR_FMT "%s: multiple segments req %u %u, rsp %u %u\n", |
1280 | ioc->name, __FUNCTION__, req->bio->bi_vcnt, req->data_len, | 1280 | ioc->name, __func__, req->bio->bi_vcnt, req->data_len, |
1281 | rsp->bio->bi_vcnt, rsp->data_len); | 1281 | rsp->bio->bi_vcnt, rsp->data_len); |
1282 | return -EINVAL; | 1282 | return -EINVAL; |
1283 | } | 1283 | } |
@@ -1343,7 +1343,7 @@ static int mptsas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, | |||
1343 | 1343 | ||
1344 | timeleft = wait_for_completion_timeout(&ioc->sas_mgmt.done, 10 * HZ); | 1344 | timeleft = wait_for_completion_timeout(&ioc->sas_mgmt.done, 10 * HZ); |
1345 | if (!timeleft) { | 1345 | if (!timeleft) { |
1346 | printk(MYIOC_s_ERR_FMT "%s: smp timeout!\n", ioc->name, __FUNCTION__); | 1346 | printk(MYIOC_s_ERR_FMT "%s: smp timeout!\n", ioc->name, __func__); |
1347 | /* On timeout reset the board */ | 1347 | /* On timeout reset the board */ |
1348 | mpt_HardResetHandler(ioc, CAN_SLEEP); | 1348 | mpt_HardResetHandler(ioc, CAN_SLEEP); |
1349 | ret = -ETIMEDOUT; | 1349 | ret = -ETIMEDOUT; |
@@ -1361,7 +1361,7 @@ static int mptsas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, | |||
1361 | rsp->data_len -= smprep->ResponseDataLength; | 1361 | rsp->data_len -= smprep->ResponseDataLength; |
1362 | } else { | 1362 | } else { |
1363 | printk(MYIOC_s_ERR_FMT "%s: smp passthru reply failed to be returned\n", | 1363 | printk(MYIOC_s_ERR_FMT "%s: smp passthru reply failed to be returned\n", |
1364 | ioc->name, __FUNCTION__); | 1364 | ioc->name, __func__); |
1365 | ret = -ENXIO; | 1365 | ret = -ENXIO; |
1366 | } | 1366 | } |
1367 | unmap: | 1367 | unmap: |
@@ -2006,7 +2006,7 @@ static int mptsas_probe_one_phy(struct device *dev, | |||
2006 | if (error) { | 2006 | if (error) { |
2007 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2007 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2008 | "%s: exit at line=%d\n", ioc->name, | 2008 | "%s: exit at line=%d\n", ioc->name, |
2009 | __FUNCTION__, __LINE__)); | 2009 | __func__, __LINE__)); |
2010 | goto out; | 2010 | goto out; |
2011 | } | 2011 | } |
2012 | mptsas_set_port(ioc, phy_info, port); | 2012 | mptsas_set_port(ioc, phy_info, port); |
@@ -2076,7 +2076,7 @@ static int mptsas_probe_one_phy(struct device *dev, | |||
2076 | if (!rphy) { | 2076 | if (!rphy) { |
2077 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2077 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2078 | "%s: exit at line=%d\n", ioc->name, | 2078 | "%s: exit at line=%d\n", ioc->name, |
2079 | __FUNCTION__, __LINE__)); | 2079 | __func__, __LINE__)); |
2080 | goto out; | 2080 | goto out; |
2081 | } | 2081 | } |
2082 | 2082 | ||
@@ -2085,7 +2085,7 @@ static int mptsas_probe_one_phy(struct device *dev, | |||
2085 | if (error) { | 2085 | if (error) { |
2086 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2086 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2087 | "%s: exit at line=%d\n", ioc->name, | 2087 | "%s: exit at line=%d\n", ioc->name, |
2088 | __FUNCTION__, __LINE__)); | 2088 | __func__, __LINE__)); |
2089 | sas_rphy_free(rphy); | 2089 | sas_rphy_free(rphy); |
2090 | goto out; | 2090 | goto out; |
2091 | } | 2091 | } |
@@ -2613,7 +2613,7 @@ mptsas_hotplug_work(struct work_struct *work) | |||
2613 | (ev->channel << 8) + ev->id)) { | 2613 | (ev->channel << 8) + ev->id)) { |
2614 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2614 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2615 | "%s: exit at line=%d\n", ioc->name, | 2615 | "%s: exit at line=%d\n", ioc->name, |
2616 | __FUNCTION__, __LINE__)); | 2616 | __func__, __LINE__)); |
2617 | break; | 2617 | break; |
2618 | } | 2618 | } |
2619 | phy_info = mptsas_find_phyinfo_by_sas_address( | 2619 | phy_info = mptsas_find_phyinfo_by_sas_address( |
@@ -2633,20 +2633,20 @@ mptsas_hotplug_work(struct work_struct *work) | |||
2633 | if (!phy_info){ | 2633 | if (!phy_info){ |
2634 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2634 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2635 | "%s: exit at line=%d\n", ioc->name, | 2635 | "%s: exit at line=%d\n", ioc->name, |
2636 | __FUNCTION__, __LINE__)); | 2636 | __func__, __LINE__)); |
2637 | break; | 2637 | break; |
2638 | } | 2638 | } |
2639 | if (!phy_info->port_details) { | 2639 | if (!phy_info->port_details) { |
2640 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2640 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2641 | "%s: exit at line=%d\n", ioc->name, | 2641 | "%s: exit at line=%d\n", ioc->name, |
2642 | __FUNCTION__, __LINE__)); | 2642 | __func__, __LINE__)); |
2643 | break; | 2643 | break; |
2644 | } | 2644 | } |
2645 | rphy = mptsas_get_rphy(phy_info); | 2645 | rphy = mptsas_get_rphy(phy_info); |
2646 | if (!rphy) { | 2646 | if (!rphy) { |
2647 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2647 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2648 | "%s: exit at line=%d\n", ioc->name, | 2648 | "%s: exit at line=%d\n", ioc->name, |
2649 | __FUNCTION__, __LINE__)); | 2649 | __func__, __LINE__)); |
2650 | break; | 2650 | break; |
2651 | } | 2651 | } |
2652 | 2652 | ||
@@ -2654,7 +2654,7 @@ mptsas_hotplug_work(struct work_struct *work) | |||
2654 | if (!port) { | 2654 | if (!port) { |
2655 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2655 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2656 | "%s: exit at line=%d\n", ioc->name, | 2656 | "%s: exit at line=%d\n", ioc->name, |
2657 | __FUNCTION__, __LINE__)); | 2657 | __func__, __LINE__)); |
2658 | break; | 2658 | break; |
2659 | } | 2659 | } |
2660 | 2660 | ||
@@ -2665,7 +2665,7 @@ mptsas_hotplug_work(struct work_struct *work) | |||
2665 | if (!vtarget) { | 2665 | if (!vtarget) { |
2666 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2666 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2667 | "%s: exit at line=%d\n", ioc->name, | 2667 | "%s: exit at line=%d\n", ioc->name, |
2668 | __FUNCTION__, __LINE__)); | 2668 | __func__, __LINE__)); |
2669 | break; | 2669 | break; |
2670 | } | 2670 | } |
2671 | 2671 | ||
@@ -2720,7 +2720,7 @@ mptsas_hotplug_work(struct work_struct *work) | |||
2720 | (ev->channel << 8) + ev->id)) { | 2720 | (ev->channel << 8) + ev->id)) { |
2721 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2721 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2722 | "%s: exit at line=%d\n", ioc->name, | 2722 | "%s: exit at line=%d\n", ioc->name, |
2723 | __FUNCTION__, __LINE__)); | 2723 | __func__, __LINE__)); |
2724 | break; | 2724 | break; |
2725 | } | 2725 | } |
2726 | 2726 | ||
@@ -2732,7 +2732,7 @@ mptsas_hotplug_work(struct work_struct *work) | |||
2732 | if (!phy_info || !phy_info->port_details) { | 2732 | if (!phy_info || !phy_info->port_details) { |
2733 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2733 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2734 | "%s: exit at line=%d\n", ioc->name, | 2734 | "%s: exit at line=%d\n", ioc->name, |
2735 | __FUNCTION__, __LINE__)); | 2735 | __func__, __LINE__)); |
2736 | break; | 2736 | break; |
2737 | } | 2737 | } |
2738 | 2738 | ||
@@ -2744,7 +2744,7 @@ mptsas_hotplug_work(struct work_struct *work) | |||
2744 | if (!vtarget) { | 2744 | if (!vtarget) { |
2745 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2745 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2746 | "%s: exit at line=%d\n", ioc->name, | 2746 | "%s: exit at line=%d\n", ioc->name, |
2747 | __FUNCTION__, __LINE__)); | 2747 | __func__, __LINE__)); |
2748 | break; | 2748 | break; |
2749 | } | 2749 | } |
2750 | /* | 2750 | /* |
@@ -2767,7 +2767,7 @@ mptsas_hotplug_work(struct work_struct *work) | |||
2767 | if (mptsas_get_rphy(phy_info)) { | 2767 | if (mptsas_get_rphy(phy_info)) { |
2768 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2768 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2769 | "%s: exit at line=%d\n", ioc->name, | 2769 | "%s: exit at line=%d\n", ioc->name, |
2770 | __FUNCTION__, __LINE__)); | 2770 | __func__, __LINE__)); |
2771 | if (ev->channel) printk("%d\n", __LINE__); | 2771 | if (ev->channel) printk("%d\n", __LINE__); |
2772 | break; | 2772 | break; |
2773 | } | 2773 | } |
@@ -2776,7 +2776,7 @@ mptsas_hotplug_work(struct work_struct *work) | |||
2776 | if (!port) { | 2776 | if (!port) { |
2777 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2777 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2778 | "%s: exit at line=%d\n", ioc->name, | 2778 | "%s: exit at line=%d\n", ioc->name, |
2779 | __FUNCTION__, __LINE__)); | 2779 | __func__, __LINE__)); |
2780 | break; | 2780 | break; |
2781 | } | 2781 | } |
2782 | memcpy(&phy_info->attached, &sas_device, | 2782 | memcpy(&phy_info->attached, &sas_device, |
@@ -2801,7 +2801,7 @@ mptsas_hotplug_work(struct work_struct *work) | |||
2801 | if (!rphy) { | 2801 | if (!rphy) { |
2802 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2802 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2803 | "%s: exit at line=%d\n", ioc->name, | 2803 | "%s: exit at line=%d\n", ioc->name, |
2804 | __FUNCTION__, __LINE__)); | 2804 | __func__, __LINE__)); |
2805 | break; /* non-fatal: an rphy can be added later */ | 2805 | break; /* non-fatal: an rphy can be added later */ |
2806 | } | 2806 | } |
2807 | 2807 | ||
@@ -2809,7 +2809,7 @@ mptsas_hotplug_work(struct work_struct *work) | |||
2809 | if (sas_rphy_add(rphy)) { | 2809 | if (sas_rphy_add(rphy)) { |
2810 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT | 2810 | dfailprintk(ioc, printk(MYIOC_s_ERR_FMT |
2811 | "%s: exit at line=%d\n", ioc->name, | 2811 | "%s: exit at line=%d\n", ioc->name, |
2812 | __FUNCTION__, __LINE__)); | 2812 | __func__, __LINE__)); |
2813 | sas_rphy_free(rphy); | 2813 | sas_rphy_free(rphy); |
2814 | break; | 2814 | break; |
2815 | } | 2815 | } |