diff options
author | Jens Axboe <axboe@suse.de> | 2006-03-21 09:24:37 -0500 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-03-27 02:29:02 -0500 |
commit | b8fca1c7682105c843319728d8e37b42b19092bb (patch) | |
tree | 68fa6c49fbbf44fecf19399c89bb3a755eaad2c2 /drivers | |
parent | f68110fc28859f5d7231d5c4fb6dbe68b1394c9b (diff) |
[PATCH] ide-cd: quiet down GPCMD_READ_CDVD_CAPACITY failure
Some drives like to throw a:
ATAPI device hdc:
Error: Not ready -- (Sense key=0x02)
Incompatible medium installed -- (asc=0x30, ascq=0x00)
The failed "Read Cd/Dvd Capacity" packet command was:
"25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
warning on incompatible media, so quiet down this error.
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/ide-cd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index c7671e188017..b4a41d6d0714 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -2143,6 +2143,7 @@ static int cdrom_read_capacity(ide_drive_t *drive, unsigned long *capacity, | |||
2143 | req.cmd[0] = GPCMD_READ_CDVD_CAPACITY; | 2143 | req.cmd[0] = GPCMD_READ_CDVD_CAPACITY; |
2144 | req.data = (char *)&capbuf; | 2144 | req.data = (char *)&capbuf; |
2145 | req.data_len = sizeof(capbuf); | 2145 | req.data_len = sizeof(capbuf); |
2146 | req.flags |= REQ_QUIET; | ||
2146 | 2147 | ||
2147 | stat = cdrom_queue_packet_command(drive, &req); | 2148 | stat = cdrom_queue_packet_command(drive, &req); |
2148 | if (stat == 0) { | 2149 | if (stat == 0) { |