ata: Detect Delkin Devices compact flash
authorBen Gardner <gardner.ben@gmail.com>
Tue, 23 Feb 2010 18:41:22 +0000 (12:41 -0600)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 1 Mar 2010 20:11:32 +0000 (15:11 -0500)
commit4b7d1c0509d0d07edc731f990791dc5518e51617
tree25b85383e6b994fb4246e1c0ea5ba12b1b853d17
parent7e044a12c73f474e59f1ddecf08d6781c7830f0f
ata: Detect Delkin Devices compact flash

I have a Delkin Devices compact flash card that isn't being recognized using the
SATA/PATA drivers.
The card is recognized and works with the deprecated ATA drivers.

The error I am seeing is:
ata1.00: failed to IDENTIFY (device reports invalid type, err_mask=0x0)

I tracked it down to ata_id_is_cfa() in include/linux/ata.h.
The Delkin card has id[0] set to 0x844a and id[83] set to 0.
This isn't what the kernel expects and is probably incorrect.

The simplest work-around is to add a check for 0x844a to ata_id_is_cfa().

Signed-off-by: Ben Gardner <gardner.ben@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
include/linux/ata.h