From: Ian Rogers <irogers@google.com>
To: Vinod Koul <vkoul@kernel.org>
Cc: Neil Armstrong <neil.armstrong@linaro.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Nathan Chancellor <nathan@kernel.org>,
linux-phy@lists.infradead.org, llvm@lists.linux.dev,
linux-kernel@vger.kernel.org, Ian Rogers <irogers@google.com>
Subject: [PATCH 00/10] phy: Set missing .owner = THIS_MODULE in phy_ops
Date: Mon, 30 Nov 2026 14:54:16 -0800 [thread overview]
Message-ID: <20261130225428.99361-1-irogers@google.com> (raw)
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
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
WARNING: multiple messages have this Message-ID (diff)
From: Ian Rogers <irogers@google.com>
To: Vinod Koul <vkoul@kernel.org>
Cc: Neil Armstrong <neil.armstrong@linaro.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Nathan Chancellor <nathan@kernel.org>,
linux-phy@lists.infradead.org, llvm@lists.linux.dev,
linux-kernel@vger.kernel.org, Ian Rogers <irogers@google.com>
Subject: [PATCH 00/10] phy: Set missing .owner = THIS_MODULE in phy_ops
Date: Mon, 30 Nov 2026 14:54:16 -0800 [thread overview]
Message-ID: <20261130225428.99361-1-irogers@google.com> (raw)
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
next reply other threads:[~2026-11-30 22:54 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 22:54 Ian Rogers [this message]
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 ` Ian Rogers
2026-12-01 5:16 ` Jernej Škrabec
2026-12-01 5:16 ` Jernej Škrabec
2026-11-30 22:54 ` [PATCH 02/10] phy: cadence: cdns-dphy-rx: " Ian Rogers
2026-11-30 22:54 ` Ian Rogers
2026-11-30 22:54 ` [PATCH 03/10] phy: cadence: cdns-dphy: " Ian Rogers
2026-11-30 22:54 ` Ian Rogers
2026-11-30 22:54 ` [PATCH 04/10] phy: eyeq5-eth: " Ian Rogers
2026-11-30 22:54 ` Ian Rogers
2026-12-01 10:25 ` Théo Lebrun
2026-12-01 10:25 ` Théo Lebrun
2026-11-30 22:54 ` [PATCH 05/10] phy: google: usb: " Ian Rogers
2026-11-30 22:54 ` Ian Rogers
2026-11-30 22:54 ` [PATCH 06/10] phy: qcom: ipq4019-usb: " Ian Rogers
2026-11-30 22:54 ` Ian Rogers
2026-12-01 9:38 ` Konrad Dybcio
2026-12-01 9:38 ` Konrad Dybcio
2026-11-30 22:54 ` [PATCH 07/10] phy: renesas: r8a779f0-ether-serdes: " Ian Rogers
2026-11-30 22:54 ` Ian Rogers
2026-11-30 22:54 ` [PATCH 08/10] phy: starfive: jh7110-dphy-rx: " Ian Rogers
2026-11-30 22:54 ` Ian Rogers
2026-12-01 1:24 ` 回复: " Changhuang Liang
2026-12-01 1:24 ` Changhuang Liang
2026-11-30 22:54 ` [PATCH 09/10] phy: sunplus: usb2: " Ian Rogers
2026-11-30 22:54 ` Ian Rogers
2026-11-30 22:54 ` [PATCH 10/10] phy: tegra: mphy: " Ian Rogers
2026-11-30 22:54 ` Ian Rogers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130225428.99361-1-irogers@google.com \
--to=irogers@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=llvm@lists.linux.dev \
--cc=mani@kernel.org \
--cc=nathan@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.