mirror of https://github.com/acidanthera/audk.git
MdeModulePkg AtaAtapiPassThru: Always do S.M.A.R.T. check if device support
If S.M.A.R.T. is supported, it can be checked. Signed-off-by: Liming Gao <gaoliming@byosoft.com.cn> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Ray Ni <ray.ni@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
This commit is contained in:
parent
d6e6337cd6
commit
c974257821
|
@ -1833,18 +1833,17 @@ AhciAtaSmartSupport (
|
||||||
ATA_ATAPI_TIMEOUT,
|
ATA_ATAPI_TIMEOUT,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!EFI_ERROR (Status)) {
|
|
||||||
Status = AhciAtaSmartReturnStatusCheck (
|
|
||||||
PciIo,
|
|
||||||
AhciRegisters,
|
|
||||||
(UINT8)Port,
|
|
||||||
(UINT8)PortMultiplier,
|
|
||||||
AtaStatusBlock
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AhciAtaSmartReturnStatusCheck (
|
||||||
|
PciIo,
|
||||||
|
AhciRegisters,
|
||||||
|
(UINT8)Port,
|
||||||
|
(UINT8)PortMultiplier,
|
||||||
|
AtaStatusBlock
|
||||||
|
);
|
||||||
|
|
||||||
DEBUG ((EFI_D_INFO, "Enabled S.M.A.R.T feature at port [%d] PortMultiplier [%d]!\n",
|
DEBUG ((EFI_D_INFO, "Enabled S.M.A.R.T feature at port [%d] PortMultiplier [%d]!\n",
|
||||||
Port, PortMultiplier));
|
Port, PortMultiplier));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue