mirror-linux/drivers/net/wireless/realtek
Cai Huoqing 5995f74631 wifi: rtw89: 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>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230323112613.7550-5-cai.huoqing@linux.dev
2023-04-03 16:38:49 +03:00
..
rtl8xxxu wifi: rtl8xxxu: Support new chip RTL8710BU aka RTL8188GU 2023-03-20 07:54:42 +02:00
rtl818x wifi: mac80211: add wake_tx_queue callback to drivers 2022-10-10 11:00:03 +02:00
rtlwifi wifi: rtlwifi: fix incorrect error codes in rtl_debugfs_set_write_reg() 2023-03-31 17:51:33 +03:00
rtw88 wifi: rtw88: Remove redundant pci_clear_master 2023-03-31 17:49:02 +03:00
rtw89 wifi: rtw89: Remove redundant pci_clear_master 2023-04-03 16:38:49 +03:00
Kconfig rtw89: add Realtek 802.11ax driver 2021-10-13 09:01:12 +03:00
Makefile rtw89: add Realtek 802.11ax driver 2021-10-13 09:01:12 +03:00