View | Details | Raw Unified | Return to bug 221616
Collapse All | Expand All

(-)sys/dev/nvme/nvme.c (-2 / +3 lines)
Lines 253-258 Link Here
253
		return (status);
253
		return (status);
254
	}
254
	}
255
255
256
    /* make device busmaster before attempting to enable controller */
257
    pci_enable_busmaster(dev);
258
256
	/*
259
	/*
257
	 * Reset controller twice to ensure we do a transition from cc.en==1
260
	 * Reset controller twice to ensure we do a transition from cc.en==1
258
	 *  to cc.en==0.  This is because we don't really know what status
261
	 *  to cc.en==0.  This is because we don't really know what status
Lines 270-277 Link Here
270
		return (status);
273
		return (status);
271
	}
274
	}
272
275
273
	pci_enable_busmaster(dev);
274
275
	ctrlr->config_hook.ich_func = nvme_ctrlr_start_config_hook;
276
	ctrlr->config_hook.ich_func = nvme_ctrlr_start_config_hook;
276
	ctrlr->config_hook.ich_arg = ctrlr;
277
	ctrlr->config_hook.ich_arg = ctrlr;
277
278

Return to bug 221616