OSDN Git Service

component: add debugfs support
authorMaciej Purski <m.purski@samsung.com>
Fri, 1 Dec 2017 13:23:16 +0000 (14:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Dec 2017 15:51:11 +0000 (16:51 +0100)
commit59e73854b5fd1213fe90ae993d98c759786c3712
tree7aeff8061dd2d355bb084d4279bf526ea265546b
parent0a006e864edc077451384bd28ac9be36e8d172e5
component: add debugfs support

Currently there is no information in any vfs about which devices
a master component consists of, what makes debugging hard if
one of the component devices fails to register.

Add 'device_component' directory to debugfs. Create a new file for each
component master, when it has been added. Remove it on a master
deletion. Show a list of devices required by the given master and their
status (registered or not). This provides an easy way to check, which
device has failed to register if the given master device is not
available in the system.

Signed-off-by: Maciej Purski <m.purski@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/component.c