]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Print the reset reason
authorVladimir Oltean <olteanv@gmail.com>
Tue, 12 Nov 2019 21:22:00 +0000 (23:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Nov 2019 03:53:07 +0000 (19:53 -0800)
commit4dc5743d3e780cc363c494e3a43f2d772b721c13
tree6e2c203fd0270c3d65a5574cd47556954698a58f
parentf8233667531c56b1c7611cff22c74460b2efa3bd
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>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_main.c
drivers/net/dsa/sja1105/sja1105_ptp.c
drivers/net/dsa/sja1105/sja1105_tas.c