Commit 2babfdfe authored by Lucas De Marchi's avatar Lucas De Marchi
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: default avatarTejas Upadhyay <tejas.upadhyay@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250222001051.3012936-4-lucas.demarchi@intel.com


Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
parent 96d01ef3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;