Skip to content
Commit 5958e302 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

libata: move PMP SCR access failure during reset to ata_eh_reset()



If PMP fan-out reset fails and SCR isn't accessible, PMP should be
reset.  This used to be tested by sata_pmp_std_hardreset() and
communicated to EH by -ERESTART.  However, this logic is generic and
doesn't really have much to do with specific hardreset implementation.

This patch moves SCR access failure detection logic to ata_eh_reset()
where it belongs.  As this makes sata_pmp_std_hardreset() identical to
sata_std_hardreset(), the function is killed and replaced with the
standard method.

Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
parent ac371987
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment