summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorStuart Hayes <stuart_hayes@dell.com>2007-04-10 22:38:43 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-04-10 22:38:43 +0200
commit76ca1af10e28021e1894c5703da42b5e7bff1771 (patch)
tree2aa5afe2eff68a3c2a3faf59ca8957ddc8776fdf /block
parent23450319e2890986c247ec0aa1442f060e657e6d (diff)
downloadlinux-76ca1af10e28021e1894c5703da42b5e7bff1771.tar.gz
linux-76ca1af10e28021e1894c5703da42b5e7bff1771.tar.bz2
linux-76ca1af10e28021e1894c5703da42b5e7bff1771.zip
ide: ugly messages trying to open CD drive with no media present
I get the following error messages when trying to open a CD device (specifically, the Teac CD-ROM CD-224E) that has no media present: hda: packet command error: status=3D0x51 { DriveReady SeekComplete Error } hda: packet command error: error=3D0x54 { AbortedCommand LastFailedSense=0x05 } ide: failed opcode was: unknown This happens when a "start stop unit" command (0x1b 0 0 0 3 0 0 0 0 0) is sent to the drive to try to close the CD-ROM tray, but this drive doesn't have that capability (it's a slim portable-type CD-ROM), so it reports sense key 5 (illegal request) with asc/ascq 24/0. This is exactly how SFF8090i says it should respond. But ide-cd.c (in cdrom_decode_status() ) just sees sense key 5 and spews out an error. It then goes on to request sense data, and cdrom_log_sense() understands this error and doesn't log it. The patch, for kernel 2.6.20.4, suppresses this error message. Signed-off-by: Stuart Hayes <stuart_hayes@dell.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions