]> git.baikalelectronics.ru Git - kernel.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)
commit6b28c521578a6f73dea2b1098ab9c72769859122
treebe1b269c820068407c7f289c64948b8f8a63b8b8
parentdd59eecc92a9b2c9a8b80767347c284c34a2e761
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