From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.200 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796318148; b=vCoRqQ6X8Jv7pdBNQKzWbzqiEcGCEq+d7qHF9Fs6S845yoyRPbdf/aZFFAVVDrFhTtsx UTlphIkyLw7s9MBlm/qfzIDGvvsJDPPsfXmCDzuE7OOiOk0F9ksS2HCrvEeg+c5gSwtM7 SlaQcb2otrz7oMSGgOkkiQ0RKBHSQVL5LOjhEDXkmNYfLGzMPPX8raol34VG5PSfPq+wB tsU/yVdh1ernpoEPTf2yxliScsJYUmDGQwQtrAq+4WJqs+f4t3PLK1Kfe0DT0LxsYEEe7 JLKs1q8RFrxJrkvau+jApzxppLdojub/s/7ybtt+tWxyyfChqSOJ/leviKrozWgs0SQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796318148; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:Mime-Version: X-Mailer:Message-ID:Subject:From:To:Cc:Content-Type; bh=w45c5m7XJ9W4DMhvMTlc/pibphl4+SBryw8cOxtMD5w=; b=WvXd77TedYlsj/0f9O++Cp60s8dEb9CCBEsIiXjvEslZT+Z2kSWmepz3MIvtPHBD8rsR QMC7qZsore+lA7TtyuyZPhZIRkzwqMteF15sg7Xqh5pp0JCXh7QEcXDaUA67ibTLbGh/5 UbA9OXQ+prDCWntOQ4p13Egw+/Zz+tbPaYZRf79HwbSmfIKVNSBAVvEHr/vpSWZoZo80t C72vfuRh3kSp4yuJsbcJErh1dRzOf85vn4hjLPpcLXwDUge1jM35LLGBQD6zBPG5NqwJa BDpeckhC/kQjmm1rR4qgsV2uA0hszgysX+IKT63vJMlYgoUfATepugGrxCdEFByMVuw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=HkUEEJSg; arc=none smtp.remote-ip=74.125.82.200 Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 617F8606A32D for ; Thu, 3 Dec 2026 17:15:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 617F8606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=HkUEEJSg Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-386c3309469so13048188eec.0 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=vger.kernel.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=HkUEEJSgw0S8npTLMMQAvf3QGFi9js+4uOoaniPrdwbb/1DLgzebV9HJb+tlqWPrSJ el4Z9ORJjZ/LuqnsIQIWbOX7ddtwNvzxtcgAhoskmHx454xNFIlVpC1uJQ1br1f1EPqo Tl/UsbWsUZgwEqz2i5ruDUmFrQ821GMQakL3pBUAMevkflev0vMqmZ4CuoPeAgaG7T9Y hWtVEZ/63/3dNKhzTXaSLfzlMr1SsGDHPGsWUhd9spi9p/5oIxGY8UqSkkFRfQLkQGMi rCX1S+pWb0UnHuSjvoZdnO6inaIFkpiVjFL9iO4QNKGTL7Gfi57pQkyUQtpouWAhmOGp sHEg== 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=z21tTfTgci+lO1vOY6Cra2ihnlEsCCTbRG/ViKdmS/kXIbjnkBuG4z9uXmMpt/c9w2 UubgTAbL7bM3/99S7iE61gRWIhDMz7pduz4mIwuPm3TbsFJpfuEb2GAXqWFTPHn1J2EM 9F/SZ7m06vPssrrJ8Gg29DsKvu1jU8ZZtv+md/MRqomtCq7TRdtC+vgvzQJYLTCHrOBT kbDDROnyrAGquC8q8oPQGXOK2X2F0dEla/WMBGwzYTUIJlXjL6mCMCQ6VWQ89dd39izl Stl29Rk0m4yHYGSx4Q3U1AZiH06U+sWbz6u6n9wnmrmFSPIuZAGwRnKNDSR1u4aWKgbg wrCA== X-Forwarded-Encrypted: i=1; AL+hErElwuGBbT5TfFbue0pfKjqivxYZqLH6cHVCQ72J0njDUfUkIAyQ9OuCnOmblKENhLR3qcuF2vb7clcVVI8=@vger.kernel.org X-Gm-Message-State: APuU4Z9vcBA19Yjc1XfiH/lpNlpglF+T7LR6EdRgmUPcNCGb5xGMfnVc VYlJOVM5C5WsSfexqTjhinnGiwKJJt1Pot7lmSaPRjExusUApCZSEX7hOCBfgGBlvoSgUoY1k7X fKlwudu/rww== 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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" 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