From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.161.71 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796079292; b=0DFF/MKSvHEsb4JcXInGz+fOZ5oIklBbjZ607nower2Px/yubEKqahnlcnWrzdVKNx8a eOYvN+YSLqE8s03TFMDwsD+VBY9OoD4x21Rdc0RqlkANsJD0uBILRMBjRCy8cU+s17Bau SAUWLC8dWECGuaGCPd27owFCAwbjuD4uia+D2TCk/oRnfp8lN868HAiaVsDTlSY+VnVk2 PqjgrAFlJkPSSnTaEmfgVv7xNfAWh2YEfCPkUGHBhRwmulN8BW6hRf6cRvvfgyR+Ox5NN PRk23k1rjDfVB5G/pbmYDRdsw0d/ebeLLb4EO1INcCE+Nmwxr4xwTSaONmM1kLqFucQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796079292; 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=sG051382ioT5HtlTMptSOVf8d1qOSEco0Hvbb/hVCAE=; b=fhh/btDF6OHEM8DNa/o68P8GpC0F/DifgM55OTuXzNNoYo468wGL5WXIXduzoVUcSsvh yjXS4K1F6vwqp+NGMAFqpkVITWRZEtqkk/+iJBEPOcnYb69n98q1++pmV5p6vDRtUW+Kr pLdPklJfsJAOtD7dpASp/fzqq2uGq9oRYJJ9SOGMrtiwIwZGY6iFsZAeQb2d5ghzFs52r mOr1XJBXUjgb6sySrEKD/ObY8JwRLv5WPhikEL0KMyE1lZDSDb/5T3Dx187HfGoXnLx/p tNMajG0wXHDzFHiYtCIeWjT2fCXz8i9lhf8HfnY45Y+2K/vdUHh03Xerj//eMb86sPw== 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=hpVkNP3x; arc=none smtp.remote-ip=209.85.161.71 Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) (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 B745C606A32F for ; Mon, 30 Nov 2026 22:54:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B745C606A32F 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=hpVkNP3x Received: by mail-oo1-f71.google.com with SMTP id 006d021491bc7-71ade13044aso11065010eaf.0 for ; Mon, 30 Nov 2026 14:54:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796079289; x=1796684089; 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=sG051382ioT5HtlTMptSOVf8d1qOSEco0Hvbb/hVCAE=; b=hpVkNP3xec4QnCjs4nAzZ8wUOfuDO13ed68l3zIjNkDCxjN29CwPHsglDqplxvj6GP qU8d5Cm0TYIgG378GtWq6Jpzlk+7TTP5hbpIRpP12OvZE6HdTwOwCNfjt8Y2KRfytALu OxxKltFOu7LBdWAuXzyD0OQmCIF82IBCM685nU0sne1gqUOvWITksa+5ZKVEe6Wzmo+J dx+T9EvNYtWgmO3io35iZjkxeAtQdMwEiydjfoBXrKF+cJpOwTD/Fm5KGbjaJ64u+sPl UhOtxYVbrhavYsrL0/Nzx2x9LOCnqpa6WXlt1bTdqOccWuauFXsafRIrBB67w2sUi64n tDuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796079289; x=1796684089; 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=sG051382ioT5HtlTMptSOVf8d1qOSEco0Hvbb/hVCAE=; b=ZHLljtdyWLhicYHI3RyqD40YCqd49kga0B8z8rHgWbuwGvm1jm8rqAWRuCCJYDeReI aLS+vOIvnitGJeo2d8j0TX5z6gTTS/3nnmzct9IwD3eS18mHC11H0+Cubw+DKR4kAf4b fROdnxNczEwCc3Ab9wJWNA9BxMMhALR7KtAB6Q3JrhmGXgwqBJo+BkDJsV1+9lFdCkZg VndBJP8rYxc0ACw2F1ik2Vh3gMySvWBeeLMNbIfCC2dbi6aXCARJeLef47NRj7thT5lf hin9+AmPUPuoNU97mmW5RqBtLdUNTbSRJ+mnMecWOr8EbTyp13bJGd+TTLjGR/OYL43t c4tQ== X-Forwarded-Encrypted: i=1; AL+hErGUe5+hZaKo9TYDB4zlfFTvuinKhbmu9NFrsZtcHug1ZA6AzBZoSbjhMWYizuXKF/JZTpmL1CcmPniLNRs=@vger.kernel.org X-Gm-Message-State: APuU4Z9riALqya/nlmvS1LOBLuck8LDbd8M6gpZk3I5ojAY+P8HwCpaA z5SE4dTstNh2WaKbsW59hwJzhqkf1R7sHQul3X7u9vThP8GLR5duaFiltTt56uTkQLxIBTkGJwO j/nFf8q/QgQ== X-Received: from oarb10-n2.prod.google.com ([2002:a05:6870:c04a:20b0:495:bb4d:1619]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6820:4088:b0:708:f388:af75 with SMTP id 006d021491bc7-71b39576de0mr25807647eaf.46.1796079289357; Mon, 30 Nov 2026 14:54:49 -0800 (PST) Date: Mon, 30 Nov 2026 14:54:24 -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-9-irogers@google.com> Subject: [PATCH 08/10] phy: starfive: jh7110-dphy-rx: 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 , Jack Zhu , Changhuang Liang , Minda Chen 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 stf_dphy_ops, found with Clang's require_explicit_initialization attribute. Fixes: f8aa660841bc ("phy: starfive: Add mipi dphy rx support") Signed-off-by: Ian Rogers --- drivers/phy/starfive/phy-jh7110-dphy-rx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/starfive/phy-jh7110-dphy-rx.c b/drivers/phy/starfive/phy-jh7110-dphy-rx.c index 043a7e11d187..895a9ff5ca0d 100644 --- a/drivers/phy/starfive/phy-jh7110-dphy-rx.c +++ b/drivers/phy/starfive/phy-jh7110-dphy-rx.c @@ -144,6 +144,7 @@ static const struct phy_ops stf_dphy_ops = { .configure = stf_dphy_configure, .power_on = stf_dphy_power_on, .power_off = stf_dphy_power_off, + .owner = THIS_MODULE, }; static int stf_dphy_probe(struct platform_device *pdev) -- 2.56.1.839.g22a8290db9-goog