]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
intel_th: pci: Enable bus mastering
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Thu, 10 Aug 2017 08:10:58 +0000 (11:10 +0300)
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 25 Aug 2017 14:58:35 +0000 (17:58 +0300)
The driver forgets to enable bus mastering for the PCI device.
Fix this.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
drivers/hwtracing/intel_th/pci.c

index 590cf90dd21a61a6855dd99885c99da7d2dbc33a..aac7d66d6adff4db62d2a4e7a2e99fbbd27b5c20 100644 (file)
@@ -46,6 +46,8 @@ static int intel_th_pci_probe(struct pci_dev *pdev,
        if (IS_ERR(th))
                return PTR_ERR(th);
 
+       pci_set_master(pdev);
+
        return 0;
 }