ice_dpll_pin_notify() ignored the pin notifications that the driver itself caused when it registered the zl3073x pins with its TXC and TSPLL DPLLs. The driver does not do that any more, and the recovered clock pin that it registers under a zl3073x pin has no firmware node, so no notification caused by the driver matches a watched firmware node. Remove the filter. Tested on a GNR-D platform with a dual NAC E825 and a ZL80132B DPLL, with the rest of the series. Signed-off-by: Ivan Vecera --- drivers/net/ethernet/intel/ice/ice_dpll.c | 34 ----------------------- 1 file changed, 34 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_dpll.c b/drivers/net/ethernet/intel/ice/ice_dpll.c index 15b5f4a15af915..ccbe34abf74661 100644 --- a/drivers/net/ethernet/intel/ice/ice_dpll.c +++ b/drivers/net/ethernet/intel/ice/ice_dpll.c @@ -3098,32 +3098,6 @@ static u64 ice_generate_dpll_clock_id(struct ice_pf *pf, struct ice_dpll *d, return pf->dplls.clock_id; } -/** - * ice_dpll_is_own_dpll_clock_id - check if clock_id belongs to this pf's DPLLs - * @pf: board private structure - * @clock_id: clock_id from a DPLL notification - * - * Match info->src_clock_id from a DPLL pin notification against any DPLL - * device this PF has registered. Used to suppress self-notifications - * generated as a side effect of our own dpll_pin_register() and - * dpll_pin_unregister() calls on the fwnode-backed SYNCE and TIME_REF pins, - * whose DPLLs (TXC and TSPLL) use MAC-derived clock_ids on E825. - * - * Return: true if clock_id matches one of this PF's registered DPLL devices. - */ -static bool ice_dpll_is_own_dpll_clock_id(struct ice_pf *pf, u64 clock_id) -{ - if (clock_id == pf->dplls.clock_id) - return true; - if (pf->hw.mac_type != ICE_MAC_GENERIC_3K_E825) - return false; - if (clock_id == ice_generate_dpll_clock_id(pf, &pf->dplls.txc, - DPLL_TYPE_GENERIC)) - return true; - return clock_id == ice_generate_dpll_clock_id(pf, &pf->dplls.tspll, - DPLL_TYPE_GENERIC); -} - /** * ice_dpll_pin_ntf - notify pin change including any SW pin wrappers * @dplls: pointer to dplls struct @@ -3877,14 +3851,6 @@ static int ice_dpll_pin_notify(struct notifier_block *nb, unsigned long action, if (pin->fwnode != info->fwnode) return NOTIFY_DONE; /* Not this pin */ - /* Ignore notifications that are a side effect of internal pin - * registration/unregistration calls. E825 uses per-device - * MAC-derived clock_ids for the TXC and TSPLL generic DPLLs, so - * info->src_clock_id may not equal pf->dplls.clock_id. - */ - if (ice_dpll_is_own_dpll_clock_id(pin->pf, info->src_clock_id)) - return NOTIFY_DONE; - work = kzalloc_obj(*work); if (!work) return NOTIFY_DONE; -- 2.56.1