diff options
author | Jiri Kosina <jkosina@suse.cz> | 2015-09-01 09:35:24 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-09-01 09:35:24 -0400 |
commit | 067e2601d3c076abbf45db91261f9065eaa879b2 (patch) | |
tree | 86c8d4b913873dbd3b4ff23562a3a8597984b4df /drivers/ide/ide-io.c | |
parent | 3e097d1271ecdff2f251a54ddfc5eaa1f9821e96 (diff) | |
parent | 931830aa5c251e0803523213428f777a48bde254 (diff) |
Merge branch 'for-4.3/gembird' into for-linus
Diffstat (limited to 'drivers/ide/ide-io.c')
-rw-r--r-- | drivers/ide/ide-io.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 177db6d5b2f5..669ea1e45795 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
@@ -135,7 +135,7 @@ EXPORT_SYMBOL(ide_complete_rq); | |||
135 | 135 | ||
136 | void ide_kill_rq(ide_drive_t *drive, struct request *rq) | 136 | void ide_kill_rq(ide_drive_t *drive, struct request *rq) |
137 | { | 137 | { |
138 | u8 drv_req = (rq->cmd_type == REQ_TYPE_SPECIAL) && rq->rq_disk; | 138 | u8 drv_req = (rq->cmd_type == REQ_TYPE_DRV_PRIV) && rq->rq_disk; |
139 | u8 media = drive->media; | 139 | u8 media = drive->media; |
140 | 140 | ||
141 | drive->failed_pc = NULL; | 141 | drive->failed_pc = NULL; |
@@ -320,7 +320,7 @@ static ide_startstop_t start_request (ide_drive_t *drive, struct request *rq) | |||
320 | goto kill_rq; | 320 | goto kill_rq; |
321 | } | 321 | } |
322 | 322 | ||
323 | if (blk_pm_request(rq)) | 323 | if (ata_pm_request(rq)) |
324 | ide_check_pm_state(drive, rq); | 324 | ide_check_pm_state(drive, rq); |
325 | 325 | ||
326 | drive->hwif->tp_ops->dev_select(drive); | 326 | drive->hwif->tp_ops->dev_select(drive); |
@@ -342,8 +342,8 @@ static ide_startstop_t start_request (ide_drive_t *drive, struct request *rq) | |||
342 | 342 | ||
343 | if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE) | 343 | if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE) |
344 | return execute_drive_cmd(drive, rq); | 344 | return execute_drive_cmd(drive, rq); |
345 | else if (blk_pm_request(rq)) { | 345 | else if (ata_pm_request(rq)) { |
346 | struct request_pm_state *pm = rq->special; | 346 | struct ide_pm_state *pm = rq->special; |
347 | #ifdef DEBUG_PM | 347 | #ifdef DEBUG_PM |
348 | printk("%s: start_power_step(step: %d)\n", | 348 | printk("%s: start_power_step(step: %d)\n", |
349 | drive->name, pm->pm_step); | 349 | drive->name, pm->pm_step); |
@@ -353,7 +353,7 @@ static ide_startstop_t start_request (ide_drive_t *drive, struct request *rq) | |||
353 | pm->pm_step == IDE_PM_COMPLETED) | 353 | pm->pm_step == IDE_PM_COMPLETED) |
354 | ide_complete_pm_rq(drive, rq); | 354 | ide_complete_pm_rq(drive, rq); |
355 | return startstop; | 355 | return startstop; |
356 | } else if (!rq->rq_disk && rq->cmd_type == REQ_TYPE_SPECIAL) | 356 | } else if (!rq->rq_disk && rq->cmd_type == REQ_TYPE_DRV_PRIV) |
357 | /* | 357 | /* |
358 | * TODO: Once all ULDs have been modified to | 358 | * TODO: Once all ULDs have been modified to |
359 | * check for specific op codes rather than | 359 | * check for specific op codes rather than |
@@ -538,7 +538,7 @@ repeat: | |||
538 | * state machine. | 538 | * state machine. |
539 | */ | 539 | */ |
540 | if ((drive->dev_flags & IDE_DFLAG_BLOCKED) && | 540 | if ((drive->dev_flags & IDE_DFLAG_BLOCKED) && |
541 | blk_pm_request(rq) == 0 && | 541 | ata_pm_request(rq) == 0 && |
542 | (rq->cmd_flags & REQ_PREEMPT) == 0) { | 542 | (rq->cmd_flags & REQ_PREEMPT) == 0) { |
543 | /* there should be no pending command at this point */ | 543 | /* there should be no pending command at this point */ |
544 | ide_unlock_port(hwif); | 544 | ide_unlock_port(hwif); |