mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Disable port interrupts before doing PHY reset.
PHY reset causes drive connect/disconnect events, unwanted at this moment.
This commit is contained in:
parent
1ac37bcb77
commit
53fb2a7ac9
1 changed files with 3 additions and 0 deletions
|
|
@ -679,6 +679,9 @@ ata_ahci_reset(device_t dev)
|
|||
u_int32_t signature;
|
||||
int offset = ch->unit << 7;
|
||||
|
||||
/* Disable port interrupts */
|
||||
ATA_OUTL(ctlr->r_res2, ATA_AHCI_P_IE + offset, 0);
|
||||
|
||||
/* setup work areas */
|
||||
work = ch->dma.work_bus + ATA_AHCI_CL_OFFSET;
|
||||
ATA_OUTL(ctlr->r_res2, ATA_AHCI_P_CLB + offset, work & 0xffffffff);
|
||||
|
|
|
|||
Loading…
Reference in a new issue