Comments
Patch
@@ -1707,6 +1707,8 @@ static int ide_cd_probe(ide_drive_t *drive)
struct gendisk *g;
struct request_sense sense;
+ drive->debug_mask = 0xffffffff;
+
ide_debug_log(IDE_DBG_PROBE, "driver_req: %s, media: 0x%x",
drive->driver_req, drive->media);
@@ -1716,7 +1718,6 @@ static int ide_cd_probe(ide_drive_t *drive)
if (drive->media != ide_cdrom && drive->media != ide_optical)
goto failed;
- drive->debug_mask = debug_mask;
drive->irq_handler = cdrom_newpc_intr;
info = kzalloc(sizeof(struct cdrom_info), GFP_KERNEL);
@@ -8,7 +8,7 @@
#include <linux/cdrom.h>
#include <asm/byteorder.h>
-#define IDECD_DEBUG_LOG 0
+#define IDECD_DEBUG_LOG 1
#if IDECD_DEBUG_LOG
#define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, ## args)
https://bugzilla.kernel.org/show_bug.cgi?id=14994 Borislav Petkov <bbpetkov@yahoo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bbpetkov@yahoo.de --- Comment #4 from Borislav Petkov <bbpetkov@yahoo.de> 2010-04-11 11:09:38 --- Hi, can you send me the whole dmesg with the oops, also your kernel config. Also, you could try reproducing the bug after having enabled ide-cd debugging. For that, you'll need to apply the following patchlet and rebuild your kernel: