Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Feb 2001 17:10:02 -0800 (PST)
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/25370: ATA subsystem in 4.x fails to recognize some ATA CD-ROMs
Message-ID:  <200102270110.f1R1A2n70711@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/25370; it has been noted by GNATS.

From: "Matthew Emmerton" <matt@gsicomp.on.ca>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: kern/25370: ATA subsystem in 4.x fails to recognize some ATA CD-ROMs
Date: Mon, 26 Feb 2001 20:08:53 -0500

 Here's the patch in a more usuable format.
 
 I realize that this code may cause problems for ATA floppy devices, although
 I believe an "aborted command" response from a ATA floppy may be indicative
 of a "device powering up" situation which is similar to the case of the
 CD-ROM.
 
 --- sys/dev/ata/atapi-all.c.orig Sun Feb 25 16:35:20 2001
 +++ sys/dev/ata/atapi-all.c Sun Feb 25 23:50:08 2001
 @@ -449,6 +449,17 @@
    request->error = EIO;
    break;
 
 +     case ATAPI_SK_ABORTED_COMMAND:
 +  /* This allows first-generation ATAPI devices (such
 +   * as MKE/Panasonic "Creative" CD-ROMs) that don't
 +   * respond properly to MODE_SENSE_BIG to still be
 +   * detected and recognized by the ata subsystem,
 +   * as they were in 3.x)
 +   */
 +  if (atp->cmd == ATAPI_MODE_SENSE_BIG)
 +   break;
 +  /* FALLTHROUGH */
 +
       default:
    printf("%s: %s - %s asc=%02x ascq=%02x ",
           atp->devname, atapi_cmd2str(atp->cmd),
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102270110.f1R1A2n70711>