svn commit: r253294 - stable/9/sys/dev/nvme
Jim Harris
jimharris at FreeBSD.org
Fri Jul 12 22:05:17 UTC 2013
Author: jimharris
Date: Fri Jul 12 22:05:17 2013
New Revision: 253294
URL: http://svnweb.freebsd.org/changeset/base/253294
Log:
MFC r253107:
Add pci_enable_busmaster() and pci_disable_busmaster() calls in
nvme_attach() and nvme_detach() respectively.
Approved by: re (kib)
Modified:
stable/9/sys/dev/nvme/nvme.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/nvme/nvme.c
==============================================================================
--- stable/9/sys/dev/nvme/nvme.c Fri Jul 12 22:03:46 2013 (r253293)
+++ stable/9/sys/dev/nvme/nvme.c Fri Jul 12 22:05:17 2013 (r253294)
@@ -255,6 +255,8 @@ nvme_attach(device_t dev)
nvme_sysctl_initialize_ctrlr(ctrlr);
+ pci_enable_busmaster(dev);
+
ctrlr->config_hook.ich_func = nvme_ctrlr_start_config_hook;
ctrlr->config_hook.ich_arg = ctrlr;
@@ -269,6 +271,7 @@ nvme_detach (device_t dev)
struct nvme_controller *ctrlr = DEVICE2SOFTC(dev);
nvme_ctrlr_destruct(ctrlr, dev);
+ pci_disable_busmaster(dev);
return (0);
}
More information about the svn-src-stable-9
mailing list