diff options
author | Robert Marko <robimarko@gmail.com> | 2024-02-12 14:49:34 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-02-15 13:27:53 +0300 |
commit | 3be0d950b62852a693182cb678948f481de02825 (patch) | |
tree | 904e803ea31c47f32f15e5f52211a45e7f11e8c0 /mm/Kconfig.debug | |
parent | d1d77120bc2867b3e449e07ee656a26b2fb03d1e (diff) | |
download | linux-3be0d950b62852a693182cb678948f481de02825.tar.xz |
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: d1cb613efbd3 ("net: phy: qcom: add support for QCA807x PHY Family")
Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20240212115043.1725918-1-robimarko@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'mm/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions