Thread (16 messages) flat view 16 messages, 3 authors, 2d ago

Re: [PATCH net v4 1/4] net: phy: add PHY package locking helpers

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-08-07 13:37:13

On Fri, Aug 07, 2026 at 03:07:26PM +0800, xuanqiang.luo@linux.dev wrote:
From: Xuanqiang Luo <redacted>

The PHY package API provides private data shared by all PHYs in a
package. Drivers are responsible for synchronizing access to this data,
but the API does not provide a lock for that purpose.

Add phy_package_lock() and phy_package_unlock() for drivers to serialize
access to package-private data, including its initialization.

Signed-off-by: Xuanqiang Luo <redacted>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help