[PATCH] libata: consider disabled devices in ata_dev_xfermask()
authorTejun Heo <htejun@gmail.com>
Sun, 2 Apr 2006 08:54:47 +0000 (17:54 +0900)
committerJeff Garzik <jeff@garzik.org>
Sun, 2 Apr 2006 14:02:58 +0000 (10:02 -0400)
commit565083e1f14e7771aa6bac2d3d4aae0b08d48d78
tree8e6a81175297d3d03aa1eede59fcb635d65380e2
parent14d2bac1877ed4e2cc940d1680db1a4f29225811
[PATCH] libata: consider disabled devices in ata_dev_xfermask()

ata_bus_probe() now marks failed devices properly and leaves
meaningful transfer mode masks.  This patch makes ata_dev_xfermask()
consider disable devices when determining PIO mode to avoid violating
device selection timing.

While at it, move port-wide resttriction out of device iteration loop
and try to make the function look a bit prettier.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c