Skip to content
Commit 3be0d950 authored by Robert Marko's avatar Robert Marko Committed by Paolo Abeni
Browse files

net: phy: qca807x: move interface mode check to .config_init_once



Currently, we are checking whether the PHY package mode matches the
individual PHY interface modes at PHY package probe time, but at that time
we only know the PHY package mode and not the individual PHY interface
modes as of_get_phy_mode() that populates it will only get called once the
netdev to which PHY-s are attached to is being probed and thus this check
will always fail and return -EINVAL.

So, lets move this check to .config_init_once as at that point individual
PHY interface modes should be populated.

Fixes: d1cb613e ("net: phy: qcom: add support for QCA807x PHY Family")
Signed-off-by: default avatarRobert Marko <robimarko@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20240212115043.1725918-1-robimarko@gmail.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent d1d77120
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment