Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82113
b: refs/heads/master
c: c9f56a8
h: refs/heads/master
i:
  82111: b374946
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 1, 2008
1 parent 31e462a commit e94c9b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 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: a7c7d16383748029de8187075cabbc3f5df2cd78
refs/heads/master: c9f56a801a3a9d76119868a687bc220d29055625
25 changes: 5 additions & 20 deletions trunk/drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,22 +1061,6 @@ static void ide_cd_request_sense_fixup(struct request *rq)
}
}

static ide_startstop_t cdrom_do_newpc_cont(ide_drive_t *);

static ide_startstop_t cdrom_do_packet_command (ide_drive_t *drive)
{
int len;
struct request *rq = HWGROUP(drive)->rq;
struct cdrom_info *info = drive->driver_data;

info->dma = 0;
rq->cmd_flags &= ~REQ_FAILED;
len = rq->data_len;

/* Start sending the command to the drive. */
return cdrom_start_packet_command(drive, len, cdrom_do_newpc_cont);
}

int ide_cd_queue_pc(ide_drive_t *drive, struct request *rq)
{
struct request_sense sense;
Expand Down Expand Up @@ -1505,7 +1489,10 @@ static ide_startstop_t cdrom_do_block_pc(ide_drive_t *drive, struct request *rq)
{
struct cdrom_info *info = drive->driver_data;

rq->cmd_flags |= REQ_QUIET;
if (blk_pc_request(rq))
rq->cmd_flags |= REQ_QUIET;
else
rq->cmd_flags &= ~REQ_FAILED;

info->dma = 0;

Expand Down Expand Up @@ -1565,10 +1552,8 @@ ide_do_rw_cdrom (ide_drive_t *drive, struct request *rq, sector_t block)
}
info->last_block = block;
return action;
} else if (rq->cmd_type == REQ_TYPE_SENSE ||
} else if (blk_sense_request(rq) || blk_pc_request(rq) ||
rq->cmd_type == REQ_TYPE_ATA_PC) {
return cdrom_do_packet_command(drive);
} else if (blk_pc_request(rq)) {
return cdrom_do_block_pc(drive, rq);
} else if (blk_special_request(rq)) {
/*
Expand Down

0 comments on commit e94c9b6

Please sign in to comment.