From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.197 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796318202; b=nAmphp644fBqH+p6vd2qMcZm2FYXlL+rP6RjRZqg8pXZcito0lOGwrSSIe7LnPsq63/K aL8nnpBTaADsYLfdX3SR/8LJpM5ho9ckNpPqFDzoT66/IIzz+LuLfKFyrwv5Fn0q5WFZ9 9Ny4oIbUU5HKHqcLKPg7aJNOSLw18GbIKS7/5jKGXpWI9dnBQB/1ov/recLvLwW/evkSf +IhaAdlHiuJ4o8sDkrgE9fYtu558ZqLtJMcXSIb5Dn4vyS2n1pk1qkqCGg6znqdlvlock s5wEe+mSm1VtUmhA6uvm2leW0XzzDJCxE3hZjmM6oiij1FmsOl+dUcIUrF+9nsdAkjw== 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=SQLmBRaC+cI5DtEhIvqZu4VjdrL9KxjCzvAlK/Q04enHfZG0ZfuKyhHGtA+ip2br9vGq AFFl8/7dlKu9urj1qgDKCkOONcnUBX/5zgjXLexXoO9rcPWlZXTo1KHZDRrjUoTfuIbNf k29neEXsUeW18QXnWmnQnKA3UCPdgg0SVnr+IMC3gL6gh0V0Rr1swwRVuvBXBz16Nr10B RCw0oijNDWh2DdURQXBm434TQ8beDhiiRHgK33Fp7i6Mds4UhfRVLllxXwMiSOaacYjoI v6cmcAvubXZ17agFfbGMVe8GpscNzOjCGhI9roV3K8+9s40P6s2eDhtmn17HH6Vb4cg== 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=Nr+yGaiH; arc=none smtp.remote-ip=74.125.82.197 Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) (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 5D9AB606A6B6 for ; Thu, 3 Dec 2026 17:16:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5D9AB606A6B6 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=Nr+yGaiH Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-386a0f79047so16684602eec.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.linux.dev; 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=Nr+yGaiH6WM/t2C0hLgugY234S+lWNZNCTjs9TpKSel4aN78gOMWzKaf1l3pWkZI+a By+WueiQNJqQZzPFiVjSN88CTxyo38f1FM7HaaCcwo0xqulwqMMl0vXReuczTNWKMkJp aX3BWguZI53LV8Uk+wn5Lqv5GlFn9H4oH0bvrNAk7vWQJZDtsMHnyOg5tg0EM6tLZ399 +Os+HXkLsK4Nnt/imWJZRJ3PzM3sVZX6LzrwNSSLeHteT/bngKJYAgzVz47KyjKtuCIK 6q7R3AtJufG87WzDAPamELiGQw1skyE5CsD9JIsM0bmiIoDUi/FGv/BMK87F89Acuahh tDAA== 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=fnIiNHdLBTw1E7kYdYYYJldpx4RUGZ7JSydLTuFqxCyLrIJ+5xtTpEEgDwVSavQiqJ 1j2FkXsjRIHgdF9iCKwRJHJWZ4770a20iqzYEFtgZqqpOlXa4mRSS/CpUEs0BRIVtHMW VLv2k9Vit1eR6wecMucv+a3CRIiOpNMFSs8Ez9b17Z1YgQI/MkQJOOEHJiMOvBrRNZbP Z/8q5eF2Ksiaa2rGReaB2GWROiFVndFhPDqdQzmEgE/5OD1IWpl4oEgchOsT314HF3JS 7czYKzCgljzyk8dimyrmXtIWzJAynvSQqfBzYzeWKwBDKVFJIeGAs00PjNsTXmsZVWsn lxnw== X-Forwarded-Encrypted: i=1; AL+hErEwHdCBYwa+hMl9/8XE5LSRDP9+ruYcdUh24nqtDshoUH4MUp2zYYuVJ0Pgdq8PjhsTD5Vh@lists.linux.dev X-Gm-Message-State: APuU4Z/lvT16dqzshXQUZAu7nkOAdgX1M6X0tDASFIPnqUdZOyhrcYUo oZhgT857ZvUAWGTQgyelY66IiIre7HDFGkX1XvVBE0HHMLMCkrPmYen5eZif3En0qYCLGaAp3b8 zIQqAlCyUcw== 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: llvm@lists.linux.dev 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