]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/AtaAtapiPassThru: relax PHY detect timeout
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 23 Jun 2017 14:50:53 +0000 (14:50 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 28 Jun 2017 12:47:13 +0000 (12:47 +0000)
commit1fb805b1eb5b6039cb12375f8594aba65bf60a44
tree17d5197ca32cb6c140b30b9783c298cab0c6814d
parent157fb7bf29eea497b22025f53b5547e4748b6c2d
MdeModulePkg/AtaAtapiPassThru: relax PHY detect timeout

The SATA spec mandates that link detection by the PHY completes within
10 ms after receiving a reset signal. However, there is no obligation
to uphold this requirement at the driver end as strictly as we do, and
as it turns out, some combinations of host and device (e.g., Samsung
850 EVO connected to a LeMaker Cello) are only borderline compliant,
which means the device is not detected reliably.

So let's allow for a bit of margin, and increase the PHY detect timeout
value to 15 ms.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.h