From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.199 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796079274; b=ON6znrix1E3dcPy61V49c37XTosD6gF588SlVm6xg6wQu0jFCTsAQpJ76thUEIF3kxln omR2bCqd0DWv10LKUQkef3SvR1ZPEfm2OhfiLyor4MJ4It5qDppX3wwQfbSkcwaolrVdp eb+0I0YVDZGytEmdGAzIYXRKzUpJAvibEV4NfqsDZ859Cq+/QkT1bZH9qUPX+m8vfzj12 47tdupTFZ7nE6u98Cfvj9c6QXXzjMdWh8ic0T/opbbpN1PT4Bf+yzlg4gjAiQ9UMwIw1I 0egUf3q7eh9iOJlLoEIYJzjLmqVPEanR7bfuqbQQ/Jf4Vg6vFQyXkyZFeUxAowBjVww== 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=I+07I2cbmoBigRM1JGzwB7pSBzz8zmsHaniPQZNrgHbRnqrcIUn2qJ/fx2RUNtHxkeCr Hm3JAdJrvlAGGUgmOk2N9v77jRiZPTHCpO+gsknQBnI9B0lsHUzdykg2HXTaBRbibJrz6 f/uG3AAN72mD5KKCV5jGaW3yp2J32hIn4SAQETQUJRA2R3dc6AfB6t+M2Gl2X7c7Z0IDy 09ssA8T+hWVGISxTObpKfHjjyoQJijAIkWmXQXqjwtmdfbDdda7eENehGhQA0EWi7nERk JyLK5r8ldM1rHNNwZ5Weu0xuPOtDZJqWWE6zT67/R+IpTVYaJ5aMuE2UZyf8iQQnq8g== 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=BYHKSj+u; arc=none smtp.remote-ip=74.125.82.199 Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) (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 7ED55606A329 for ; Mon, 30 Nov 2026 22:54:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7ED55606A329 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=BYHKSj+u Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-38355b03cb8so10175851eec.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=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=cmHlKAUkq1WYBYUGRIowpJhABA5ObAwW952ix0epN/E=; b=BYHKSj+usoDIuR2JA+b1bJJt1eo3wqPvqlAHVb/19wDo0y4ss5N6KDJzXw540Axy5K ClwPVzqD6XfH72VxuQeC2/w60H8r6NyvhT51J1XCAUUdtku1oslvXPGs/Fk6gZqSglBk gNA0OI/xKm1ni5Ne21KAP8BJh6MK3n6cki+BQ54u5biRRRGZT6UKW3tYfsf54bR+MCKj 4gONrSw5e38LJ7Vhmv3+Weeii16YV/kszuof6oqvkDT428Jm7r5++WhmJFF1SGSXgNOX vJ8uYGVpxZaIOXoVKmLrMl/8Npil8kf9V0zryQle4LMrWJAaZrN5cM5WeuHPIYxyzGzs W1fw== 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=MrzIJRtWEJCfn8liR2Y4NJk4CM35Wvpm/4KpCxo5MNsFGGzRL3osvEGManf04h/E3a R5/WeONubnMW5/kj+nngUZIzlE2Yw54z2QCb1Lc4mkR33zphHMeFRbQ5ayqKXu+7OkSu 7UrISihXQDsaSgEu9sCVXg128+hf1JBBDpJniMVlkOgjYI4qtK/kyfZi9ReBNTj5njnM s//nheuj/y/rHjLF3iQX0+2S5C5xI72KZbG749mJScuM2JGqkLD+c0P/rGNytXQURzO+ r8SuwBKz+T2uRIzpc2zKR1A2dLwBFKGSEVERPsHGPyRoiZCJ68SQZOdUYV8zbMUm+fFe eqJA== X-Forwarded-Encrypted: i=1; AL+hErHuEeiePTsdEoBtAxoj0iblouxB2Ic7ov47Cfhq5zLrjEksLWV2IoM21q4TCgk2KXsJPTz27FIoDmUOMrA=@vger.kernel.org X-Gm-Message-State: APuU4Z/MimDyPTKie2aFzpvXalNdwh366Q4xrOgoNYuLqwEPlZG8z18d zDkWUOzAEcj7FWqEIKSzUCaIxUuXE9arvmFMYb9KAqVyfcjUOpySFt3RWu57YAr/OETua2Ocosh 0qU8hQbX41w== 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-kernel@vger.kernel.org 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