ide/libata: fix ata_id_is_cfa() (take 4)
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Sun, 1 Feb 2009 16:46:39 +0000 (20:46 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Feb 2009 17:46:28 +0000 (09:46 -0800)
commitf8a697653ca7adde1f5b5d704e98e86b7f9dcf1f
treef234ab15996879f0be2970c3df3bce59381560e4
parentb0a309110bb9fd87d21ef80cfb233ac1660a9282
ide/libata: fix ata_id_is_cfa() (take 4)

commit 2999b58b795ad81f10e34bdbbfd2742172f247e4 upstream.

When checking for the CFA feature set support, ata_id_is_cfa() tests bit 2 in
word 82 of the identify data instead the word 83;  it also checks the ATA/PI
version support in the word 80 (which the CompactFlash specifications have as
reserved), this having no slightest chance to work on the modern CF cards that
don't have 0x848A in the word 0...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/ata.h