Skip to content
Commit 24920c8a authored by Zhang Rui's avatar Zhang Rui Committed by Jeff Garzik
Browse files

AHCI: speed up resume



During resume, sleep 1 second to wait for the HBA reset
to finish is a waste of time.

According to the AHCI 1.2 spec,
We should poll the HOST_CTL register,
and return error if the host reset is not
finished within 1 second.

Test results show that the HBA reset can be done quickly(in usecs).
And this patch may save nearly 1 second during resume.

Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 1e9dbc92
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