diff options
Diffstat (limited to 'drivers/scsi/ibmvscsi')
-rw-r--r-- | drivers/scsi/ibmvscsi/rpa_vscsi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/ibmvscsi/rpa_vscsi.c b/drivers/scsi/ibmvscsi/rpa_vscsi.c index f47dd87c05e7..892e8ed63091 100644 --- a/drivers/scsi/ibmvscsi/rpa_vscsi.c +++ b/drivers/scsi/ibmvscsi/rpa_vscsi.c | |||
@@ -80,7 +80,7 @@ void ibmvscsi_release_crq_queue(struct crq_queue *queue, | |||
80 | tasklet_kill(&hostdata->srp_task); | 80 | tasklet_kill(&hostdata->srp_task); |
81 | do { | 81 | do { |
82 | rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); | 82 | rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); |
83 | } while ((rc == H_Busy) || (H_isLongBusy(rc))); | 83 | } while ((rc == H_BUSY) || (H_IS_LONG_BUSY(rc))); |
84 | dma_unmap_single(hostdata->dev, | 84 | dma_unmap_single(hostdata->dev, |
85 | queue->msg_token, | 85 | queue->msg_token, |
86 | queue->size * sizeof(*queue->msgs), DMA_BIDIRECTIONAL); | 86 | queue->size * sizeof(*queue->msgs), DMA_BIDIRECTIONAL); |
@@ -230,7 +230,7 @@ int ibmvscsi_init_crq_queue(struct crq_queue *queue, | |||
230 | rc = plpar_hcall_norets(H_REG_CRQ, | 230 | rc = plpar_hcall_norets(H_REG_CRQ, |
231 | vdev->unit_address, | 231 | vdev->unit_address, |
232 | queue->msg_token, PAGE_SIZE); | 232 | queue->msg_token, PAGE_SIZE); |
233 | if (rc == H_Resource) | 233 | if (rc == H_RESOURCE) |
234 | /* maybe kexecing and resource is busy. try a reset */ | 234 | /* maybe kexecing and resource is busy. try a reset */ |
235 | rc = ibmvscsi_reset_crq_queue(queue, | 235 | rc = ibmvscsi_reset_crq_queue(queue, |
236 | hostdata); | 236 | hostdata); |
@@ -269,7 +269,7 @@ int ibmvscsi_init_crq_queue(struct crq_queue *queue, | |||
269 | req_irq_failed: | 269 | req_irq_failed: |
270 | do { | 270 | do { |
271 | rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); | 271 | rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); |
272 | } while ((rc == H_Busy) || (H_isLongBusy(rc))); | 272 | } while ((rc == H_BUSY) || (H_IS_LONG_BUSY(rc))); |
273 | reg_crq_failed: | 273 | reg_crq_failed: |
274 | dma_unmap_single(hostdata->dev, | 274 | dma_unmap_single(hostdata->dev, |
275 | queue->msg_token, | 275 | queue->msg_token, |
@@ -295,7 +295,7 @@ int ibmvscsi_reenable_crq_queue(struct crq_queue *queue, | |||
295 | /* Re-enable the CRQ */ | 295 | /* Re-enable the CRQ */ |
296 | do { | 296 | do { |
297 | rc = plpar_hcall_norets(H_ENABLE_CRQ, vdev->unit_address); | 297 | rc = plpar_hcall_norets(H_ENABLE_CRQ, vdev->unit_address); |
298 | } while ((rc == H_InProgress) || (rc == H_Busy) || (H_isLongBusy(rc))); | 298 | } while ((rc == H_IN_PROGRESS) || (rc == H_BUSY) || (H_IS_LONG_BUSY(rc))); |
299 | 299 | ||
300 | if (rc) | 300 | if (rc) |
301 | printk(KERN_ERR "ibmvscsi: Error %d enabling adapter\n", rc); | 301 | printk(KERN_ERR "ibmvscsi: Error %d enabling adapter\n", rc); |
@@ -317,7 +317,7 @@ int ibmvscsi_reset_crq_queue(struct crq_queue *queue, | |||
317 | /* Close the CRQ */ | 317 | /* Close the CRQ */ |
318 | do { | 318 | do { |
319 | rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); | 319 | rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); |
320 | } while ((rc == H_Busy) || (H_isLongBusy(rc))); | 320 | } while ((rc == H_BUSY) || (H_IS_LONG_BUSY(rc))); |
321 | 321 | ||
322 | /* Clean out the queue */ | 322 | /* Clean out the queue */ |
323 | memset(queue->msgs, 0x00, PAGE_SIZE); | 323 | memset(queue->msgs, 0x00, PAGE_SIZE); |