diff options
author | Sakthivel K <Sakthivel.SaravananKamalRaju@pmcs.com> | 2013-03-19 08:37:09 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-10 10:47:49 -0400 |
commit | a70b8fc3a582694073c3676dba6a39e4e77f8727 (patch) | |
tree | 91fe011a43bace7505e98ed651852b58403a1e47 | |
parent | 1c75a6796ea8b162863caf90b70d324ca481a181 (diff) |
[SCSI] pm80xx: Changed module name and debug messages update
Changed name in driver to pm80xx. Updated debug messages.
Signed-off-by: Sakthivel K <Sakthivel.SaravananKamalRaju@pmcs.com>
Signed-off-by: Anand Kumar S <AnandKumar.Santhanam@pmcs.com>
Acked-by: Jack Wang <jack_wang@usish.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/pm8001/pm8001_hwi.c | 11 | ||||
-rw-r--r-- | drivers/scsi/pm8001/pm8001_init.c | 14 | ||||
-rw-r--r-- | drivers/scsi/pm8001/pm8001_sas.h | 8 |
3 files changed, 20 insertions, 13 deletions
diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index fba1477ad69b..5710364dc5da 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/pm8001/pm8001_hwi.c | |||
@@ -2506,9 +2506,9 @@ static void mpi_sata_event(struct pm8001_hba_info *pm8001_ha , void *piomb) | |||
2506 | if (unlikely(!t || !t->lldd_task || !t->dev)) | 2506 | if (unlikely(!t || !t->lldd_task || !t->dev)) |
2507 | return; | 2507 | return; |
2508 | ts = &t->task_status; | 2508 | ts = &t->task_status; |
2509 | PM8001_IO_DBG(pm8001_ha, | 2509 | PM8001_IO_DBG(pm8001_ha, pm8001_printk( |
2510 | pm8001_printk("port_id = %x,device_id = %x\n", | 2510 | "port_id:0x%x, device_id:0x%x, tag:0x%x, event:0x%x\n", |
2511 | port_id, dev_id)); | 2511 | port_id, dev_id, tag, event)); |
2512 | switch (event) { | 2512 | switch (event) { |
2513 | case IO_OVERFLOW: | 2513 | case IO_OVERFLOW: |
2514 | PM8001_IO_DBG(pm8001_ha, pm8001_printk("IO_UNDERFLOW\n")); | 2514 | PM8001_IO_DBG(pm8001_ha, pm8001_printk("IO_UNDERFLOW\n")); |
@@ -4409,8 +4409,9 @@ int pm8001_chip_abort_task(struct pm8001_hba_info *pm8001_ha, | |||
4409 | { | 4409 | { |
4410 | u32 opc, device_id; | 4410 | u32 opc, device_id; |
4411 | int rc = TMF_RESP_FUNC_FAILED; | 4411 | int rc = TMF_RESP_FUNC_FAILED; |
4412 | PM8001_EH_DBG(pm8001_ha, pm8001_printk("cmd_tag = %x, abort task tag" | 4412 | PM8001_EH_DBG(pm8001_ha, |
4413 | " = %x", cmd_tag, task_tag)); | 4413 | pm8001_printk("cmd_tag = %x, abort task tag = 0x%x", |
4414 | cmd_tag, task_tag)); | ||
4414 | if (pm8001_dev->dev_type == SAS_END_DEV) | 4415 | if (pm8001_dev->dev_type == SAS_END_DEV) |
4415 | opc = OPC_INB_SSP_ABORT; | 4416 | opc = OPC_INB_SSP_ABORT; |
4416 | else if (pm8001_dev->dev_type == SATA_DEV) | 4417 | else if (pm8001_dev->dev_type == SATA_DEV) |
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 64168eb97a7c..0c14dc04194b 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c | |||
@@ -741,7 +741,7 @@ static int pm8001_pci_probe(struct pci_dev *pdev, | |||
741 | const struct pm8001_chip_info *chip; | 741 | const struct pm8001_chip_info *chip; |
742 | 742 | ||
743 | dev_printk(KERN_INFO, &pdev->dev, | 743 | dev_printk(KERN_INFO, &pdev->dev, |
744 | "pm8001: driver version %s\n", DRV_VERSION); | 744 | "pm80xx: driver version %s\n", DRV_VERSION); |
745 | rc = pci_enable_device(pdev); | 745 | rc = pci_enable_device(pdev); |
746 | if (rc) | 746 | if (rc) |
747 | goto err_out_enable; | 747 | goto err_out_enable; |
@@ -789,15 +789,21 @@ static int pm8001_pci_probe(struct pci_dev *pdev, | |||
789 | list_add_tail(&pm8001_ha->list, &hba_list); | 789 | list_add_tail(&pm8001_ha->list, &hba_list); |
790 | PM8001_CHIP_DISP->chip_soft_rst(pm8001_ha); | 790 | PM8001_CHIP_DISP->chip_soft_rst(pm8001_ha); |
791 | rc = PM8001_CHIP_DISP->chip_init(pm8001_ha); | 791 | rc = PM8001_CHIP_DISP->chip_init(pm8001_ha); |
792 | if (rc) | 792 | if (rc) { |
793 | PM8001_FAIL_DBG(pm8001_ha, pm8001_printk( | ||
794 | "chip_init failed [ret: %d]\n", rc)); | ||
793 | goto err_out_ha_free; | 795 | goto err_out_ha_free; |
796 | } | ||
794 | 797 | ||
795 | rc = scsi_add_host(shost, &pdev->dev); | 798 | rc = scsi_add_host(shost, &pdev->dev); |
796 | if (rc) | 799 | if (rc) |
797 | goto err_out_ha_free; | 800 | goto err_out_ha_free; |
798 | rc = pm8001_request_irq(pm8001_ha); | 801 | rc = pm8001_request_irq(pm8001_ha); |
799 | if (rc) | 802 | if (rc) { |
803 | PM8001_FAIL_DBG(pm8001_ha, pm8001_printk( | ||
804 | "pm8001_request_irq failed [ret: %d]\n", rc)); | ||
800 | goto err_out_shost; | 805 | goto err_out_shost; |
806 | } | ||
801 | 807 | ||
802 | PM8001_CHIP_DISP->interrupt_enable(pm8001_ha, 0); | 808 | PM8001_CHIP_DISP->interrupt_enable(pm8001_ha, 0); |
803 | if (pm8001_ha->chip_id != chip_8001) { | 809 | if (pm8001_ha->chip_id != chip_8001) { |
@@ -1039,7 +1045,7 @@ static int __init pm8001_init(void) | |||
1039 | { | 1045 | { |
1040 | int rc = -ENOMEM; | 1046 | int rc = -ENOMEM; |
1041 | 1047 | ||
1042 | pm8001_wq = alloc_workqueue("pm8001", 0, 0); | 1048 | pm8001_wq = alloc_workqueue("pm80xx", 0, 0); |
1043 | if (!pm8001_wq) | 1049 | if (!pm8001_wq) |
1044 | goto err; | 1050 | goto err; |
1045 | 1051 | ||
diff --git a/drivers/scsi/pm8001/pm8001_sas.h b/drivers/scsi/pm8001/pm8001_sas.h index c6fd99a67c39..89dc2273623e 100644 --- a/drivers/scsi/pm8001/pm8001_sas.h +++ b/drivers/scsi/pm8001/pm8001_sas.h | |||
@@ -57,8 +57,8 @@ | |||
57 | #include <linux/atomic.h> | 57 | #include <linux/atomic.h> |
58 | #include "pm8001_defs.h" | 58 | #include "pm8001_defs.h" |
59 | 59 | ||
60 | #define DRV_NAME "pm8001" | 60 | #define DRV_NAME "pm80xx" |
61 | #define DRV_VERSION "0.1.36" | 61 | #define DRV_VERSION "0.1.37" |
62 | #define PM8001_FAIL_LOGGING 0x01 /* Error message logging */ | 62 | #define PM8001_FAIL_LOGGING 0x01 /* Error message logging */ |
63 | #define PM8001_INIT_LOGGING 0x02 /* driver init logging */ | 63 | #define PM8001_INIT_LOGGING 0x02 /* driver init logging */ |
64 | #define PM8001_DISC_LOGGING 0x04 /* discovery layer logging */ | 64 | #define PM8001_DISC_LOGGING 0x04 /* discovery layer logging */ |
@@ -66,8 +66,8 @@ | |||
66 | #define PM8001_EH_LOGGING 0x10 /* libsas EH function logging*/ | 66 | #define PM8001_EH_LOGGING 0x10 /* libsas EH function logging*/ |
67 | #define PM8001_IOCTL_LOGGING 0x20 /* IOCTL message logging */ | 67 | #define PM8001_IOCTL_LOGGING 0x20 /* IOCTL message logging */ |
68 | #define PM8001_MSG_LOGGING 0x40 /* misc message logging */ | 68 | #define PM8001_MSG_LOGGING 0x40 /* misc message logging */ |
69 | #define pm8001_printk(format, arg...) printk(KERN_INFO "%s %d:" format,\ | 69 | #define pm8001_printk(format, arg...) printk(KERN_INFO "pm80xx %s %d:" \ |
70 | __func__, __LINE__, ## arg) | 70 | format, __func__, __LINE__, ## arg) |
71 | #define PM8001_CHECK_LOGGING(HBA, LEVEL, CMD) \ | 71 | #define PM8001_CHECK_LOGGING(HBA, LEVEL, CMD) \ |
72 | do { \ | 72 | do { \ |
73 | if (unlikely(HBA->logging_level & LEVEL)) \ | 73 | if (unlikely(HBA->logging_level & LEVEL)) \ |