Skip to content

Commit

Permalink
drm/vmwgfx: Fix an issue with the device losing its irq line on modul…
Browse files Browse the repository at this point in the history
…e unload

Starting with commit b4b55cd
("x86/PCI: Refine the way to release PCI IRQ resources")

the device lost its irq resource on module unload. While that's ok and
apparently intentional, the driver never got the resource back on module load

The code apparently wants drivers to disable the pci device at pci device
driver removal, so lets do that. That fixes the issue.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
  • Loading branch information
Thomas Hellstrom committed Mar 11, 2015
1 parent da5efff commit fd3e4d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,7 @@ static void vmw_remove(struct pci_dev *pdev)
{
struct drm_device *dev = pci_get_drvdata(pdev);

pci_disable_device(pdev);
drm_put_dev(dev);
}

Expand Down

0 comments on commit fd3e4d6

Please sign in to comment.