svn commit: r207511 - head/sys/dev/ahci

Alexander Motin mav at FreeBSD.org
Sun May 2 14:46:06 UTC 2010


Author: mav
Date: Sun May  2 14:46:05 2010
New Revision: 207511
URL: http://svn.freebsd.org/changeset/base/207511

Log:
  Enable PCI busmastering explicitly to be sure.

Modified:
  head/sys/dev/ahci/ahci.c

Modified: head/sys/dev/ahci/ahci.c
==============================================================================
--- head/sys/dev/ahci/ahci.c	Sun May  2 13:53:08 2010	(r207510)
+++ head/sys/dev/ahci/ahci.c	Sun May  2 14:46:05 2010	(r207511)
@@ -340,6 +340,7 @@ ahci_attach(device_t dev)
 		rman_fini(&ctlr->sc_iomem);
 		return (error);
 	}
+	pci_enable_busmaster(dev);
 	/* Reset controller */
 	if ((error = ahci_ctlr_reset(dev)) != 0) {
 		bus_release_resource(dev, SYS_RES_MEMORY, ctlr->r_rid, ctlr->r_mem);


More information about the svn-src-all mailing list