]> git.neil.brown.name Git - history.git/commitdiff
Make ide-cd handle a REQ_BLOCK_PC packet command completion
authorLinus Torvalds <torvalds@home.transmeta.com>
Sun, 13 Oct 2002 05:34:54 +0000 (22:34 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 13 Oct 2002 05:34:54 +0000 (22:34 -0700)
properly (which is to say the same as REQ_PC).

drivers/ide/ide-cd.c

index fd3d89421421acbfcf2cd4431c3bb02c6d51281d..012381dd73d90f30d03b6500e8205e86e85b493a 100644 (file)
@@ -678,7 +678,7 @@ static int cdrom_decode_status (ide_startstop_t *startstop, ide_drive_t *drive,
                *startstop = DRIVER(drive)->error(drive, "request sense failure", stat);
                return 1;
 
-       } else if (rq->flags & REQ_PC) {
+       } else if (rq->flags & (REQ_PC | REQ_BLOCK_PC)) {
                /* All other functions, except for READ. */
                struct completion *wait = NULL;
                pc = (struct packet_command *) rq->buffer;