Merge branch 'net-phy-dp83640-fix-shared-clock-lifetime-and-probe-error-cleanup'

Xuanqiang Luo says:

====================
net: phy: dp83640: fix shared clock lifetime and probe error cleanup

The DP83640 driver shares one PTP clock between all PHYs on the same MII
bus.

Its driver-local clock lookup and removal scheme can leak the shared clock
on probe failure or free it while another probe is acquiring it.

This series moves the shared clock to the PHY package infrastructure.

Patch 1 adds PHY package locking helpers.

Patch 2 embeds the pin configuration in the shared clock.

Patch 3 clears per-PHY state when PTP clock registration fails.

Patch 4 fixes the shared clock lifetime using the PHY package
infrastructure.
====================

Link: https://patch.msgid.link/20260811151345.73582-1-xuanqiang.luo@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Jakub Kicinski 2026-08-13 17:30:22 -07:00
commit a1ca9d0abe
4 changed files with 61 additions and 96 deletions