mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-12 00:58:49 +00:00
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
|
||
|---|---|---|
| .. | ||
| ce.c | ||
| ce.h | ||
| core.c | ||
| core.h | ||
| dbring.c | ||
| dbring.h | ||
| debug.c | ||
| debug.h | ||
| dp_mon.c | ||
| dp_mon.h | ||
| dp_rx.c | ||
| dp_rx.h | ||
| dp_tx.c | ||
| dp_tx.h | ||
| dp.c | ||
| dp.h | ||
| hal_desc.h | ||
| hal_rx.c | ||
| hal_rx.h | ||
| hal_tx.c | ||
| hal_tx.h | ||
| hal.c | ||
| hal.h | ||
| hif.h | ||
| htc.c | ||
| htc.h | ||
| hw.c | ||
| hw.h | ||
| Kconfig | ||
| mac.c | ||
| mac.h | ||
| Makefile | ||
| mhi.c | ||
| mhi.h | ||
| pci.c | ||
| pci.h | ||
| peer.c | ||
| peer.h | ||
| qmi.c | ||
| qmi.h | ||
| reg.c | ||
| reg.h | ||
| rx_desc.h | ||
| trace.c | ||
| trace.h | ||
| wmi.c | ||
| wmi.h | ||