Re: [PATCH net v4 1/4] net: phy: add PHY package locking helpers
Andrew Lunn <[email protected]>
| Newsgroups | org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Aug 07, 2026 at 03:07:26PM +0800, [email protected] wrote: > From: Xuanqiang Luo <[email protected]> > > 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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Andrew