Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77283
b: refs/heads/master
c: 145b75e
h: refs/heads/master
i:
  77281: 6537a6c
  77279: 73dd5ce
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jan 26, 2008
1 parent 4bd4466 commit edcf0df
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 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: 2624565caacedd740fce7803fe2c162842aa5df4
refs/heads/master: 145b75e9aedbe36c55e45da8564dcd0814bdd89e
1 change: 0 additions & 1 deletion trunk/drivers/ide/ide-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,6 @@ irqreturn_t ide_intr (int irq, void *dev_id)
void ide_init_drive_cmd (struct request *rq)
{
memset(rq, 0, sizeof(*rq));
rq->cmd_type = REQ_TYPE_ATA_CMD;
rq->ref_count = 1;
}

Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/ide/ide-taskfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ int ide_wait_cmd (ide_drive_t *drive, u8 cmd, u8 nsect, u8 feature, u8 sectors,
buf = buffer;
memset(buf, 0, 4 + SECTOR_WORDS * 4 * sectors);
ide_init_drive_cmd(&rq);
rq.cmd_type = REQ_TYPE_ATA_CMD;
rq.buffer = buf;
*buf++ = cmd;
*buf++ = nsect;
Expand All @@ -778,7 +779,10 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)

if (NULL == (void *) arg) {
struct request rq;

ide_init_drive_cmd(&rq);
rq.cmd_type = REQ_TYPE_ATA_CMD;

return ide_do_drive_cmd(drive, &rq, ide_wait);
}

Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/ide/ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,10 @@ int set_pio_mode(ide_drive_t *drive, int arg)

if (drive->special.b.set_tune)
return -EBUSY;

ide_init_drive_cmd(&rq);
rq.cmd_type = REQ_TYPE_ATA_CMD;

drive->tune_req = (u8) arg;
drive->special.b.set_tune = 1;
(void) ide_do_drive_cmd(drive, &rq, ide_wait);
Expand Down

0 comments on commit edcf0df

Please sign in to comment.