From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796102180; b=WcOJTMrqLAAOx0QF99dWQ2kCn0KE+ADn6mS+EIIHH93n/PLsmn4lfgoQ0ZSfBsx48hHA rglddUoMfu7TNlHMHHhL1D3Q0+LBxe8fOCt4cm70cVVkD1MlWWXXeuH9AsuLBaD26iilD Jox8+fqLZknB7dBEw+CSm0TScrtNfmNNs6yqT9WeZwXwz5MjUPQwT+Z/eZzclYzsKphmX y6UCMWzQdoGyQ152JzaigHXILBCNoRS/Kp5a40GvH5thoqW3EIG/iiedLxi1ycUc/jVdg 0nEcKLQJnl88aRNtDMgdZ94pCnapBhhbJuq84YdF4BsMTfM1fitQx+rQwy3gtCR3jQg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796102180; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Content-Type; bh=BY8G9j0e7aD+Mg1FQG7+SqCAdOcXZYWPgrtPsADdaHE=; b=HuG9R10Ptvs2yKJTXKWa1F9OU0BjRpCuUQCd6yBYhoXQetZVWmRIF5S/OicoPshT/+HW MCb3IZqB5y6MzURbb1+srnXgJlV4dV0qjVmC/JpWUg503YX+BoZduSOxw9V/sMkEr31It Oe/ezpidBidL2+5wbEuKDAxFOdvYlDSw/KS40hcsClaUIM25JKBhNg4BNcI/3G6iEsyy9 0Qspc2O/7E9QoLY1EY1yYeBbs/4z6rdsh90Fnd7AUkywaYG0Vr2iz12NMLtFSZUU1PKhr mxQi+XbOVVBHS5MadoIVTTIdO21wkvZpDzX3Dfzw7D6C3AypRaNLh1zfK5CMXL2UA2w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=VsRmsnnC; arc=none smtp.remote-ip=209.85.128.50 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 1DE68606A31A for ; Tue, 1 Dec 2026 05:16:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1DE68606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=VsRmsnnC Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4bb666304fdso105508675e9.0 for ; Mon, 30 Nov 2026 21:16:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796102178; x=1796706978; darn=lists.linux.dev; h=content-type:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=BY8G9j0e7aD+Mg1FQG7+SqCAdOcXZYWPgrtPsADdaHE=; b=VsRmsnnCFsDUfzZWPYcX1+5/3nVc947GvtNTK0SC4+ddsqCR8GL5CQAPuv/ZVlFwvM qENoMDnbgEMhiKUYe2i00Jw5HNtvbVPTWN5gxWdSTPiQ4FyqLbrQsM9q9PCESuztJXr2 BDbOktb1EdIIpglAi6p1FrBNCkReUyX3QCUcA4wjt5Ym0NrkFLnMn7Z7/PdDKNGxOKMc jO3LPwBjNBeYTUdNfzx4j81nMqDr6jVp4HAxT1UpY9DrYNbOlgWhFimj+ZnzAQU36uhc 9RaI/t1IQac/Tayh+RcvdK/bjAaKatsjZzcGpPz+Lt+L1H/93XC2avxncIMtf7fCuBkV netQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796102178; x=1796706978; h=content-type:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=BY8G9j0e7aD+Mg1FQG7+SqCAdOcXZYWPgrtPsADdaHE=; b=X4DXkStFCCfUMgBtE22p5sgQd7b32KkGZkvXpV4r3d7yXBBUxj5WrwvjZEdFDK8bW6 CauH51BcutLc6iC35sSU1qNSH0cftiUguOekKQP5Stqdie9opw0PAKSnPK/hkvQdIcQB SMqjbatVJmkesBLHXUYz1bIC+eSOJXdSQ6LyULud7RvTj3HBsFk4jvJTuGpHr579D49h vdt0RXaV234+mxdwSrozWJI0RmGQlXV8nb63I6+UfWe2d4JTw3G93nmuxRPotlACIgln j+hIJw6WjFh3QG6zej49XGmgB6N0CKF9L//2xU8oTVMN8VQuleUbYdh/iuMqIhSFTY6t Hzzw== X-Forwarded-Encrypted: i=1; AL+hErH46yp2c1PF+OECRBysseQg4NXRCLu9QYbvixSrjSi3qJPM/gPOcB8AepxrLCQkNDZCTAUr@lists.linux.dev X-Gm-Message-State: APuU4Z+GJIsKhn7xqQzVFRmVc5638iOMyKCDyqFxqJPu1XJYpm+ady6U 6L9uAYJ3lqDz4FXbpcQuTKYipBcrYj1osOQc7N68jpcYSx+UrYxhdWcxHYI7oQ== X-Gm-Gg: AZFdTZcvw7WM9x1uV/yfl75IJqQN1SVh0n+rJbcNQ32EgYe0QGX55DOMb52caDIBQTX EWwGnZFdzWiy/DveOWTAkL6E5tPy4azHZlib2ZOtYxQzHziq0JL8dI1hFYHMFTBbyaULy+L/xG4 +LC+xAitqHTg+WYrFZbJTZRWvVWdMHgJw8IG6zNrrYu4Tz6AcdmAXGVfAQBdA2G9I1j/A7jjQLQ jrdwvwd/VtPiCRXyGs0mNMDunCNx0snb5TgPAjtvR6Ft9aU0mzyr5vqXtNAIPDtVWmHiW5Dz1nO KM1W55FXwlpE64Ljqj7aFuh/QOGtr5e+yJXASu4JEhd/4sSUx0QXannfOoLFegVqci8+qkfpSGG 12mb5/xn447idf9Sr5jJ7qpFvVlwqDzuY8REPL90Z89gV1uUu8JAu/E2OgwBnZfHGKk6tD6fw1N mcr1ZOU67Wa3rxKGKKYXQPHhJljPTeFueBsIXFSc8hCc0O++Lpq6WR/mbZkwGe158NKNKx/NpUE ftzzl+iIk2xK0wycdbZa6zAxCk9h7muhCz08Rwh0g1zfY3nTl7KuVlQ+rzhR+YA3NScVC3Rp6CF aXq3boC72NbYkg8NLS4TZ6BEBIVHSWeOe7PH/4F9c3gD9XyOvPnZJLExtkcweuetXRJpbU89pV7 1kmCCs1dg6pqNK+CdKCpFPVAgCiwL27gfpPKGaXz/g6Jw41PCYI6J9kYqW/RLuzMmZWAw3nukt9 R7OB+g9jf/oRzRiylD+4JBiCkyOjq8bmwW3BJFOstBLjU1Oaekm1ia+LYv8PbmHQ4jjgnxq+QzH gHrwmRQUhg0ODynE2UY1Dsq3Eky+4GniFOOyhdWNDNLJQxF8ZhEXUv2cTLT7ac= X-Received: by 2002:a05:600c:c086:b0:4bb:ab2c:67f7 with SMTP id 5b1f17b1804b1-4bbab2c6d69mr251198815e9.8.1796102178454; Mon, 30 Nov 2026 21:16:18 -0800 (PST) Received: from jernej-laptop.localnet (77-38-7-250.dynamic.telemach.net. [77.38.7.250]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8538b3a7sm1094824835e9.3.2026.11.30.21.16.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 21:16:18 -0800 (PST) From: Jernej =?UTF-8?B?xaBrcmFiZWM=?= To: Vinod Koul , Ian Rogers 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 , Samuel Holland , Maxime Ripard , Paul Kocialkowski , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH 01/10] phy: allwinner: phy-sun6i-mipi-dphy: Set .owner = THIS_MODULE Date: Tue, 01 Dec 2026 06:16:16 +0100 Message-ID: In-Reply-To: <20261130225428.99361-2-irogers@google.com> References: <20261130225428.99361-1-irogers@google.com> <20261130225428.99361-2-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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Dne ponedeljek, 30. november 2026 ob 23:54:17 Srednjeevropski standardni = =C4=8Das je Ian Rogers napisal(a): > 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. >=20 > Set .owner =3D THIS_MODULE in sun6i_dphy_ops, found with Clang's > require_explicit_initialization attribute. >=20 > Fixes: bb3b6fcb6849 ("sun6i: dsi: Convert to generic phy handling") > Signed-off-by: Ian Rogers Acked-by: Jernej Skrabec Best regards, Jernej > --- > drivers/phy/allwinner/phy-sun6i-mipi-dphy.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/phy/allwinner/phy-sun6i-mipi-dphy.c b/drivers/phy/al= lwinner/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 =3D { > .power_off =3D sun6i_dphy_power_off, > .init =3D sun6i_dphy_init, > .exit =3D sun6i_dphy_exit, > + .owner =3D THIS_MODULE, > }; > =20 > static const struct regmap_config sun6i_dphy_regmap_config =3D { >=20