ahci: allow ATA_SEC0 on qemu target

x86_fsp_backport
Marco Oliverio 2024-03-14 12:17:19 +01:00
parent 0aac8e2423
commit a96b738e28
1 changed files with 4 additions and 0 deletions

View File

@ -447,6 +447,10 @@ int sata_unlock_disk(int drv, int freeze)
ata_st = ata_security_get_state(drv);
wolfBoot_printf("ATA: Security state SEC%d\r\n", ata_st);
#if defined(TARGET_x86_fsp_qemu)
if (ata_st == ATA_SEC0)
return 0;
#endif
if (ata_st == ATA_SEC1) {
if (freeze) {
AHCI_DEBUG_PRINTF("ATA identify: calling freeze lock\r\n", r);