Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137673
b: refs/heads/master
c: d364c7f
h: refs/heads/master
i:
  137671: 31cee76
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 27, 2009
1 parent cb93bab commit e1eb089
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7fedc3ca0b8fcd3350a40c42a7100a9539e6c4a
refs/heads/master: d364c7f50b3bb6dc77259974038567b821e2cf0a
4 changes: 2 additions & 2 deletions trunk/drivers/ide/ide-park.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ ide_startstop_t ide_do_park_unpark(ide_drive_t *drive, struct request *rq)
tf->lbal = 0x4c;
tf->lbam = 0x4e;
tf->lbah = 0x55;
cmd.tf_flags |= IDE_TFLAG_CUSTOM_HANDLER;
cmd.tf_flags = IDE_TFLAG_TF | IDE_TFLAG_DEVICE;
} else /* cmd == REQ_UNPARK_HEADS */
tf->command = ATA_CMD_CHK_POWER;

cmd.tf_flags |= IDE_TFLAG_TF | IDE_TFLAG_DEVICE;
cmd.tf_flags |= IDE_TFLAG_CUSTOM_HANDLER;
cmd.protocol = ATA_PROT_NODATA;

cmd.rq = rq;
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/ide/ide-taskfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,16 @@ static ide_startstop_t task_no_data_intr(ide_drive_t *drive)
if (custom && tf->command == ATA_CMD_SET_MULTI)
drive->mult_count = drive->mult_req;

if (custom == 0 || tf->command == ATA_CMD_IDLEIMMEDIATE) {
if (custom == 0 || tf->command == ATA_CMD_IDLEIMMEDIATE ||
tf->command == ATA_CMD_CHK_POWER) {
struct request *rq = hwif->rq;
u8 err = ide_read_error(drive);

if (blk_pm_request(rq))
ide_complete_pm_rq(drive, rq);
else {
if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE ||
tf->command == ATA_CMD_IDLEIMMEDIATE)
ide_complete_cmd(drive, cmd, stat, err);
u8 err = ide_read_error(drive);

ide_complete_cmd(drive, cmd, stat, err);
ide_complete_rq(drive, err);
}
}
Expand Down

0 comments on commit e1eb089

Please sign in to comment.