Re: [PATCH v5 02/14] driver core: Add dma_cleanup callback in bus_type

From: Greg Kroah-Hartman
Date: Mon Feb 14 2022 - 05:49:50 EST


On Tue, Jan 04, 2022 at 02:08:36AM -0800, Christoph Hellwig wrote:
> All these bus callouts still looks horrible and just create tons of
> boilerplate code.

I can't remember anymore what one vs. the other looks like. Having an
explicit "opt-in" for a bus is good, in that no code breaks and only if
you want to use this do you have to set the flag. Why do you want it to
be "always"?

thanks,

greg k-h