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/etherrt2860.c | |
parent | 4d7c195804991b9c762f9a859679282c7014bbbb (diff) |
pc drivers: use pcienable() to handle device power up and missing initialization
Diffstat (limited to 'sys/src/9/pc/etherrt2860.c')
-rw-r--r-- | sys/src/9/pc/etherrt2860.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/9/pc/etherrt2860.c b/sys/src/9/pc/etherrt2860.c index 0abe59ea9..696660766 100644 --- a/sys/src/9/pc/etherrt2860.c +++ b/sys/src/9/pc/etherrt2860.c @@ -3489,9 +3489,6 @@ rt2860pci(void) break; } - pcisetbme(pdev); - pcisetpms(pdev, 0); - ctlr = malloc(sizeof(Ctlr)); if(ctlr == nil){ print("rt2860: unable to alloc Ctlr\n"); @@ -3535,6 +3532,9 @@ again: if(ctlr == nil) return -1; + pcienable(ctlr->pdev); + pcisetbme(ctlr->pdev); + edev->ctlr = ctlr; edev->port = ctlr->port; edev->irq = ctlr->pdev->intl; |