mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 00/10] phy: Set missing .owner = THIS_MODULE in phy_ops
@ 2026-11-30 22:54 Ian Rogers
  2026-11-30 22:54 ` [PATCH 01/10] phy: allwinner: phy-sun6i-mipi-dphy: Set .owner = THIS_MODULE Ian Rogers
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Ian Rogers @ 2026-11-30 22:54 UTC (permalink / raw)
  To: Vinod Koul
  Cc: Neil Armstrong, Manivannan Sadhasivam, Nathan Chancellor,
	linux-phy, llvm, linux-kernel, Ian Rogers

phy_get() and of_phy_get() call try_module_get(phy->ops->owner) to pin
the PHY provider module while a PHY is in use, and of_phy_put() calls
module_put(phy->ops->owner). Ten modular drivers under drivers/phy/ omit
.owner = THIS_MODULE in their const struct phy_ops definitions, leaving
phy->ops->owner NULL.

Split per driver to simplify per-vendor review and stable backporting.

Tooling note: Found using Clang's require_explicit_initialization
attribute; an AI coding assistant helped audit call sites, verify Fixes
commits, and draft the changelogs. All ten drivers were build-tested as
modules (-DMODULE) with LLVM=1.

Ian Rogers (10):
  phy: allwinner: phy-sun6i-mipi-dphy: Set .owner = THIS_MODULE
  phy: cadence: cdns-dphy-rx: Set .owner = THIS_MODULE
  phy: cadence: cdns-dphy: Set .owner = THIS_MODULE
  phy: eyeq5-eth: Set .owner = THIS_MODULE
  phy: google: usb: Set .owner = THIS_MODULE
  phy: qcom: ipq4019-usb: Set .owner = THIS_MODULE
  phy: renesas: r8a779f0-ether-serdes: Set .owner = THIS_MODULE
  phy: starfive: jh7110-dphy-rx: Set .owner = THIS_MODULE
  phy: sunplus: usb2: Set .owner = THIS_MODULE
  phy: tegra: mphy: Set .owner = THIS_MODULE

 drivers/phy/allwinner/phy-sun6i-mipi-dphy.c | 1 +
 drivers/phy/cadence/cdns-dphy-rx.c          | 1 +
 drivers/phy/cadence/cdns-dphy.c             | 1 +
 drivers/phy/phy-eyeq5-eth.c                 | 1 +
 drivers/phy/phy-google-usb.c                | 2 ++
 drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c | 2 ++
 drivers/phy/renesas/r8a779f0-ether-serdes.c | 1 +
 drivers/phy/starfive/phy-jh7110-dphy-rx.c   | 1 +
 drivers/phy/sunplus/phy-sunplus-usb2.c      | 1 +
 drivers/phy/tegra/phy-tegra-mphy.c          | 2 ++
 10 files changed, 13 insertions(+)


base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
-- 
2.56.1.839.g22a8290db9-goog


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-11-30 22:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 22:54 [PATCH 00/10] phy: Set missing .owner = THIS_MODULE in phy_ops Ian Rogers
2026-11-30 22:54 ` [PATCH 01/10] phy: allwinner: phy-sun6i-mipi-dphy: Set .owner = THIS_MODULE Ian Rogers
2026-11-30 22:54 ` [PATCH 02/10] phy: cadence: cdns-dphy-rx: " Ian Rogers
2026-11-30 22:54 ` [PATCH 03/10] phy: cadence: cdns-dphy: " Ian Rogers
2026-11-30 22:54 ` [PATCH 04/10] phy: eyeq5-eth: " Ian Rogers
2026-11-30 22:54 ` [PATCH 05/10] phy: google: usb: " Ian Rogers
2026-11-30 22:54 ` [PATCH 06/10] phy: qcom: ipq4019-usb: " Ian Rogers
2026-11-30 22:54 ` [PATCH 07/10] phy: renesas: r8a779f0-ether-serdes: " Ian Rogers
2026-11-30 22:54 ` [PATCH 08/10] phy: starfive: jh7110-dphy-rx: " Ian Rogers
2026-11-30 22:54 ` [PATCH 09/10] phy: sunplus: usb2: " Ian Rogers
2026-11-30 22:54 ` [PATCH 10/10] phy: tegra: mphy: " Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®