Re: [PATCH v5 4/8] phy: core: Add phy bulk data helper functions
From: Vladimir Oltean
Date: Wed Nov 25 2026 - 10:20:48 EST
On Wed, Nov 25, 2026 at 12:36:35PM +0800, Inochi Amaoto wrote:
> Add several helper functions that allow drivers to get several phy
> consumers in one operation. If any of the phy cannot be acquired then
> any phys that were got will be put before returning to the caller.
>
> This can relieve the driver owners' life who needs to handle many phys,
> as well as each phy error reporting.
>
> Signed-off-by: Inochi Amaoto <inochiama@xxxxxxxxx>
> ---
Transient build warning due to improper patch splitting, please fix.
Documentation/.renames.txt: warning: ignored by one of the .gitignore files
../drivers/phy/phy-core.c:1202:12: warning: unused function 'phy_bulk_get' [-Wunused-function]
1202 | static int phy_bulk_get(struct device *dev, int num_phys,
| ^~~~~~~~~~~~
../drivers/phy/phy-core.c:1242:12: warning: unused function 'of_phy_bulk_get_all' [-Wunused-function]
1242 | static int of_phy_bulk_get_all(struct device_node *np,
| ^~~~~~~~~~~~~~~~~~~
../drivers/phy/phy-core.c:1274:13: warning: unused function 'phy_bulk_put_all' [-Wunused-function]
1274 | static void phy_bulk_put_all(struct device *dev, int num_phys,
| ^~~~~~~~~~~~~~~~
3 warnings generated.