]> www.infradead.org Git - users/dwmw2/linux.git/commit
wifi: ath9k: use unmanaged PCI functions in ath9k_pci_owl_loader
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 9 Apr 2024 20:28:27 +0000 (22:28 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 1 Aug 2024 14:58:47 +0000 (17:58 +0300)
commitaa0d7643c8dd1a0483189499ea2f9492d74f4970
treeeacf841f6b2b436e38a82718899dec66b34d49b9
parent04aee7a847795ff64d4a5fab285dd2764ff22b85
wifi: ath9k: use unmanaged PCI functions in ath9k_pci_owl_loader

Only managed PCI resource in the driver is the iomapped bar. However the bar
is unmapped in the same function. Therefore using the device-managed
versions just causes overhead, w/o any benefit. Once this is switched to the
non-managed versions, there's nothing left to be managed for
pcim_enable_device(). Therefore we can reduce overhead here too and switch to
the non-managed version as well. This includes removing the no longer needed
call to pcim_pin_device().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://patch.msgid.link/3b46f6c7-4372-4cc9-9a7c-2c1c06d29324@gmail.com
drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c