diff options
author | Vladimir Oltean <olteanv@gmail.com> | 2019-11-12 22:22:00 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-13 04:53:07 +0100 |
commit | 2eea1fa82f681b484acb8e5a0d213b64a5c5574c (patch) | |
tree | 6e2c203fd0270c3d65a5574cd47556954698a58f /drivers/net/dsa/sja1105/sja1105_tas.c | |
parent | Merge branch 'Implement-get_link_ksettings-for-VXLAN-and-bridge' (diff) | |
download | linux-2eea1fa82f681b484acb8e5a0d213b64a5c5574c.tar.xz linux-2eea1fa82f681b484acb8e5a0d213b64a5c5574c.zip |
net: dsa: sja1105: Print the reset reason
Sometimes it can be quite opaque even for me why the driver decided to
reset the switch. So instead of adding dump_stack() calls each time for
debugging, just add a reset reason to sja1105_static_config_reload
calls which gets printed to the console.
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/dsa/sja1105/sja1105_tas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/dsa/sja1105/sja1105_tas.c b/drivers/net/dsa/sja1105/sja1105_tas.c index 33eca6a82ec5..d846fb5c4e4d 100644 --- a/drivers/net/dsa/sja1105/sja1105_tas.c +++ b/drivers/net/dsa/sja1105/sja1105_tas.c @@ -352,7 +352,7 @@ int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port, if (rc < 0) return rc; - return sja1105_static_config_reload(priv); + return sja1105_static_config_reload(priv, SJA1105_SCHEDULING); } /* The cycle time extension is the amount of time the last cycle from @@ -400,7 +400,7 @@ int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port, if (rc < 0) return rc; - return sja1105_static_config_reload(priv); + return sja1105_static_config_reload(priv, SJA1105_SCHEDULING); } void sja1105_tas_setup(struct dsa_switch *ds) |