diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2025-02-21 16:10:43 -0800 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2025-02-25 14:29:05 -0800 |
commit | 2babfdfe2e9bd0b6aad30684c92b08c57d476d88 (patch) | |
tree | 1a9429de17388b6060b71a94ff910e78821f3f74 /drivers/base/component.c | |
parent | 96d01ef3b106799dc6fcecfe03ceb0ccc14a2d54 (diff) |
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>
Diffstat (limited to 'drivers/base/component.c')
-rw-r--r-- | drivers/base/component.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/component.c b/drivers/base/component.c index 741497324d78..5d10600bbc25 100644 --- a/drivers/base/component.c +++ b/drivers/base/component.c @@ -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; |