Skip to content

phy: core: Fix bugs for several APIs and simplify an API

Zijun Hu linux-phy lkml oe-kbuild-all stable 6 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20241020-phy_core_fix-e3ad65db98f7

Versions newest first

  1. v6 Latest6 patches 2 repliesApplied
  2. v56 patches 0 repliesSuperseded
  3. v46 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v36 patches0 repliesSuperseded
v26 patches10 repliesSuperseded
v16 patches3 repliesSuperseded

Changes in v6 from the cover letter

- Use non-error path solution for patch 6/6.
- Remove stable tag for both patch 2/6 and 3/6.
- Link to v5: https://lore.kernel.org/r/[email protected]

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/6phy: core: Fix that API devm_phy_put() fails to release the phydrivers/phy/phy-core.c+1 -10 replies
2/6phy: core: Fix that API devm_of_phy_provider_unregister() fails to unregister the phy providerdrivers/phy/phy-core.c+3 -30 replies
3/6phy: core: Fix that API devm_phy_destroy() fails to destroy the phydrivers/phy/phy-core.c+1 -10 replies
4/6phy: core: Fix an OF node refcount leakage in _of_phy_get()drivers/phy/phy-core.c+5 -20 replies
5/6phy: core: Fix an OF node refcount leakage in of_phy_provider_lookup()drivers/phy/phy-core.c+3 -10 replies
6/6phy: core: Simplify API of_phy_simple_xlate() implementationdrivers/phy/phy-core.c+8 -150 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchJohan Hovold
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/6] phy: core: Fix bugs for several APIs and simplify an API

This patch series is to fix bugs for below APIs:

devm_phy_put()
devm_of_phy_provider_unregister()
devm_phy_destroy()
phy_get()
of_phy_get()
devm_phy_get()
devm_of_phy_get()
devm_of_phy_get_by_index()

And simplify below API:

of_phy_simple_xlate().

---
Changes in v6:
- Use non-error path solution for patch 6/6.
- Remove stable tag for both patch 2/6 and 3/6.
- Link to v5: https://lore.kernel.org/r/[email protected]

Changes in v5:
- s/Fixed/Fix s/case/cause for commit message based on Johan's reminder
- Remove unrelated change about code style for patch 4/6 suggested by Johan
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Correct commit message for patch 6/6
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Correct commit message based on Johan's suggestions for patches 1/6-3/6.
- Use goto label solution suggested by Johan for patch 4/6, also correct commit message and remove the inline comment for it.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Correct title, commit message, and inline comments.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Zijun Hu (6):
phy: core: Fix that API devm_phy_put() fails to release the phy
phy: core: Fix that API devm_of_phy_provider_unregister() fails to unregister the phy provider
phy: core: Fix that API devm_phy_destroy() fails to destroy the phy
phy: core: Fix an OF node refcount leakage in _of_phy_get()
phy: core: Fix an OF node refcount leakage in of_phy_provider_lookup()
phy: core: Simplify API of_phy_simple_xlate() implementation

 drivers/phy/phy-core.c | 44 +++++++++++++++++++++-----------------------
 1 file changed, 21 insertions(+), 23 deletions(-)

---
base-commit: 9d23e48654620fdccfcc74cc2cef04eaf7353d07
change-id: 20241020-phy_core_fix-e3ad65db98f7

Best regards,

Signature · 1 line
Zijun Hu <[email protected]>