[PATCH 0/2] PCI: mvebu: Add support for unbinding and unloading driver
From: Pali Rohár
Date: Fri Nov 26 2021 - 10:06:39 EST
This patch series add support for unbinding device from pci-mvebu driver,
allow to compile pci-mvebu.c as kernel module pci-mvebu.ko and allow to
rmmod this module.
This patch series depends on another patch series which converts
pci-mvebu.c driver to use devm_pci_remap_iospace() function:
"arm: ioremap: Remove pci_ioremap_io() and mvebu_pci_host_probe()":
https://lore.kernel.org/linux-pci/20211124154116.916-1-pali@xxxxxxxxxx/
Without usage of devm_pci_remap_iospace() it is not possible to bind
device to pci-mvebu driver again after unbinding it.
Tested on Turris Omnia - Armada 385 board.
Pali Rohár (2):
bus: mvebu-mbus: Export symbols for public API window functions
PCI: mvebu: Add support for compiling driver as module
drivers/bus/mvebu-mbus.c | 5 ++
drivers/pci/controller/Kconfig | 2 +-
drivers/pci/controller/pci-mvebu.c | 91 +++++++++++++++++++++++++-----
3 files changed, 82 insertions(+), 16 deletions(-)
--
2.20.1