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 A6E72606A683 for ; Thu, 3 Dec 2026 17:16:16 +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=TGiVMbqy; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=IwPVsNzL DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Cc:To:From: Subject:Message-ID:Mime-Version:Date:Reply-To:Content-Transfer-Encoding: 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=w45c5m7XJ9W4DMhvMTlc/pibphl4+SBryw8cOxtMD5w=; b=TGiVMbqyAZHggzqe9OpHMd7bTU hhKGA/SPy6+7WSfJ1WYdbKY2jRvdktH8P69QpCtES2mEQrawVWX25MHN3QTMwpIrx5BbxwSiFK5i4 SbxI67mybqg/QKanITLkSELXnE24dWIlr20mv7AcjzKoleFld1hA07vIcgjQUXat1hJzqRzAhRua+ eFZh5WKhv5hcJdou0/3cPVCKjQNA5Hqq347xZU+uhGnKhoehzTq+7csMmNFffFQCc3RF7KqtuJM/q 7urLbtho7jNCMUk+GHh2Ow1GFmFH1jxqRfgW+Ah4FvZN1CfPeVjDvXDPU7qclqsxFTQYELxYuCsQE +SCXNInw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZAPS-0000000FPXA-1SCe; Thu, 03 Dec 2026 17:15:54 +0000 Received: from mail-dy1-x1346.google.com ([2607:f8b0:4864:20::1346]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZAPO-0000000FPUv-0LHa for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 17:15:53 +0000 Received: by mail-dy1-x1346.google.com with SMTP id 5a478bee46e88-383ec96a7deso17549664eec.1 for ; Thu, 03 Dec 2026 09:15:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796318147; x=1796922947; 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=w45c5m7XJ9W4DMhvMTlc/pibphl4+SBryw8cOxtMD5w=; b=IwPVsNzLd1ZdkLFHQTiEEBpb2zxG/B0tJ48iOFwsPTeh74qEv3oh4zXHTk5qBzWl5B uIcKa81GgnZyqz8v9Ge7TT1+ev2AhEv7LiDTuSq5BSA5TuP+zi2KvMFUDuKyPxrpwV14 oaFP77pNHziZG2MlZWYBoUEJZkwTxqT+oCjSJaR8+34t72wV0xO+iwWm06L3VGGKLQWX YE83aFlYqQHgz9vl5YzoffW/gs54Ool5coX6maJhSV8VMftzx8FhP55TD4xbJgH9wUVT CEq0MbnZMrEfbpV2buZ+MJOdL5heSjnFklvI4PD7AzTdG+VuSiREn8ep4bp0N28wSKZa RlzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796318147; x=1796922947; 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=w45c5m7XJ9W4DMhvMTlc/pibphl4+SBryw8cOxtMD5w=; b=Ri8HPpGeBhU63BCCXHKhQrUF9/NSOXpePGsXeQ2AQv1tURwU+S1QGuOYvWhEJhQxBU 1O3mtyW/vwBRQ0cBjmg3wSPEiHDhuVMHlo8WgnLKGROGA5pZ0566CKtf4Tm9VY/+WXc1 xU7OYTSwhNfDwFwX7GHUpV/phdALGyAqsDRptfNoD678qj1Sl/1uhqc7NfmjdMJ9dqzU IUf/s61Oq049iPE7E6HOGFc0wIBllVRgdcJSe0KclynH1uqxvVLEJvNaubNFljxm2dys M5sFW5u3aYe2EH9mfVYHziHL6Pae4fpjzJogKB03Hbonnp12F2TxXzCScN7G8/W7v4q5 OBWA== X-Forwarded-Encrypted: i=1; AL+hErHIYM1J89ArBBagcqf/NQs2IM4PjrbEssiGZvoTTHseNarWrCizFGDhg/JvvprajIAbd6jaLOK+asvTHkw258J8@lists.infradead.org X-Gm-Message-State: APuU4Z/+9be4diOh3Bx+sUAeaFk1isBtVuRevjbA+sjPCdyxZZ9iV2ps kqjUfwQisuAwt+kY6AiQGkpjzRInjhxQeZGqLRn1rM3xOdUzMRNEiPTpchvh0UnVIyT69ipCxlL hHR9bwIxu4g== X-Received: from dycnr11-n2.prod.google.com ([2002:a05:7300:e9cb:20b0:387:46b7:3e71]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7301:6908:b0:382:f0d4:1e77 with SMTP id 5a478bee46e88-38571219f03mr43062138eec.36.1796318147079; Thu, 03 Dec 2026 09:15:47 -0800 (PST) Date: Thu, 3 Dec 2026 09:15:03 -0800 X-Archived-By: Mime-Version: 1.0 X-Mailer: git-send-email 2.56.1.911.g883d8bcb20-goog Message-ID: <20261203171504.437153-1-irogers@google.com> Subject: [PATCH] drm/rockchip: dsi: Set .owner = THIS_MODULE in dw_mipi_dsi_dphy_ops From: Ian Rogers To: Sandy Huang , Heiko Stuebner , Andy Yan Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Nathan Chancellor , dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Ian Rogers Content-Type: text/plain; charset="UTF-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_091551_619712_7C039E16 X-CRM114-Status: UNSURE ( 9.44 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -9.5 (---------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-26.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIMWL_WL_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT, USER_IN_DEF_DKIM_WL 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 the PHY is in use, and of_phy_put() calls module_put(phy->ops->owner). When CONFIG_DRM_ROCKCHIP=m and CONFIG_ROCKCHIP_DW_MIPI_DSI=y, dw-mipi-dsi-rockchip.o is linked into rockchipdrm.ko, so omitting .owner leaves phy->ops->owner NULL and does not pin the module when used as a standalone D-PHY provider. Set .owner = THIS_MODULE in dw_mipi_dsi_dphy_ops, found with Clang's require_explicit_initialization attribute. Fixes: 71f68fe7f121 ("drm/rockchip: dsi: add ability to work as a phy instead of full dsi") Signed-off-by: Ian Rogers --- Note: Found using Clang's require_explicit_initialization attribute; an AI coding assistant helped audit call sites, verify Fixes commits, and draft the changelog. drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c index 30d6f83cd5da..d0e2c8338d87 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c @@ -1366,6 +1366,7 @@ static const struct phy_ops dw_mipi_dsi_dphy_ops = { .power_off = dw_mipi_dsi_dphy_power_off, .init = dw_mipi_dsi_dphy_init, .exit = dw_mipi_dsi_dphy_exit, + .owner = THIS_MODULE, }; static int __maybe_unused dw_mipi_dsi_rockchip_resume(struct device *dev) base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244 -- 2.56.1.839.g22a8290db9-goog