]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/ata/libata-core.c
libata: add ATA_CBL_PATA_IGN
authorTejun Heo <htejun@gmail.com>
Tue, 27 Nov 2007 10:43:48 +0000 (19:43 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 23 Jan 2008 10:24:12 +0000 (05:24 -0500)
commitc88f90c3779cd5e710f2acdf59ad2bd0380de98d
tree7b3d7464f03d2abdc105d07728cab0df67262a25
parent7dc951aefdc1dc20228691b04867fb6195864d67
libata: add ATA_CBL_PATA_IGN

ATA_CBL_PATA_UNK indicates that the cable type can't be determined
from the host side and might be either 80c or 40c.  libata applies
drive or other generic limit in this case.  However, there are
controllers where both host and drive side detections are
misimplemented and the driver has to rely solely on private method -
peeking BIOS or ACPI configuration or using some other private
mechanism.

This patch adds ATA_CBL_PATA_IGN which tells libata to ignore the
cable type completely and just let the LLD determine the transfer mode
via host transfer mode masks and ->mode_filter().

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c
include/linux/ata.h
include/linux/libata.h