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 B50BF606A322 for ; Thu, 3 Dec 2026 17:17:07 +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=L91462e7; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=Qt8nQtRL 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:References:Mime-Version:In-Reply-To:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=9JyOfV7nB8iT2OrULnvWpZgKw5TBg31+IihyauEKbb8=; b=L91462e7MWOn9gHb8EIzmxKec3 saXF43IpyD5ARCMhTlCU5i0bm7odLLpe/d5LFkAigWiOuwSkPz+qTytIWGKAEHzFimT1RM8FBCUwh 2fD5Ro8ELhfrMoDNPMWLROncPrUrNGWARK7gSV42JXLSHe4YliipbOEMz0dv+FbnL7Lk0FUoiRiDD wEoQZ4w6SlJcs3mLpJBkPUimwQYxJ9EJ2JGqjcpLfOv+syTwNYnEcQWNjNQfsKG801wsjOsh/qZdC 5QGXcy4Az136ExymEmRRxGi3uew5NkYhmoWYf1bbrHqnXG2wNjmy7ZinTJpeSo10MsNKtrj41IBM7 fQ7jXXNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZAQI-0000000FPl5-19vP; Thu, 03 Dec 2026 17:16:46 +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 1xZAQE-0000000FPhN-3fKc for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 17:16:44 +0000 Received: by mail-dy1-x1346.google.com with SMTP id 5a478bee46e88-386a0f79047so16684605eec.1 for ; Thu, 03 Dec 2026 09:16:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796318201; x=1796923001; darn=lists.infradead.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=9JyOfV7nB8iT2OrULnvWpZgKw5TBg31+IihyauEKbb8=; b=Qt8nQtRL9YBvIDFfDcn+mYCJ1hFNw0yVhCNZTexanZkLE3QEW/d649Vda1IvHMOF6T LnvbhGYxGQJ5L1B4LnvKLmQDls5Kmxvdz7X5E6AvWa5+TOIWSNZdb+W4mGkswwk4uU2W +Pcxgv2AP1HdhSuIzXRlxlIVmHPMPRSTeAPE5RvdxM5T0YgcrIETi7g57JXWUwQkcFfB L5VdtpOk7PAiKN70R1DYWbXrOk9wyOqOuSCa7J7vbGLAXw3sL8SYuzQ1gadMiL+VoCbL kOki1MM4ijNEJ/pB3bNrjZZCs9p998tbW8FcZRqTTzzmTQLLJWIl6Va4yJJvwoFmkWC+ x9PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796318201; x=1796923001; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9JyOfV7nB8iT2OrULnvWpZgKw5TBg31+IihyauEKbb8=; b=dO1Zl9JErQpi+2BTyurEmpBs2B2J+0rUZ52KqtwHvqROXXkWOTAPCS0XLEqA4bWHSR M28H6JPL3GoOa+p8NpjmL30VMUezbd7/0QpzKDBJwfgsZu3FUE7MZHhDLXbrqOh2CxCs AjFzoo2Bu24VvtPFhtOYhPkCHxGfonDSWS140/7JxjRsHd0JdUxUwO12j+FdIaWaEg8w AgF9qEC0VCpxPu8f4fDdOr4vCAOKjeSM6K2fGRG09VdkkcP0dv7wQCsTePcw+f/34zzr PHDmnPGsz0mXTTomOs1l4BAfkmbTyXKhYsBz+IfJWEMpNlrGO+xbCOOaLnloBciLdaSN Lo1w== X-Forwarded-Encrypted: i=1; AL+hErH+Op4TCPHaUVa7nr+IxtjEgZGUvhjjm/sSpw3RuyKp4QDMY/6ZuSmOTu+ujXIjdanxQFRxaPiG3zAh7gPlKvW0@lists.infradead.org X-Gm-Message-State: APuU4Z+IHzMi9a0IdVeWwHETurB/Y6zRgAniaUNigQiqmT9mY6B/aeTu 2IIrEXC5inTQZAr7sEu1C1+4spm9blmnMPUNaq2Yy98Sn86J9ykIgnr+wJtp5jhgbknuFP+1BOI 23HdqQ52Niw== X-Received: from dycnn11.prod.google.com ([2002:a05:7301:140b:b0:386:33c7:a7cb]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7301:6908:b0:381:1926:dba3 with SMTP id 5a478bee46e88-3856983c0ccmr36340898eec.0.1796318201003; Thu, 03 Dec 2026 09:16:41 -0800 (PST) Date: Thu, 3 Dec 2026 09:15:47 -0800 In-Reply-To: <20261203171549.438355-1-irogers@google.com> X-Archived-By: Mime-Version: 1.0 References: <20261203171549.438355-1-irogers@google.com> X-Mailer: git-send-email 2.56.1.911.g883d8bcb20-goog Message-ID: <20261203171549.438355-6-irogers@google.com> Subject: [PATCH 5/5] media: sunxi: a83t-mipi-csi2: Set .owner = THIS_MODULE in phy_ops From: Ian Rogers To: Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus , Laurent Pinchart Cc: Nathan Chancellor , linux-media@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Ian Rogers , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Kocialkowski , Maxime Ripard , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_091642_922886_AEBAD1E1 X-CRM114-Status: GOOD ( 10.58 ) 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). sun8i-a83t-mipi-csi2 can be built as a module (CONFIG_VIDEO_SUN8I_A83T_MIPI_CSI2), so omitting .owner leaves phy->ops->owner NULL. Set .owner = THIS_MODULE in sun8i_a83t_dphy_ops, found with Clang's require_explicit_initialization attribute. Fixes: 576d196c522b ("media: sunxi: Add support for the A83T MIPI CSI-2 controller") Signed-off-by: Ian Rogers --- .../media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_dphy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_dphy.c b/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_dphy.c index 24bbcc85013d..b14982df5f25 100644 --- a/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_dphy.c +++ b/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_dphy.c @@ -47,6 +47,7 @@ static const struct phy_ops sun8i_a83t_dphy_ops = { .configure = sun8i_a83t_dphy_configure, .power_on = sun8i_a83t_dphy_power_on, .power_off = sun8i_a83t_dphy_power_off, + .owner = THIS_MODULE, }; int sun8i_a83t_dphy_register(struct sun8i_a83t_mipi_csi2_device *csi2_dev) -- 2.56.1.839.g22a8290db9-goog