mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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
1 changed files with 9 additions and 10 deletions
|
|
@ -1833,18 +1833,17 @@ AhciAtaSmartSupport (
|
|||
ATA_ATAPI_TIMEOUT,
|
||||
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",
|
||||
Port, PortMultiplier));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue