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:29:02 +0000 (09:29 -0800)
commitaac6302fdc26d37d77ca7b01ef0976d6cf1d5e5f
tree615ba5bd9ea4f275664719d141d79036b3c9ec37
parent50a84ef86b69250c49819491de60358097d9ca29
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