diff options
author | Ian Moffett <ian@osmora.org> | 2025-05-08 02:08:29 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-05-08 02:08:29 -0400 |
commit | 249d1e0449d3beb097525d847b23461dc818e50a (patch) | |
tree | 3e4c399c9f026421fda327ea98733537e4f90c32 | |
parent | e6ea8b94bf9fbf4e0715d2d723fa978975c5bc5b (diff) |
kernel: ahci: Clear out PxSERR per portexpt
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/dev/ic/ahci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c index e62c89f..1eac07b 100644 --- a/sys/dev/ic/ahci.c +++ b/sys/dev/ic/ahci.c @@ -241,6 +241,8 @@ ahci_init_port(struct ahci_hba *hba, uint32_t portno) memset(PHYS_TO_VIRT(tmp), 0, pagesz); } + mmio_write32(&port->serr, 0xFFFFFFFF); + if ((error = hba_port_start(port)) < 0) { for (int i = 0; i < hba->nslots; ++i) { vm_free_frame(dp->cmdlist[i].ctba, 1); |