Re: libata PATA drivers patch for 2.6.16-rc4

From: Mark Lord
Date: Mon Feb 20 2006 - 17:10:11 EST


Francesco Biscani wrote:

Feb 20 22:06:17 kurtz ata2(0): WARNING: ATAPI is disabled, device ignored.
..
The CDROM on the second ide channel was not recognized (what's up with that WARNING?).

Dunno. For some odd reason libata still doesn't want to handle ATAPI
devices out-of-the-box. There's a boot/module option for it, though,
as well as this patch (attached).
--- linux.old/drivers/scsi/libata-core.c 2006-02-14 12:10:33.000000000 -0500
+++ linux/drivers/scsi/libata-core.c 2006-02-16 11:42:58.000000000 -0500
@@ -78,7 +78,7 @@
static unsigned int ata_unique_id = 1;
static struct workqueue_struct *ata_wq;

-int atapi_enabled = 0;
+int atapi_enabled = 1;
module_param(atapi_enabled, int, 0444);
MODULE_PARM_DESC(atapi_enabled, "Enable discovery of ATAPI devices (0=off, 1=on)");