]> git.baikalelectronics.ru Git - kernel.git/commit
libata: skip 0xff polling for PATA controllers
authorTejun Heo <htejun@gmail.com>
Thu, 8 Nov 2007 02:20:18 +0000 (11:20 +0900)
committerJeff Garzik <jeff@garzik.org>
Thu, 8 Nov 2007 18:08:41 +0000 (13:08 -0500)
commit6d4c26b0b243a618c240b0cea4ca8c2a2b284468
treef2e129f13f222f23f8b9d0de12067bdb1b2cbc79
parentdeb84ad2155893b6e493daa221f4c2a19b6739e7
libata: skip 0xff polling for PATA controllers

In a presentation of true workmanship, pata_ali asserts IRQ
permanantly if the TF status register is read more than once when
there's no device attached to the port.

Avoid waiting polling for !0xff if it's PATA.  It's needed only for
some rare SATA devices anyway.

This problem is reported by Luca Tettamanti in bugzilla bug 9298.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Tested-By: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c