lkml.org 
[lkml]   [2000]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch-2.3.43-p2] wrong speed set in drivers/cdrom/mcd.c
Hi,

Is the minimum value of "struct cdrom_device_info"->speed 2? If not, then
the following patch should be applied:

http://www.ocston.org/~tigran/patches/mcd-speed-2.3.43-p2.patch

Also, I removed initialization to 2 because the static initialization of
the structure already sets it to 2.

Regards,
Tigran

--- mcd.c.0 Tue Feb 8 14:19:03 2000
+++ mcd.c Tue Feb 8 14:20:16 2000
@@ -1251,13 +1251,12 @@
" irq=%d\n", mcd_port, mcd_irq);
MCMD_DATA_READ = MCMD_2X_READ;

- mcd_info.speed = 2;
/* Added flag to drop to 1x speed if too many errors */
mcdDouble = 1;
} else {
sprintf(msg, " mcd: Mitsumi Single Speed CD-ROM at port=0x%x,"
" irq=%d\n", mcd_port, mcd_irq);
- mcd_info.speed = 2;
+ mcd_info.speed = 1;
}

request_region(mcd_port, 4, "mcd");

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.034 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site