]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ahci: retry enabling AHCI a few times before spitting out WARN_ON()
authorTejun Heo <htejun@gmail.com>
Fri, 18 Jul 2008 23:14:40 +0000 (19:14 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Aug 2008 18:50:50 +0000 (11:50 -0700)
commitc2a0d55885173608ecdd5b653969e5228b5b70c0
tree77b40bf9d884e9d6c1692425bc3f82f765400f33
parent97ed97fb560c5e40eb6dbed8b2ba01a1a4bc22ca
ahci: retry enabling AHCI a few times before spitting out WARN_ON()

commit 15fe982e429e0e6b7466719acb6cfd9dbfe47f0c upstream

ahci: retry enabling AHCI a few times before spitting out WARN_ON()

Some chips need AHCI_EN set more than once to actually set it.  Try a
few times before giving up and spitting out WARN_ON().

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Peer Chen <pchen@nvidia.com>
Cc: Volker Armin Hemmann <volker.armin.hemmann@tu-clausthal.de>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ata/ahci.c