ahci: port_no should be used when clearing IRQ in ahci_thaw()
commita718728f9e40ec79c0879ec6509a54fee214f5b2
authorTejun Heo <htejun@gmail.com>
Sat, 27 Jan 2007 02:04:26 +0000 (27 11:04 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 27 Jan 2007 07:50:36 +0000 (27 02:50 -0500)
tree547885a7f46380d10c6ebdcf16cac96d36d6991d
parent7d620a4e531ae4d432d3c88f7d4b75327d881a87
ahci: port_no should be used when clearing IRQ in ahci_thaw()

ap->id is logcial port ID which is unique among all ATA ports and
doesn't have anything to do with hardware port index.  ap->port_no is
the hardware port index and thus should be used when clearing IRQ mask
in ahci_thaw().

This problem has been spotted by Jeff Garzik <jgarzik@pobox.com>.

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