ahci: fix ready status handling of ahci ports

Fixes #1875
This commit is contained in:
Alexander Boettcher 2016-01-05 15:32:15 +01:00 committed by Christian Helmuth
parent bc70d67ee7
commit 73de12999d
2 changed files with 4 additions and 2 deletions

View File

@ -96,9 +96,10 @@ struct Ahci
platform_hba.ack_irq();
}
void ready(unsigned)
void ready(unsigned cnt)
{
if (--ready_count)
ready_count -= cnt;
if (ready_count)
return;
/* announce service */

View File

@ -251,6 +251,7 @@ struct Ata_driver : Port_driver
else
io_cmd = new (Genode::env()->heap()) Dma_ext_command();
ack_irq();
}
break;