libata: implement and use HORKAGE_NOSETXFER, take#2
authorTejun Heo <tj@kernel.org>
Thu, 9 Jul 2009 00:27:50 +0000 (09:27 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 15 Jul 2009 02:41:46 +0000 (22:41 -0400)
commitd0cb43b35d64877b2944bd37719708be5d7bbf99
tree7b282b1070613c552143d143f74e407c2ccb4b6e
parentfe2c4d018fc6127610fef677e020b3bb41cfaaaf
libata: implement and use HORKAGE_NOSETXFER, take#2

PIONEER DVD-RW DVRTD08 times out SETXFER if no media is present.  The
device is SATA and simply skipping SETXFER works around the problem.
Implement ATA_HORKAGE_NOSETXFER and apply it to the device.

Reported by Moritz Rigler in the following thread.

  http://thread.gmane.org/gmane.linux.ide/36790

and by Lars in bko#9540.

Updated to whine and ignore NOSETXFER if PATA component is detected as
suggested by Alan Cox.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Moritz Rigler <linux-ide@momail.e4ward.com>
Reported-by: Lars <lars21ce@gmx.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-core.c
include/linux/libata.h