Re: [Linux 2.6.21.3] CDRW drive not recognised by PATA (ata_piix)

Berck E. Nash
2007-06-03T14:15:36Z

[-- Attachment #1: Type: text/plain, Size: 219 bytes --]

I complained about this very problem months ago. Tejun Heo responded
with the attached patch which does indeed fix the problem for me.
Unfortunately, this patch hasn't made it into the kernel yet. I have no
idea why.

[-- Attachment #2: ata_piix-polling-setxfer.patch --]
[-- Type: text/x-patch, Size: 523 bytes --]

diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index dc42ba1..6e7775a 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -105,7 +105,8 @@ enum {
PIIX_FLAG_AHCI = (1 << 27), /* AHCI possible */
PIIX_FLAG_CHECKINTR = (1 << 28), /* make sure PCI INTx enabled */

- PIIX_PATA_FLAGS = ATA_FLAG_SLAVE_POSS,
+ PIIX_PATA_FLAGS = ATA_FLAG_SLAVE_POSS |
+ ATA_FLAG_SETXFER_POLLING,
PIIX_SATA_FLAGS = ATA_FLAG_SATA | PIIX_FLAG_CHECKINTR,

/* combined mode. if set, PATA is channel 0.