Re: [PATCH net-next] net: phylink: avoid oops during initialisation

2020-08-31 Thread David Miller
From: Russell King Date: Fri, 28 Aug 2020 11:53:53 +0100 > If we intend to use PCS operations, mac_pcs_get_state() will not be > implemented, so will be NULL. If we also intend to register the PCS > operations in mac_prepare() or mac_config(), then this leads to an > attempt to call NULL function

[PATCH net-next] net: phylink: avoid oops during initialisation

2020-08-28 Thread Russell King
If we intend to use PCS operations, mac_pcs_get_state() will not be implemented, so will be NULL. If we also intend to register the PCS operations in mac_prepare() or mac_config(), then this leads to an attempt to call NULL function pointer during phylink_start(). Avoid this, but we must report the