linux-yocto/drivers/net/can/c_can
Cai Huoqing 594503341d can: c_can: 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>
Link: https://lore.kernel.org/all/20230323113318.9473-1-cai.huoqing@linux.dev
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2023-03-24 19:11:20 +01:00
..
c_can_ethtool.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
c_can_main.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00
c_can_pci.c can: c_can: Remove redundant pci_clear_master 2023-03-24 19:11:20 +01:00
c_can_platform.c can: c_can: use devm_platform_get_and_ioremap_resource() 2022-12-12 11:39:12 +01:00
c_can.h can: c_can: don't cache TX messages for C_CAN cores 2022-09-28 10:34:04 +02:00
Kconfig can: remove obsolete PCH CAN driver 2022-10-19 21:33:30 +02:00
Makefile can: c_can: add ethtool support 2021-05-27 09:42:23 +02:00