linux_dsm_epyc7002/drivers/net/dsa/sja1105
Vladimir Oltean 6cb0abbdf9 net: dsa: sja1105: Really fix panic on unregistering PTP clock
The IS_ERR_OR_NULL(priv->clock) check inside
sja1105_ptp_clock_unregister() is preventing cancel_delayed_work_sync
from actually being run.

Additionally, sja1105_ptp_clock_unregister() does not actually get run,
when placed in sja1105_remove(). The DSA switch gets torn down, but the
sja1105 module does not get unregistered. So sja1105_ptp_clock_unregister
needs to be moved to sja1105_teardown, to be symmetrical with
sja1105_ptp_clock_register which is called from the DSA sja1105_setup.

It is strange to fix a "fixes" patch, but the probe failure can only be
seen when the attached PHY does not respond to MDIO (issue which I can't
pinpoint the reason to) and it goes away after I power-cycle the board.
This time the patch was validated on a failing board, and the kernel
panic from the fixed commit's message can no longer be seen.

Fixes: 29dd908d35 ("net: dsa: sja1105: Cancel PTP delayed work on unregister")
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-08-06 14:37:02 -07:00
..
Kconfig net: dsa: sja1105: fix ptp link error 2019-06-17 16:25:29 -07:00
Makefile net: dsa: sja1105: Build PTP support in main DSA driver 2019-06-27 11:03:21 -07:00
sja1105_clocking.c net: dsa: sja1105: Add RGMII delay support for P/Q/R/S chips 2019-06-09 20:06:54 -07:00
sja1105_dynamic_config.c net: dsa: sja1105: Use the LOCKEDS bit for SJA1105 E/T as well 2019-08-06 14:37:02 -07:00
sja1105_dynamic_config.h net: dsa: sja1105: Plug in support for TCAM searches via the dynamic interface 2019-06-04 11:49:19 -07:00
sja1105_ethtool.c net: dsa: sja1105: Fix status initialization in sja1105_get_ethtool_stats 2019-05-07 12:20:46 -07:00
sja1105_main.c net: dsa: sja1105: Really fix panic on unregistering PTP clock 2019-08-06 14:37:02 -07:00
sja1105_ptp.c net: dsa: sja1105: Really fix panic on unregistering PTP clock 2019-08-06 14:37:02 -07:00
sja1105_ptp.h net: dsa: sja1105: Add logic for TX timestamping 2019-06-08 15:20:40 -07:00
sja1105_spi.c net: dsa: sja1105: Build PTP support in main DSA driver 2019-06-27 11:03:21 -07:00
sja1105_static_config.c net: dsa: sja1105: Make P/Q/R/S learn MAC addresses 2019-06-27 11:03:21 -07:00
sja1105_static_config.h net: dsa: sja1105: Populate is_static for FDB entries on P/Q/R/S 2019-06-27 11:03:21 -07:00
sja1105.h net: dsa: sja1105: Add RGMII delay support for P/Q/R/S chips 2019-06-09 20:06:54 -07:00