aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorCai Huoqing <[email protected]>2023-03-23 19:33:17 +0800
committerMarc Kleine-Budde <[email protected]>2023-03-24 19:11:20 +0100
commit8db931835fad6a2229166fc0719f55c5ba070516 (patch)
tree709211f74f22786ee5541d8b5e27bfaffcd56c89 /tools/perf/scripts/python/check-perf-trace.py
parentc9d23f9657cabfd2836a096bf6eddf8df2cf1434 (diff)
can: kvaser_pciefd: Remove redundant pci_clear_master
Remove pci_clear_master to simplify the code, the bus-mastering is also cleared in do_pci_disable_device, like this: ./drivers/pci/pci.c:2197 static void do_pci_disable_device(struct pci_dev *dev) { u16 pci_command; pci_read_config_word(dev, PCI_COMMAND, &pci_command); if (pci_command & PCI_COMMAND_MASTER) { pci_command &= ~PCI_COMMAND_MASTER; pci_write_config_word(dev, PCI_COMMAND, pci_command); } pcibios_disable_device(dev); }. And dev->is_busmaster is set to 0 in pci_disable_device. Signed-off-by: Cai Huoqing <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions