Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.198 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796079274; b=IhVFQR49hIIbjpn6apxPeVBh3Z9qYqnU8hxwrTX3MCyXzGvysLWx88+KK4L5jgQEvDcR sPluOXtlLnXVdlvYfPpdn5ib6nQKkb5/p2ojcpVF/FRgT1RXmjBfRF/cVJqJ/W+Fb1saa T2GTMbsQ8WE1MisDsIJR7LqWGnvjacIqykj7D4AJzOVI3FXQbhVGH/Jvjf1pC8iSvfO3k Fm/Du+b07B++CIQvyjlU0KQs30Ab0BwolrsFZLXnjFmaDietdcv4SlD91lwCPZnIgOx/N /dgib13qAgdrNWCZ0yu4JvOQXJSSXHsvmsotpXxLfE7Pbd6yY0PEHqKbPXm3JNfOPQg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796079274; 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=cmHlKAUkq1WYBYUGRIowpJhABA5ObAwW952ix0epN/E=; b=5kMPcGn/RhhIEDXbF7/W/u74H3nxr6m4z5SLeCLPY0Y3Ga4czv93tEIPUZlxMeUsyCza vQhhMA6Tv+I2Z8xEfieFYIdS7oMUnSatRMd64xCyQb0do5v8jeMfTuOYA5ZN9OVe1Vvye yjviscJ6X1zbK/egb2E7PSZ4FAHsV8wPQxyBdKtmIMHARDggq6tERD+PITuMkkJkFLJF6 MtI78iP/sjEpeLv280tWAf5IHIJqa7Zsaag7p2LPhcxUqwTfTeQu+TFEK2zYN7NyPT6/J X31Yjf19+07vp36/tv6Sx6aH1v1LlJ3VmGj7uJwnlpqyWE+XdWsLXhvdpX1QFbUPzBg== 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=D4fKIVsK; arc=none smtp.remote-ip=74.125.82.198 Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) (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 701B3606A332 for ; Mon, 30 Nov 2026 22:54:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 701B3606A332 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=D4fKIVsK Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-38355b03cb8so10175854eec.0 for ; Mon, 30 Nov 2026 14:54:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796079274; x=1796684074; 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=cmHlKAUkq1WYBYUGRIowpJhABA5ObAwW952ix0epN/E=; b=D4fKIVsKK0HwP+BUIPukaCzFf781szQCSLPBSjY26bfGDJvwoQNAF23WFjIfkeyUHz qLo46KLKMCcF6vj5FDE8kFboQGdMEjjdL/vI6Snr3kGBLDiUJ285uCabuUbolKeihQzR wN67AixctcRX4z7UfBrtZN1mUHgHMBez8cr5SWO0bB/c6u5b8Go5+OszzxP/BCdyFUI6 QIk+4rgz2SOm+vr3p9P8wPuYYOZAJOu6Zc3dB7xjWpF7b0iTLeR4ts82snwSpZJ1ZJ6c 3aO3uDe1782gP8m9N+Y4RsmuiM2I/qP5ggfYIHz8TsVqBa5f63dncNOUxCfNStsvhYu1 6Z5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796079274; x=1796684074; 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=cmHlKAUkq1WYBYUGRIowpJhABA5ObAwW952ix0epN/E=; b=1YQd1GzhnLIEb023YJ14NcyFK5CjUv5LQaqPZA+V9IHuzV9tPLbBOmM4KbNuvAPLm3 A4IU3n7xc9zCVfHmG7mtXNFLomTlLAFnfCW8lpLxUCTJxdQwjT/OD21x0fQYSWFVcGk6 75Ruus5X6IGuh4uYrVr5AzjlS/J4jFgKrwumI8QXj12ft4qnJZYG67T/zi1WXV4NWqph CETr8AmVd/0EBJzLdpByIVNBQT7EnRPXcL2tinkY4iPY8NWwhZUdn1Pbt/YPuBITB+eh QMQKnMepdPb6IYKAPGdw4OM7aGCw6hBJ4aeOa4TFP7bsyryqXiXJryl+WyCs1ZNAIS3n IBtw== X-Forwarded-Encrypted: i=1; AL+hErH/we2k8cbAP5kNe+0pUQlgA9Aep9R6U84jqM9+a4n7n/GTu7sDVnG3EEvim9dbyaTuSzkD5OW21l+o+g==@lists.linux.dev X-Gm-Message-State: APuU4Z9ysQpzN2Pnco9xfPj0Qp1VOtP+nZnzWi3xkhCmVwnxqnMWLGbm 2Gddnr1lY5/GlMDhrvV4dH2bFiJDf3t0Cnq73gSXgMhiWKbX0PBPUm2dfcMKJO0prRtg185KF0r c+2fx5Xp8Ww== X-Received: from dybsl8.prod.google.com ([2002:a05:7301:7308:b0:379:1aaf:7a27]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:693c:65cb:b0:386:b12f:c693 with SMTP id 5a478bee46e88-386b12fcaabmr22455176eec.39.1796079273373; Mon, 30 Nov 2026 14:54:33 -0800 (PST) Date: Mon, 30 Nov 2026 14:54:17 -0800 In-Reply-To: <20261130225428.99361-1-irogers@google.com> X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261130225428.99361-1-irogers@google.com> X-Mailer: git-send-email 2.56.1.839.g22a8290db9-goog Message-ID: <20261130225428.99361-2-irogers@google.com> Subject: [PATCH 01/10] phy: allwinner: phy-sun6i-mipi-dphy: Set .owner = THIS_MODULE From: Ian Rogers To: Vinod Koul Cc: Neil Armstrong , Manivannan Sadhasivam , Nathan Chancellor , linux-phy@lists.infradead.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Ian Rogers , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard , Paul Kocialkowski , 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). Because phy->ops is const struct phy_ops *, phy_create() cannot populate ops->owner at runtime, and try_module_get(NULL) returns true without incrementing the module reference count. Set .owner = THIS_MODULE in sun6i_dphy_ops, found with Clang's require_explicit_initialization attribute. Fixes: bb3b6fcb6849 ("sun6i: dsi: Convert to generic phy handling") Signed-off-by: Ian Rogers --- drivers/phy/allwinner/phy-sun6i-mipi-dphy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/allwinner/phy-sun6i-mipi-dphy.c b/drivers/phy/allwinner/phy-sun6i-mipi-dphy.c index e5a9aa3f4aac..663b3d4d295b 100644 --- a/drivers/phy/allwinner/phy-sun6i-mipi-dphy.c +++ b/drivers/phy/allwinner/phy-sun6i-mipi-dphy.c @@ -535,6 +535,7 @@ static const struct phy_ops sun6i_dphy_ops = { .power_off = sun6i_dphy_power_off, .init = sun6i_dphy_init, .exit = sun6i_dphy_exit, + .owner = THIS_MODULE, }; static const struct regmap_config sun6i_dphy_regmap_config = { -- 2.56.1.839.g22a8290db9-goog