diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2015-10-22 14:31:23 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-10-12 22:14:30 +0100 |
commit | 5aa383b42558979c16343db0c778de168c47d6eb (patch) | |
tree | 5b94ac7f14d8e7ab2880e527390c40df713e05fd /drivers/net/dsa/mv88e6xxx/chip.c | |
parent | bbf5c979011a099af5dc76498918ed7df445635b (diff) |
net: dsa: mv88e6xxx: add debugfs interface
Add a debugfs directory named mv88e6xxx.X where X is the DSA switch
index. Mount the debugfs file system with:
# mount -t debugfs none /sys/kernel/debug
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
[Modified by rmk for current kernels.]
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/chip.c')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index f0dbc05e30a4..9cf1bb29d8b9 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -3075,8 +3075,13 @@ out: return err; } +#include "mv88e6xxx_debugfs.c" + static void mv88e6xxx_teardown(struct dsa_switch *ds) { + struct mv88e6xxx_chip *chip = ds->priv; + + mv88e6xxx_remove_debugfs(chip); mv88e6xxx_teardown_devlink_params(ds); dsa_devlink_resources_unregister(ds); } @@ -3194,6 +3199,8 @@ static int mv88e6xxx_setup(struct dsa_switch *ds) if (err) goto unlock; + mv88e6xxx_init_debugfs(chip); + unlock: mv88e6xxx_reg_unlock(chip); |