[PATCH v3 1/8] driver core: bus: add irq_get_affinity callback to bus_type
Christoph Hellwig
hch at lst.de
Wed Nov 13 06:30:39 PST 2024
On Wed, Nov 13, 2024 at 02:54:23PM +0100, Greg Kroah-Hartman wrote:
> bus types are good to set it at a bus level so you don't have to
> explicitly set it at each-and-every-driver. Depends on what you want
> this to be, if it is a "all drivers of this bus type will have the same
> callback" then put it on the bus. otherwise if you are going to
> mix/match on a same bus, then put it in the driver structure.
... and that is exactly the case here. The driver itself has no business
being involved.
More information about the Linux-nvme
mailing list