[PATCH] libata: ignore CFA signature while sanity-checking an ATAPI device
authorTejun Heo <htejun@gmail.com>
Wed, 13 Sep 2006 03:35:49 +0000 (20:35 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 13 Sep 2006 14:32:14 +0000 (07:32 -0700)
commita4f5749ba6e3f23ae4a137cee10324830db4d081
tree5f3908d5bf29f97b65c01a140bb62a9ef9e3003a
parent95064a75ebf8744e1ff595e8cd7ff9b6c851523e
[PATCH] libata: ignore CFA signature while sanity-checking an ATAPI device

0x848a in ID word 0 indicates CFA device iff the ID data is obtained from
IDENTIFY DEVICE.  For ATAPI devices, 0x848a in ID work 0 indicates valid
ATAPI device.  Fix sanity check in ata_dev_read_id() such that ATAPI
devices reporting 0x848a in ID word 0 is not handled as error.

The problem is identified by J.A.  Magallon with HL-DT-ST DVDRAM GSA-4120B.

Signed-off-by: Tejun Helo <htejun@gmail.com>
Cc: J.A. Magallon <jamagallon@ono.com>
Acked-by: Jeff Garzik <jeff@garzik.org>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/scsi/libata-core.c