mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
To: linux-kernel@vger.kernel.org
Subject: Re: IDE CDROM problems -- No medium found -- 2.4.12-ac3
Date: 18 Oct 2001 02:03:42 +0200	[thread overview]
Message-ID: <87k7xt7r1d.fsf@kosh.ultra.csn.tu-chemnitz.de> (raw)
In-Reply-To: <20011017161506.C930@wirex.com>

[-- Attachment #1: Type: text/plain, Size: 261 bytes --]

sarnold@wirex.com (Seth Arnold) writes:

> [...]
> mount will sometimes give:
> [...]
> $ mount /mnt/cdrom
> mount: No medium found

ide-cd.c is broken since 2.4.1 and gives bad status reports on most
ATAPI drives. Perhaps the attached patch helps...



Enrico

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch-cdrom.diff --]
[-- Type: text/x-patch, Size: 433 bytes --]

--- linux/drivers/ide/ide-cd.c.orig	Tue May 29 11:24:24 2001
+++ linux/drivers/ide/ide-cd.c	Tue May 29 11:25:44 2001
@@ -2319,10 +2319,7 @@
 		 * any other way to detect this...
 		 */
 		if (sense.sense_key == NOT_READY) {
-			if (sense.asc == 0x3a && (!sense.ascq||sense.ascq == 1))
-				return CDS_NO_DISC;
-			else
-				return CDS_TRAY_OPEN;
+			if (sense.asc == 0x3a) return CDS_TRAY_OPEN;
 		}
 
 		return CDS_DRIVE_NOT_READY;

  reply	other threads:[~2001-10-18  0:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-17 23:15 Seth Arnold
2001-10-18  0:03 ` Enrico Scholz [this message]
2001-10-18  6:16   ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k7xt7r1d.fsf@kosh.ultra.csn.tu-chemnitz.de \
    --to=enrico.scholz@informatik.tu-chemnitz.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®