diff options
author | Saravana Kannan <saravanak@google.com> | 2021-09-15 19:28:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-28 09:48:48 +0200 |
commit | ebd6823af378c7d91f80cbe83ce07b5f166744e4 (patch) | |
tree | 48f4cc7ce24c25119214a9769d4d56bd01e73874 /drivers/base | |
parent | driver core: Create __fwnode_link_del() helper function (diff) | |
download | linux-ebd6823af378c7d91f80cbe83ce07b5f166744e4.tar.xz linux-ebd6823af378c7d91f80cbe83ce07b5f166744e4.zip |
driver core: Add debug logs when fwnode links are added/deleted
This will help with debugging fw_devlink issues.
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20210915172808.620546-4-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index e215220545f8..15986cc2fe5e 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -95,6 +95,8 @@ int fwnode_link_add(struct fwnode_handle *con, struct fwnode_handle *sup) list_add(&link->s_hook, &sup->consumers); list_add(&link->c_hook, &con->suppliers); + pr_debug("%pfwP Linked as a fwnode consumer to %pfwP\n", + con, sup); out: mutex_unlock(&fwnode_link_lock); @@ -109,6 +111,8 @@ out: */ static void __fwnode_link_del(struct fwnode_link *link) { + pr_debug("%pfwP Dropping the fwnode link to %pfwP\n", + link->consumer, link->supplier); list_del(&link->s_hook); list_del(&link->c_hook); kfree(link); |