svn commit: r188861 - head/sys/dev/ata/chipsets
Alexander Motin
mav at FreeBSD.org
Fri Feb 20 12:20:01 PST 2009
Author: mav
Date: Fri Feb 20 20:20:00 2009
New Revision: 188861
URL: http://svn.freebsd.org/changeset/base/188861
Log:
Disable port interrupts before doing PHY reset.
PHY reset causes drive connect/disconnect events, unwanted at this moment.
Modified:
head/sys/dev/ata/chipsets/ata-ahci.c
Modified: head/sys/dev/ata/chipsets/ata-ahci.c
==============================================================================
--- head/sys/dev/ata/chipsets/ata-ahci.c Fri Feb 20 17:48:40 2009 (r188860)
+++ head/sys/dev/ata/chipsets/ata-ahci.c Fri Feb 20 20:20:00 2009 (r188861)
@@ -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);
More information about the svn-src-head
mailing list