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=1796079274; b=3h7KTQ46slE1OXiRHymRYhzo4uVhLezLqELk8TYNQN84mw6NuBV4kQ8Caf6IXPFngpsc SefAQoDfQaUpg+kTm2FwG7xfdbjyH5eXprXPIQVoIywt+ejf5Iop5Y+pgBnGyhiSyuHp+ FPV+PIi+4jv7FO8vmiOmHkOKPFTxTAkZ/sEQaYeSSMztT6R58fZWW2Caw/nVVmsUuDVew igu4CylIBWF9SMinVDm72w3VXaIyrT5/jK+JKEXJfoS0rLFDiOjtLFDuG2IafzlSuCAi5 7rrvymdeVpg1n8mx+4FusWZ40hL/54TnEbOsOcMCoduz4uJOccKUQlcbd7T0SwQKwrw== 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=I5Bo7Z8nKGwlQj+TPuN2r+FK5SIRHsM3nordqRW3mepc3tJoY9AovIVbT+kUaiuv9h6R TfIBpqnYqBfvhK4NSmhINp4/+8j4aTQ+V83XEDAGNOOjYVncZt9JRIQhwir8Lu99VR2m4 G64JTkb3MCEM8IAwkKeaCUy6bXlaxOU2pL3CK9MLIh0jR8Fs/YVvzrZSwu1jT6+MsaJIZ vDegudVidoyRL3aZKrQBVse3j0dP2WX1tg/Do/naUEh9pchTDkP6cqfd9z5utnk9MOYk2 8azE+H2CKEa2rtgDqy2m2HnfJjRXzNPsnIR2JaPdsME0e8Khk8vozvCazYhhIuQFr3g== 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.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 82763606A32C for ; Mon, 30 Nov 2026 22:54:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 82763606A32C 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-f200.google.com with SMTP id 5a478bee46e88-341eff9e381so16087873eec.1 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=dSj60cA5Lm3D6L2ib+muEzCcQD6h5u/fb9cQCeHEoob68sOX86l1VhPoa7rS0mi8xS pPX/N2S6sUgPeeQsM0ixsMJw7v07O8J5eecpKj7tWHvGZA8Q2L2kp1iOZDd2hl7HjLoV NPsujHrKtGRAjzK0XFWBLboXCeOGZygkPLfg6CdHmnruF37E1oiYbi7J+HcPeF2DyAff dapvEoqBE+FWxzH0w6oOkcFTXAiEeiki6Q64/ScKAckWuTK2BdXuXk5VjhAY0nK36L9O WGHvBboddNMZa+m+QQV7i6D4tbnHofHf5TDD0ojR9TIPaUVgsesQ6G/HPmAPyKrimnaw Rk4A== X-Forwarded-Encrypted: i=1; AL+hErFDZ5DFbaFSuU2x9wxIDYoOCDDA3dFUg4w/DjWG7Te3WOaePdHcbSZohSAuAJt+VFh/UOw4@lists.linux.dev X-Gm-Message-State: APuU4Z8CrxgdNklozOzlQhjvPNCbn3AFfYBR3HPR6Oi2+v73J6WJuoob kYlMdBhspbiGdV5SP6eG5/Izpzdfcr21jXjoBmj0lmnsnviTcJAWbLQmQsBkgJwD5tibu+Ru4Nv s1NQlUdjnjw== 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: llvm@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