Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139421
b: refs/heads/master
c: e698ea8
h: refs/heads/master
i:
  139419: 6c23249
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 31, 2009
1 parent c0211a9 commit 556bea8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 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: 14fa91ccbafa02a71cfb53f9c830b8c0c65119d0
refs/heads/master: e698ea83a8531a6740dc657329dcf0728392d6ac
15 changes: 7 additions & 8 deletions trunk/drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1581,18 +1581,18 @@ static int ide_cdrom_setup(ide_drive_t *drive)
{
struct cdrom_info *cd = drive->driver_data;
struct cdrom_device_info *cdi = &cd->devinfo;
struct request_queue *q = drive->queue;
u16 *id = drive->id;
char *fw_rev = (char *)&id[ATA_ID_FW_REV];
int nslots;

ide_debug_log(IDE_DBG_PROBE, "enter");

blk_queue_prep_rq(drive->queue, ide_cdrom_prep_fn);
blk_queue_dma_alignment(drive->queue, 31);
blk_queue_update_dma_pad(drive->queue, 15);
drive->queue->unplug_delay = (1 * HZ) / 1000;
if (!drive->queue->unplug_delay)
drive->queue->unplug_delay = 1;
blk_queue_prep_rq(q, ide_cdrom_prep_fn);
blk_queue_dma_alignment(q, 31);
blk_queue_update_dma_pad(q, 15);

q->unplug_delay = max((1 * HZ) / 1000, 1);

drive->dev_flags |= IDE_DFLAG_MEDIA_CHANGED;
drive->atapi_flags = IDE_AFLAG_NO_EJECT | ide_cd_flags(id);
Expand All @@ -1610,8 +1610,7 @@ static int ide_cdrom_setup(ide_drive_t *drive)

nslots = ide_cdrom_probe_capabilities(drive);

/* set correct block size */
blk_queue_hardsect_size(drive->queue, CD_FRAMESIZE);
blk_queue_hardsect_size(q, CD_FRAMESIZE);

if (ide_cdrom_register(drive, nslots)) {
printk(KERN_ERR PFX "%s: %s failed to register device with the"
Expand Down

0 comments on commit 556bea8

Please sign in to comment.