Commit d7d1465e authored by Alessandro Rubini's avatar Alessandro Rubini

bugfix: enable master at probe time

The device is master-enabled at boot time, but the disable_device()
at remove time clears it. pci_enable_device() doesn't re-enable, so
we need to also pci_set_master().

Otherwise DMA works at first load, and the machine freezes at second load.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 55cd31d4
......@@ -94,6 +94,7 @@ static int spec_probe(struct pci_dev *pdev,
ret = pci_enable_device(pdev);
if (ret < 0)
return ret;
pci_set_master(pdev);
spec = kzalloc(sizeof(*spec), GFP_KERNEL);
if (!spec)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment