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=1796318202; b=ljkxCYt4n6LWHRLZhrI6hkVlcc6KfzbAzuXO4wp/y8W6HMSL1ZNAebtrA0kuV6MkEZsM 50w3U3kpiQgT53Cfd1BSw54a3FbcR8llXkO58LJknjw2+tsrYymXUyryrokif/mEBkKhZ 5mE4ta+mUnMfTBw0HCm4H/2x++Db/G+uzxRRH93nx6IYRobqyjhslcnsxZDy6DazG3CSm KHSTRaUJd09a/AyZO69iFO7iZk08D97O34GEh1G9MrVFnOdObwV10VX4ie4U8AATJiGyA tFuMpz5/RjttZxXHl8Fasx0SFd+mhP5WEi9igkSo5ods2wkun2a0k+WjIhCLF1KI7Ag== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796318202; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=9JyOfV7nB8iT2OrULnvWpZgKw5TBg31+IihyauEKbb8=; b=0IGW4IG9awkxc7Ep615vnoBJYPbXylSj/LdUjzMHjWlV/4PcoBIu8XXvJ88JObpg/Bnm mHA2uyBKCtn2YD7RMKpFsHjLJeRgBjbjnvU9FPhVm3uHDd8kJ82hfXy88ClqGIYQmyETB 4H13XrSktfiUMZn4xTwyRxq/Mp2EhL6Ofor769IpBXE8sHeOrXPsbohNSS1JYXmCbAV2r YmaCvtZl6zQCrQIni2bCUelG+cfYy7jLmOhjmDqmA9K/vYOGSJW//H6IufZB3jf1G3cgo IzK36BHM23MkTzofbO/MjYYchgFD7MNYSs51GnCq5VtumFZP4ypyAGIjSVoxfYh2oDw== 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=mUXuKHDJ; 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 526CE606A689 for ; Thu, 3 Dec 2026 17:16:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 526CE606A689 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=mUXuKHDJ Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-386a0f79047so16684599eec.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=vger.kernel.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=mUXuKHDJ7AZcybG4myDTay3V2H8e7CdjWTb1MlMyPMiKWuYmXKwFX87nALW8aB2Orq N/MeVN9mRV7KOf/2fOUUQoHFEexK6D+TCce2AcIhkZi5p2Yjsm3QLL+O3LTPUViJYwnJ uh+2qFLOux3trW1bw3CXPCkOnuXLWINWnEEgVqpFOTOMdHZh1tGAGijQgSs+72N2YmpB ESocyn3LfKikXDaBmkmiZXLONuMQE5TrXTe2ls+J9ZBAcFkHMgNGv53yzwFfgNcJPHFc ulUlqChfOfWE+WDZxqVgOPFoH1qmcuUzbNhQVkaYsdoIVGj/HWteY8Hv0nnJ26ZRY+yV Be7A== 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=YcBwBW5ZUu8YKap5nl5c8NfX0XIKXf+TCOZdJ/sFT9B/KPj23v47d+Ri7MfGDKinR/ +4nCM6yUP5tizXBQH3rme7Nz9fb6UIukp6PSD8tWfWzfdCzLey6E+/TZwmnIH7hyh5PQ hZkx/g5IPdBdhQ6m8BAgEWv1LTHMXAvEcbus3MQR/ITgIJwYVqgNjaltx1fmn0HZ/skR LYZT2ZdCJFIWs8exQlCJNI4v37mo3c9jESRnkcVyN/ozUOo40L31ANJwCu8hXF9f67Wj 1Yrmh5dxKx3C+u1YmfOI2ipleol7K8mbwEbIPovr4JotPXoxky3vKIRZOmpQRBS2FABm BiRQ== X-Forwarded-Encrypted: i=1; AL+hErE/+nZZ2hE+ipiTw/Oitfi9CjRgUPDhaEKzik1uodO9S/Xbv7IXl2KlvTeJJ4cJR/dN/kqyxavWe4O6hJA=@vger.kernel.org X-Gm-Message-State: APuU4Z8uaeYvJxxnG3d9jIn3yAt4io9qsPYaK+jB/EHLBz8XwKdrHsSm bzuzUHa/Kcv9OqPFOzdnJ9NIVojDjuwiV0v/DchCyM0fawoLM6V8hVxIQzU50kZaLNW4sBasrAZ MyrUKhwf6nQ== 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-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 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" 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