]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit314b40762d188b0bc1e70df223b2cb4adcdcbe51
tree7b3d7464f03d2abdc105d07728cab0df67262a25
parent361dc36274528c65a0703d0a62cc6255fb5b1a57
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