]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
libata: Support PIO polling-only hosts.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 8 Nov 2007 02:14:56 +0000 (11:14 +0900)
committerJeff Garzik <jeff@garzik.org>
Thu, 8 Nov 2007 18:08:41 +0000 (13:08 -0500)
commit3d46b2e2faa56d12c6d51bf1071fd11abd009d0b
treebe1b269c820068407c7f289c64948b8f8a63b8b8
parent6004bda1cce51273ac9e71a39e680831b9ff4503
libata: Support PIO polling-only hosts.

By default ata_host_activate() expects a valid IRQ in order to
successfully register the host. This patch enables a special case
for registering polling-only hosts that either don't have IRQs
or have buggy IRQ generation (either in terms of handling or
sensing), which otherwise work fine.

Hosts that want to use polling mode can simply set ATA_FLAG_PIO_POLLING
and pass in an invalid IRQ.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c