Date: Fri, 12 Jul 2013 22:05:17 +0000 (UTC) From: Jim Harris <jimharris@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r253294 - stable/9/sys/dev/nvme Message-ID: <201307122205.r6CM5Hlo065756@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307122205.r6CM5Hlo065756>