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)
commit2eea1fa82f681b484acb8e5a0d213b64a5c5574c
tree6e2c203fd0270c3d65a5574cd47556954698a58f
parentd438945ae565e7959d11951c4227c224de7595e1
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