Skip to content
Commit 888a44f2 authored by Vishal Badole's avatar Vishal Badole Committed by Greg Kroah-Hartman
Browse files

clk: Show active consumers of clocks in debugfs



[ Upstream commit dcce5cc7 ]

This feature lists the clock consumer's name and respective connection
id. Using this feature user can easily check that which user has
acquired and enabled a particular clock.

Usage:
>> cat /sys/kernel/debug/clk/clk_summary
                      enable  prepare  protect
                                                                          duty  hardware                            Connection
   clock               count    count    count    rate   accuracy phase  cycle    enable   consumer                         Id
------------------------------------------------------------------------------------------------------------------------------
 clk_mcasp0_fixed         0        0        0    24576000          0      0  50000     Y   deviceless                     of_clk_get_from_provider
                                                                                           deviceless                     no_connection_id
    clk_mcasp0            0        0        0    24576000          0      0  50000     N      simple-audio-card,cpu           no_connection_id
                                                                                              deviceless                      no_connection_id

Co-developed-by: default avatarChinmoy Ghosh <chinmoyghosh2001@gmail.com>
Signed-off-by: default avatarChinmoy Ghosh <chinmoyghosh2001@gmail.com>
Co-developed-by: default avatarMintu Patel <mintupatel89@gmail.com>
Signed-off-by: default avatarMintu Patel <mintupatel89@gmail.com>
Co-developed-by: default avatarVimal Kumar <vimal.kumar32@gmail.com>
Signed-off-by: default avatarVimal Kumar <vimal.kumar32@gmail.com>
Signed-off-by: default avatarVishal Badole <badolevishal1116@gmail.com>
Link: https://lore.kernel.org/r/1669569799-8526-1-git-send-email-badolevishal1116@gmail.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Stable-dep-of: 9d1e795f ("clk: Get runtime PM before walking tree for clk_summary")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 60ff482c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment