On Mon, Sep 22, 2025 at 11:13:39AM -0700, Christoph Hellwig wrote:
Controller drivers are a special case I guess, but I'd rather still not open it up to any random driver.
I don't really see why this particular thing should develop restrictions beyond "can it work in modules?", but if you have an idea for how to do that reasonably, my ears are open.
When did we allow modular controller drivers anyway?
An approximate count:
$ git grep tristate ./drivers/pci/controller/ | wc -l 39
There's been a steady trickle of module-related changes over the years. And several modular controller drivers predate the drivers/pci/controller/ creation in 2018 at commit 6e0832fa432e ("PCI: Collect all native drivers under drivers/pci/controller/").
That feels like a somewhat bad idea, too.
Any particular reason behind that feeling? Most other bus frameworks I'm familiar with support modular drivers.
Brian