libata: retry link resume if necessary
authorTejun Heo <tj@kernel.org>
Mon, 11 Jan 2010 02:14:44 +0000 (11:14 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 12 Jan 2010 19:34:14 +0000 (14:34 -0500)
Interestingly, when SIDPR is used in ata_piix, writes to DET in
SControl sometimes get ignored leading to detection failure.  Update
sata_link_resume() such that it reads back SControl after clearing DET
and retry if it's not clear.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: fengxiangjun <fengxiangjun@neusoft.com>
Reported-by: Jim Faulkner <jfaulkne@ccs.neu.edu>
Cc: stable@kernel.org
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

No differences found