diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-10-07 22:28:21 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-10-07 22:28:21 +0200 |
commit | 9fec0e736081cd155afb6a413b7641b93faed519 (patch) | |
tree | a91f5bb3e967e97ddd00c727e0d2bfd65669f93d /sys/src/9/pc/sdiahci.c | |
parent | 4d7c195804991b9c762f9a859679282c7014bbbb (diff) |
pc drivers: use pcienable() to handle device power up and missing initialization
Diffstat (limited to 'sys/src/9/pc/sdiahci.c')
-rw-r--r-- | sys/src/9/pc/sdiahci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/pc/sdiahci.c b/sys/src/9/pc/sdiahci.c index 94467afe3..f1549a8d0 100644 --- a/sys/src/9/pc/sdiahci.c +++ b/sys/src/9/pc/sdiahci.c @@ -2175,12 +2175,14 @@ iapnp(void) s->ctlr = c; c->sdev = s; + pcienable(p); ahcihandoff((Ahba*)c->mmio); if(p->vid == 0x8086) iasetupahci(c); nunit = ahciconf(c); if(nunit < 1){ vunmap(c->mmio, p->mem[Abar].size); + pcidisable(p); continue; } c->ndrive = s->nunit = nunit; |