X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fide%2Fide-cd.c;h=638becda81c6206fa1413bac1003842e6d8664eb;hb=cfaae3ee4a0d00c6b22780057e958d625499e90c;hp=45a928c058cfb0b21c5b150127458d4fb9256773;hpb=9654640d0af8f2de40ff3807d3695109d3463f54;p=linux-2.6 diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 45a928c058..638becda81 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c @@ -735,6 +735,15 @@ static int cdrom_decode_status(ide_drive_t *drive, int good_stat, int *stat_ret) cdrom_saw_media_change (drive); /*printk("%s: media changed\n",drive->name);*/ return 0; + } else if ((sense_key == ILLEGAL_REQUEST) && + (rq->cmd[0] == GPCMD_START_STOP_UNIT)) { + /* + * Don't print error message for this condition-- + * SFF8090i indicates that 5/24/00 is the correct + * response to a request to close the tray if the + * drive doesn't have that capability. + * cdrom_log_sense() knows this! + */ } else if (!(rq->cmd_flags & REQ_QUIET)) { /* Otherwise, print an error. */ ide_dump_status(drive, "packet command error", stat);