]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: create one debugfs dir per net-device
authorMathieu Olivari <mathieu@codeaurora.org>
Sat, 23 May 2015 02:03:29 +0000 (19:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 21:38:23 +0000 (17:38 -0400)
commitaa0899458e298560b376d00de32acbc7a86a46b4
tree0ba40de0a9fe79eaa992746efb300ef4f0c0dbb8
parentbcdade9709699cf383245899ad5a944133a0fed1
net: stmmac: create one debugfs dir per net-device

stmmac DebugFS entries are currently global to the driver. As a result,
having more than one stmmac device in the system creates the following
error:
* ERROR stmmaceth, debugfs create directory failed
* stmmac_hw_setup: failed debugFS registration

This also results in being able to access the debugfs information for
the first registered device only.

This patch changes the debugfs structure to have one sub-directory per
net-device. Files under "/sys/kernel/debug/stmmaceth" will now show-up
under /sys/kernel/debug/stmmaceth/ethN/.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c