On 10/4/19 10:55 AM, Johannes Berg wrote: > On Thu, 2019-10-03 at 17:56 +0200, Hauke Mehrtens wrote: >> The ath9k owl driver uses pci_lock_rescan_remove() and >> pci_unlock_rescan_remove() which was added in kernel 3.14, only compile >> it on kernel >= 3.14. > > This confuses me a bit - isn't pci_stop_and_remove_bus_device() the more > important part of the API? > > johannes > Hi Johannes, pci_stop_and_remove_bus_device() is available on kernel 3.10, but this code does a pci_uock_rescan_remove() and pci_unlock_rescan_remove() around it and this was added in kernel 3.14, see here: https://git.kernel.org/linus/9d16947b75831acd317ab9a53e0e94d160731d33 As this is currently only used for the ath9k owl loader and only causes problems on kernel < 3.14 I did not care much about this. Hauke