[patch-2.3.43-p2] wrong speed set in drivers/cdrom/mcd.c

From: Tigran Aivazian (tigran@sco.COM)
Date: Tue Feb 08 2000 - 09:29:39 EST


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/



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:12 EST