diff options
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_sas.c')
-rw-r--r-- | drivers/scsi/pm8001/pm8001_sas.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/scsi/pm8001/pm8001_sas.c b/drivers/scsi/pm8001/pm8001_sas.c index 9af95853f840..a85d73de7c80 100644 --- a/drivers/scsi/pm8001/pm8001_sas.c +++ b/drivers/scsi/pm8001/pm8001_sas.c | |||
@@ -357,7 +357,7 @@ static int sas_find_local_port_id(struct domain_device *dev) | |||
357 | * @tmf: the task management IU | 357 | * @tmf: the task management IU |
358 | */ | 358 | */ |
359 | #define DEV_IS_GONE(pm8001_dev) \ | 359 | #define DEV_IS_GONE(pm8001_dev) \ |
360 | ((!pm8001_dev || (pm8001_dev->dev_type == NO_DEVICE))) | 360 | ((!pm8001_dev || (pm8001_dev->dev_type == SAS_PHY_UNUSED))) |
361 | static int pm8001_task_exec(struct sas_task *task, const int num, | 361 | static int pm8001_task_exec(struct sas_task *task, const int num, |
362 | gfp_t gfp_flags, int is_tmf, struct pm8001_tmf_task *tmf) | 362 | gfp_t gfp_flags, int is_tmf, struct pm8001_tmf_task *tmf) |
363 | { | 363 | { |
@@ -375,7 +375,7 @@ static int pm8001_task_exec(struct sas_task *task, const int num, | |||
375 | struct task_status_struct *tsm = &t->task_status; | 375 | struct task_status_struct *tsm = &t->task_status; |
376 | tsm->resp = SAS_TASK_UNDELIVERED; | 376 | tsm->resp = SAS_TASK_UNDELIVERED; |
377 | tsm->stat = SAS_PHY_DOWN; | 377 | tsm->stat = SAS_PHY_DOWN; |
378 | if (dev->dev_type != SATA_DEV) | 378 | if (dev->dev_type != SAS_SATA_DEV) |
379 | t->task_done(t); | 379 | t->task_done(t); |
380 | return 0; | 380 | return 0; |
381 | } | 381 | } |
@@ -553,7 +553,7 @@ struct pm8001_device *pm8001_alloc_dev(struct pm8001_hba_info *pm8001_ha) | |||
553 | { | 553 | { |
554 | u32 dev; | 554 | u32 dev; |
555 | for (dev = 0; dev < PM8001_MAX_DEVICES; dev++) { | 555 | for (dev = 0; dev < PM8001_MAX_DEVICES; dev++) { |
556 | if (pm8001_ha->devices[dev].dev_type == NO_DEVICE) { | 556 | if (pm8001_ha->devices[dev].dev_type == SAS_PHY_UNUSED) { |
557 | pm8001_ha->devices[dev].id = dev; | 557 | pm8001_ha->devices[dev].id = dev; |
558 | return &pm8001_ha->devices[dev]; | 558 | return &pm8001_ha->devices[dev]; |
559 | } | 559 | } |
@@ -589,7 +589,7 @@ static void pm8001_free_dev(struct pm8001_device *pm8001_dev) | |||
589 | u32 id = pm8001_dev->id; | 589 | u32 id = pm8001_dev->id; |
590 | memset(pm8001_dev, 0, sizeof(*pm8001_dev)); | 590 | memset(pm8001_dev, 0, sizeof(*pm8001_dev)); |
591 | pm8001_dev->id = id; | 591 | pm8001_dev->id = id; |
592 | pm8001_dev->dev_type = NO_DEVICE; | 592 | pm8001_dev->dev_type = SAS_PHY_UNUSED; |
593 | pm8001_dev->device_id = PM8001_MAX_DEVICES; | 593 | pm8001_dev->device_id = PM8001_MAX_DEVICES; |
594 | pm8001_dev->sas_device = NULL; | 594 | pm8001_dev->sas_device = NULL; |
595 | } | 595 | } |
@@ -647,7 +647,7 @@ static int pm8001_dev_found_notify(struct domain_device *dev) | |||
647 | res = -1; | 647 | res = -1; |
648 | } | 648 | } |
649 | } else { | 649 | } else { |
650 | if (dev->dev_type == SATA_DEV) { | 650 | if (dev->dev_type == SAS_SATA_DEV) { |
651 | pm8001_device->attached_phy = | 651 | pm8001_device->attached_phy = |
652 | dev->rphy->identify.phy_identifier; | 652 | dev->rphy->identify.phy_identifier; |
653 | flag = 1; /* directly sata*/ | 653 | flag = 1; /* directly sata*/ |
@@ -657,7 +657,7 @@ static int pm8001_dev_found_notify(struct domain_device *dev) | |||
657 | PM8001_CHIP_DISP->reg_dev_req(pm8001_ha, pm8001_device, flag); | 657 | PM8001_CHIP_DISP->reg_dev_req(pm8001_ha, pm8001_device, flag); |
658 | spin_unlock_irqrestore(&pm8001_ha->lock, flags); | 658 | spin_unlock_irqrestore(&pm8001_ha->lock, flags); |
659 | wait_for_completion(&completion); | 659 | wait_for_completion(&completion); |
660 | if (dev->dev_type == SAS_END_DEV) | 660 | if (dev->dev_type == SAS_END_DEVICE) |
661 | msleep(50); | 661 | msleep(50); |
662 | pm8001_ha->flags = PM8001F_RUN_TIME; | 662 | pm8001_ha->flags = PM8001F_RUN_TIME; |
663 | return 0; | 663 | return 0; |
@@ -927,7 +927,7 @@ void pm8001_open_reject_retry( | |||
927 | struct pm8001_ccb_info *ccb = &pm8001_ha->ccb_info[i]; | 927 | struct pm8001_ccb_info *ccb = &pm8001_ha->ccb_info[i]; |
928 | 928 | ||
929 | pm8001_dev = ccb->device; | 929 | pm8001_dev = ccb->device; |
930 | if (!pm8001_dev || (pm8001_dev->dev_type == NO_DEVICE)) | 930 | if (!pm8001_dev || (pm8001_dev->dev_type == SAS_PHY_UNUSED)) |
931 | continue; | 931 | continue; |
932 | if (!device_to_close) { | 932 | if (!device_to_close) { |
933 | uintptr_t d = (uintptr_t)pm8001_dev | 933 | uintptr_t d = (uintptr_t)pm8001_dev |