diff options
author | Clark Wang <xiaoning.wang@nxp.com> | 2025-08-07 12:08:32 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-08-12 12:01:07 +0200 |
commit | 8ee90742cf29427683294a6a80f1e2b7f4af1cff (patch) | |
tree | 0e2aabcae3a0da3d18912cc5c6a842a096aa7379 /lib/mpi/mpi-add.c | |
parent | 89886abd073489e26614e4d80fb8eb70d3938a0b (diff) |
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: 1b76b2497aba ("net: phy: nxp-c45-tja11xx: simplify .match_phy_device OP")
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Link: https://patch.msgid.link/20250807040832.2455306-1-xiaoning.wang@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions