From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B95CE606A339 for ; Mon, 30 Nov 2026 22:54:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=yZrcRqkz; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=aD95rJJg DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: Mime-Version:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Unsubscribe-Post:List-Owner; bh=N1VoVkawgv+o8eb9iYN/S1VeMf/9pna9um/JV9lbkNw=; b=yZrcRqkz0TirZKpHoAGwf5ha7I Sj1hPWOiOPGxybjrnwnaXSGgKNTrQMrW/ml88OLuBcxV0tZZlVD5tSSdCMkzXIznhbX48as5yTLIh FdrQxsipXKE7ScTwmlIvUcGaSXRew0kHvAnuyMhe5cfHMQ4nQ0g2kL2l2AZIVhqV6l0U6Gp7wnjxL OMPic7ftdQL30cDnZ3ViBZ7fcY3PlEv6kQL0MrfkbLaxEi+t3PpaCxJsDCZboHUP2xnyum3oP66oe 3vraswzxnhkX6vxVEFLQuGA/I27Jpdv1irj+D5gjG/Zt0xkNvRKlANWkNVCPPkDYlRIpGDiUqR7nw VK+TvN8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYAGc-000000060fd-1nxo; Mon, 30 Nov 2026 22:54:38 +0000 Received: from mail-dl1-x1248.google.com ([2607:f8b0:4864:20::1248]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYAGX-000000060be-1Gb5 for linux-phy@lists.infradead.org; Mon, 30 Nov 2026 22:54:37 +0000 Received: by mail-dl1-x1248.google.com with SMTP id a92af1059eb24-14373747468so10669953c88.1 for ; Mon, 30 Nov 2026 14:54:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796079271; x=1796684071; darn=lists.infradead.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=OBKjiltY3hZX/UTWqyWa8ejDqcDDijUjq30fIdA8FAc=; b=aD95rJJgLj40IpA+DfmSLfirdseynIC2NZKvMKdVfIlwIn+5ml+7hHXc8jYupLOY3F kqV0dowEGSF/Q3PNymHNmoSYgIgICjsRAc2vXrhj+QNyukLPCAhvibQvLnxzWvn8oZk0 xNSzkRJcntzW45r7eUJlitlmjUkGY03t2SVYJsqYKYhzdDDMcGr86404gIncYf4YVi/C hYX6s0dGb0WxVd3R6zGGdEGJcBjWoDxObv4TE+d/jRRU5qnuccNY8ej4in+dp5GcvfzF bm3ZGVZnNAd3N+ipou7+ikz4zvJx2bIy4te1vrjoHvwcKIbZiPHTZI5LcQQtgKqeulRp fS2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796079271; x=1796684071; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=OBKjiltY3hZX/UTWqyWa8ejDqcDDijUjq30fIdA8FAc=; b=PPnxwbqBzTus7HX3lHiGqqXEoFSlC3uz93a09R0M/676C19oIHUvo/MMWhfrRYwpF3 s8EwOMCTvwc482ulO0OzUhitxjqnfH95kfBY5i+P02bdZsIa4SIlLG4rZcPZgps0QhHI VswRs3MHtaUeOlivu7mqnuT1Zlia86z0+DFgTAoDobWWXyJdZfg6mkkSkgFpXFWVNzEI vCDQnnhmy8FDCB1Sn8UmIWYGaDFlQCS93d19mioONwTTzKMxPlbljLtp5YH1YKuyYH/L ONYyaa2HMbpwgJ0zCUytS+t5QYpYiQifBTNeC8kHXrEL17uHoXBAx06kMxpNkWVI7tkZ /ZeQ== X-Forwarded-Encrypted: i=1; AL+hErEblcXW01CqAgdY205md9QTBYsZKpTCgpr8ovsWfNHXN3RCODlzZSe4MpjUc1FcEYF+1MLETm7Kb+U=@lists.infradead.org X-Gm-Message-State: APuU4Z+syBEsNQd+DJ8cJiveUCtYytwVa+UWmwDZCNlMdn4s0VIQp1Ng E7I4bSmV/X2/S8aiX2OX0tWjXsrOPxN9LvN+Brx5HzUjW+GO0t3cJMgjJlG0TwNm7WmErNVfKGR pbZ9e+zh4yw== X-Received: from dlag28.prod.google.com ([2002:a05:701b:251c:b0:1b5:1a6c:af8e]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:3d14:b0:151:6e80:baa9 with SMTP id a92af1059eb24-1b55687f17dmr48086561c88.12.1796079270938; Mon, 30 Nov 2026 14:54:30 -0800 (PST) Date: Mon, 30 Nov 2026 14:54:16 -0800 X-Archived-By: Mime-Version: 1.0 X-Mailer: git-send-email 2.56.1.839.g22a8290db9-goog Message-ID: <20261130225428.99361-1-irogers@google.com> Subject: [PATCH 00/10] phy: Set missing .owner = THIS_MODULE in phy_ops From: Ian Rogers To: Vinod Koul Cc: Neil Armstrong , Manivannan Sadhasivam , Nathan Chancellor , linux-phy@lists.infradead.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Ian Rogers X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_145433_341111_1B1A8976 X-CRM114-Status: UNSURE ( 5.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -9.5 (---------) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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