1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/ath/ath12k
Cai Huoqing b9235aef84 wifi: ath12k: 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: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230323112613.7550-3-cai.huoqing@linux.dev
2023-04-12 13:03:24 +03:00
..
ce.c wifi: ath12k: Fix spelling mistakes in warning messages and comments 2023-02-17 18:04:29 +02:00
ce.h
core.c
core.h wifi: ath12k: fix firmware assert during channel switch for peer sta 2023-03-22 12:05:48 +02:00
dbring.c wifi: ath12k: Fix uninitilized variable clang warnings 2023-01-18 08:37:55 +02:00
dbring.h
debug.c
debug.h
dp.c wifi: ath12k: remove memset with byte count of 278528 2023-02-24 12:23:16 +02:00
dp.h wifi: ath12k: Fix spelling mistakes in warning messages and comments 2023-02-17 18:04:29 +02:00
dp_mon.c wifi: ath12k: dp_mon: clean up some inconsistent indentings 2023-02-17 18:21:00 +02:00
dp_mon.h
dp_rx.c wifi: ath12k: fix incorrect handling of AMSDU frames 2023-03-24 16:48:57 +02:00
dp_rx.h
dp_tx.c wifi: ath12k: fix packets are sent in native wifi mode while we set raw mode 2023-03-24 16:48:34 +02:00
dp_tx.h
hal.c wifi: ath12k: Fix spelling mistakes in warning messages and comments 2023-02-17 18:04:29 +02:00
hal.h wifi: ath12k: Fix spelling mistakes in warning messages and comments 2023-02-17 18:04:29 +02:00
hal_desc.h wifi: ath12k: Fix spelling mistakes in warning messages and comments 2023-02-17 18:04:29 +02:00
hal_rx.c wifi: ath12k: hal_rx: Use memset_startat() for clearing queue descriptors 2023-01-18 08:37:56 +02:00
hal_rx.h
hal_tx.c
hal_tx.h
hif.h
htc.c
htc.h
hw.c wifi: ath12k: Enable IMPS for WCN7850 2023-03-22 12:06:51 +02:00
hw.h
Kconfig
mac.c wifi: ath12k: fix firmware assert during channel switch for peer sta 2023-03-22 12:05:48 +02:00
mac.h
Makefile
mhi.c
mhi.h
pci.c wifi: ath12k: Remove redundant pci_clear_master 2023-04-12 13:03:24 +03:00
pci.h wifi: ath12k: PCI ops for wakeup/release MHI 2023-02-22 11:50:29 +02:00
peer.c
peer.h
qmi.c wifi: ath12k: fix memory leak in ath12k_qmi_driver_event_work() 2023-03-22 12:05:18 +02:00
qmi.h wifi: ath12k: Add new qmi_bdf_type to handle caldata 2023-01-18 08:38:50 +02:00
reg.c
reg.h
rx_desc.h wifi: ath12k: Fix spelling mistakes in warning messages and comments 2023-02-17 18:04:29 +02:00
trace.c
trace.h
wmi.c wifi: ath12k: incorrect channel survey dump 2023-03-24 16:49:31 +02:00
wmi.h wifi: ath12k: Fix spelling mistakes in warning messages and comments 2023-02-17 18:04:29 +02:00