linux/drivers/ntb/hw
Cai Huoqing da6b4dc49e ntb_hw_amd: 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 <cai.huoqing@linux.dev>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2023-07-08 11:02:37 -04:00
..
amd ntb_hw_amd: Remove redundant pci_clear_master 2023-07-08 11:02:37 -04:00
epf NTB: epf: Allow more flexibility in the memory BAR map method 2022-08-09 17:54:03 -04:00
idt ntb: idt: drop redundant pci_enable_pcie_error_reporting() 2023-07-08 11:02:36 -04:00
intel ntb: intel: Fix error handling in intel_ntb_pci_driver_init() 2023-07-08 10:51:55 -04:00
mscc driver core: class: remove struct class_interface * from callbacks 2023-04-03 21:42:52 +02:00
Kconfig NTB: Add support for EPF PCI Non-Transparent Bridge 2021-02-23 14:12:53 -06:00
Makefile NTB: Add support for EPF PCI Non-Transparent Bridge 2021-02-23 14:12:53 -06:00