mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
drivers: base: component: Add debug message for unbind
Like when binding component, add a debug message to the unbinding case to make it easy to track the lifecycle. This also includes the component pointer since that is used to open a group in devres, making it easier to track the resources. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250222001051.3012936-4-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
This commit is contained in:
@@ -574,6 +574,9 @@ static void component_unbind(struct component *component,
|
||||
{
|
||||
WARN_ON(!component->bound);
|
||||
|
||||
dev_dbg(adev->parent, "unbinding %s component %p (ops %ps)\n",
|
||||
dev_name(component->dev), component, component->ops);
|
||||
|
||||
if (component->ops && component->ops->unbind)
|
||||
component->ops->unbind(component->dev, adev->parent, data);
|
||||
component->bound = false;
|
||||
|
||||
Reference in New Issue
Block a user