ahci_drv: set 'Cmd::St' to 1 before writing 'Sact' register

Issue #3058
This commit is contained in:
Christian Prochaska 2019-11-24 04:06:31 +01:00 committed by Christian Helmuth
parent 57d080d4f8
commit 4c74f4792c
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ struct Ncq_command : Io_command
unsigned slot) override
{
table.fis.fpdma(read, block_number, count, slot);
/* ensure that 'Cmd::St' is 1 before writing 'Sact' */
port.start();
/* set pending */
port.write<Port::Sact>(1U << slot);
}