Commit 4256336f authored by David Dillow's avatar David Dillow

Enable bus mastering before saving our state, or we'll only be able

to load the modules one time.
Signed-off-by: default avatarDavid Dillow <dave@thedillows.org>
parent eb25b5b2
......@@ -2378,9 +2378,6 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
tp->tx_ioaddr = ioaddr_mapped;
tp->dev = dev;
/* need to be able to restore PCI state after a suspend */
pci_save_state(pdev);
/* Init sequence:
* 1) Reset the adapter to clear any bad juju
* 2) Reload the sleep image
......@@ -2395,9 +2392,11 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
}
/* Now that we've reset the 3XP and are sure it's not going to
* write all over memory, enable bus mastering.
* write all over memory, enable bus mastering, and save our
* state for resuming after a suspend.
*/
pci_set_master(pdev);
pci_save_state(pdev);
/* dev->name is not valid until we register, but we need to
* use some common routines to initialize the card. So that those
......
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