]> err.no Git - linux-2.6/commit
ahci: factor out AHCI enabling and enable AHCI before reading CAP
authorTejun Heo <htejun@gmail.com>
Sat, 5 Jan 2008 14:11:57 +0000 (23:11 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 23 Jan 2008 10:24:16 +0000 (05:24 -0500)
commitb710a1f4b34438b624e9c6c2dc8bcf54b0b0ba27
treef8bb87bd4cbc2591da8c0b9bdaf01b426902800b
parentc729072459446885c5c200137de1db32da5db4dc
ahci: factor out AHCI enabling and enable AHCI before reading CAP

Factor out AHCI enabling into ahci_enable_ahci() and enabling AHCI
before reading CAP in ahci_save_initial_config() as the spec requires
enabling AHCI mode before accessing any other registers.

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