phy: core: Add phy bulk helpers support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest5 patches 15 repliesIn review
- v35 patches 1 replySuperseded
- v24 patches 19 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 3 patches | 4 replies | Superseded |
Changes in v4 from the cover letter
- https://lore.kernel.org/linux-phy/[email protected]/
patch 5:
1. Fix spell error in the document.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | phy: core: Add common helper to add phy phandle device linkdrivers/ | +24 | 0 replies | |
| 2/5 | phy: core: Add common helper for get phy phandle by indexdrivers/ | +30 | 0 replies | |
| 3/5 | phy: core: Add phy bulk data helper functionsdrivers/ include/ | +308 | 10 replies | |
| 4/5 | phy: core: Add managed phy bulk data helper functionsdrivers/ include/ | +92 | 4 replies | |
| 5/5 | doc: phy: Document some bulk helper functionsDocumentation/ | +29 | 1 reply |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Andy Shevchenko |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/5] phy: core: Add phy bulk helpers support
As discussed in [1], some drivers may do not care the difference between phys. Instead, they only need to treat them as a group and operate them together. This means a bulk operation is needed.
Add some bulk helper functions for phy core by referencing the design of clock/reset subsystem. This can relieve the driver owners' life who needs to handle many phys, as well as each phy error reporting.
The example consumer driver is at [2], with the following function used:
- phy_bulk_init
- phy_bulk_exit
- phy_bulk_power_on
- phy_bulk_power_off
- devm_of_phy_bulk_get_all
The devm_phy_bulk_get_all() is also added as a simple wrapper of devm_of_phy_bulk_get_all().
Note: The patch still uses -EOPNOTSUPP for dummy blob. Instead, I send a new patch [3] for fixing the left function.
[1] https://lore.kernel.org/linux-pci/[email protected]/
[2] https://lore.kernel.org/linux-pci/[email protected]/
[3] https://lore.kernel.org/linux-phy/[email protected]/
Changed from v3:
- https://lore.kernel.org/linux-phy/[email protected]/
patch 5:
1. Fix spell error in the document.
Changed from v2:
- https://lore.kernel.org/linux-phy/[email protected]/
patch 1:
1. Add Andy's tag
2. Update comment for phy_add_device_link
patch 2:
1. Add Andy's tag
2. Update comment for changed function
patch 3:
1. Remove all unused function and make the dependency as static things.
2. Update comments for struct phy_bulk_data and left functions patch 4:
1. Remove all unused function and make the dependency as static things. patch 5:
1. Add phy document for these newly added apis.
Changed from v1:
- https://lore.kernel.org/linux-phy/[email protected]/
patch 1:
1. Update document.
patch 2:
1. Fix document format.
2. Fix several document description.
patch 3:
1. Split into two patches: one for non devm helpers, one for devm helpers.
2. All the bulk helper now use unsigned int for counts.
3. Fix multiple the while loop statement.
4. Rename of_phy_get_parent_count() to of_phy_get_count().
5. Fix some 80 line function problems.
6. Use PTR_ERR_OR_ZERO() to simplify the error handle.
7. Fix zero value in the document
8. Use two separate release function for devm helpers.
Inochi Amaoto (5):
phy: core: Add common helper to add phy phandle device link
phy: core: Add common helper for get phy phandle by index
phy: core: Add phy bulk data helper functions
phy: core: Add managed phy bulk data helper functions
doc: phy: Document some bulk helper functions
Documentation/driver-api/phy/phy.rst | 29 ++ drivers/phy/phy-core.c | 416 ++++++++++++++++++++++++--- include/linux/phy/phy.h | 74 +++++ 3 files changed, 483 insertions(+), 36 deletions(-)
--
2.55.0