Re: [PATCH] usb: chipidea: scope ci_ulpi_resume() to CONFIG_PM

From: Greg KH

Date: Wed Mar 11 2026 - 10:19:07 EST


On Mon, Mar 09, 2026 at 08:45:23AM +0000, Pengpeng Hou wrote:
> In current linux.git (1954c4f01220), ci_ulpi_resume() is defined

No need to reference the tree like this, that's not the normal way.

> and declared unconditionally. However, its only in-tree caller is within
> ci_controller_resume() in drivers/usb/chipidea/core.c, which is already
> guarded by #ifdef CONFIG_PM.
>
> Match the helper scope to its caller by wrapping the definition in
> CONFIG_PM and providing a no-op stub in the header. This fixes the
> config-scope mismatch and avoids unnecessary code inclusion when
> power management is disabled.

How much does this actually save? Why is only resume() needed to be
#ifdef here, not suspend?

thanks,

greg k-h