Re: [PATCH v10 01/11] usb: typec: Add notifier functions

From: Greg Kroah-Hartman

Date: Fri Nov 21 2025 - 09:18:34 EST


On Thu, Nov 20, 2025 at 10:23:33AM +0800, Chaoyi Chen wrote:
> From: Chaoyi Chen <chaoyi.chen@xxxxxxxxxxxxxx>
>
> Some other part of kernel may want to know the event of typec bus.

Be specific, WHAT part of the kernel will need to know this?

And why a new notifier, why not just use the existing notifiers that you
already have? And what is this going to be used for?

Notifiers are a pain, and should almost never be added. Use real
function calls instead.

thanks,

greg k-h