Commit 8ee90742 authored by Clark Wang's avatar Clark Wang Committed by Paolo Abeni
Browse files

net: phy: nxp-c45-tja11xx: fix the PHY ID mismatch issue when using C45



TJA1103/04/20/21 support both C22 and C45 accessing methods.

The TJA11xx driver has implemented the match_phy_device() API.
However, it does not handle the C45 ID. If C45 was used to access
TJA11xx, match_phy_device() would always return false due to
phydev->phy_id only used by C22 being empty, resulting in the
generic phy driver being used for TJA11xx PHYs.

Therefore, check phydev->c45_ids.device_ids[MDIO_MMD_PMAPMD] when
using C45.

Fixes: 1b76b249 ("net: phy: nxp-c45-tja11xx: simplify .match_phy_device OP")
Signed-off-by: default avatarClark Wang <xiaoning.wang@nxp.com>
Link: https://patch.msgid.link/20250807040832.2455306-1-xiaoning.wang@nxp.com


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