]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide-cd_ioctl.c
x86: if we cannot calibrate the TSC, we panic.
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-cd_ioctl.c
index b68284de4e85a2fbbb968c102ee5d8b3eddd6b22..6d147ce6782f17b8d8f1b2667891bc6dd3ff8076 100644 (file)
@@ -457,6 +457,10 @@ int ide_cdrom_packet(struct cdrom_device_info *cdi,
           layer. the packet must be complete, as we do not
           touch it at all. */
        ide_cd_init_rq(drive, &req);
+
+       if (cgc->data_direction == CGC_DATA_WRITE)
+               req.cmd_flags |= REQ_RW;
+
        memcpy(req.cmd, cgc->cmd, CDROM_PACKET_SIZE);
        if (cgc->sense)
                memset(cgc->sense, 0, sizeof(struct request_sense));