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=1796079277; b=xNNgWMmog558kMMl9dDZTX7LeHRQJG9uImVgDPzueI0GthXwCXQCTTQpyH4ZYjDrWgO/ EtlXoh5Vxk5f932aIeJ+7Qmv/k4tt3JtbzaHieO7Rn5CUo947s+pWo4fOsReeyKaQF31+ ykPd49NPfMVeE/6wZeU17KQF53MAjgrfDRQYVT/4bTew0oD/PkMbOCfbwHjs4pQRiUUhn CBhuzjXUm71lxgBHUVnhuBSR+/CMMt/AEAmO8OaLiwLBL24YjRyW453f5Sey8XEtlNOnA lFj/HIlcPt9q+NIQXKJ8kMdzheGsRdmnLR91tJOlTTNoSof0fRdrNdxjaw/KAF+PGeQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796079277; 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=xyPP1iaOyjGMW0qr3IicrDoj+KgK4bXtwbnDW2NvgSk=; b=rAJoP1cLiShwgUY7TbCLgJBlpkXyGUfzA6msXAXm49N5lFhpT9s3PU7nbTQSWR9ms5rq 5YsGkMXs62OnVD4zFPO1/mgJoIXvZZ5T9UWTgm329d4JZXnbPUOZNKp7vbv0lE08ofrxu 0qkzbltQSsbhPLCuEXMSsqDNjZ8UCEK2JnyWlP2mDqRWnIPJKZzcSK6cknT0Z1fpWyrhp zRYvUiIkpLWEFwsRcZwvAk83h6B41AWneBiMLql11qL/KZoXrf9Z2alnrPhU8HVFrGo4L j9ZCMxYmvyXx0bF5hLD4O3kAWUPUt8tBp/plU8y2DspgL8uT+pOKWcbVRRIo597XlZQ== 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=Ko64Xkwb; 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 4B4D8606A32A for ; Mon, 30 Nov 2026 22:54:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4B4D8606A32A 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=Ko64Xkwb Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-3846d5f54c1so11965212eec.1 for ; Mon, 30 Nov 2026 14:54:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796079276; x=1796684076; 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=xyPP1iaOyjGMW0qr3IicrDoj+KgK4bXtwbnDW2NvgSk=; b=Ko64Xkwbhyf538MlJCB7vW0knB4DnW1OiD0DKNyYI0ngHhax09HNFVmDrr7K9n4No4 9s0ZNqrcSAfiIE26XpfSTmOqWJQWKfHWBrX4Y2CLgv4S3pXcrYHA86jgSbKYDarIaO3S 6SfG0lyqIc5PhDrt4u0myfzSV2fjNRD14qjmoAJJmdnpC/5ID445pUoA2SU/Np2YC+gN +jEujDDQYQkvZet+O6wB7G/7jrLHYotBiPGJLTEHqNCY2MZPYg1ew7Yxb37Li+SkpQbw ETPMFw/As8natxYOJVsc9HALqaNoCIhSbEMvj2MPROY7e7yaQIboZqlC8/P/uku4hdZP 4EwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796079276; x=1796684076; 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=xyPP1iaOyjGMW0qr3IicrDoj+KgK4bXtwbnDW2NvgSk=; b=QIZF8BMEHe0lqjgk6Jl2VActDV49y7mzp2T5qbZXalgk/LDqXbr4rIrkY3W+UTxA6Z 7jQXn47q7KGG2LUlf+naTf/+cnqZ1IIkytBDaBCKq5eZedq7T6lZn+aqn+Jp7XIBfuKc nW915FzlAsY0IwA83I1okDULriyJyyN1GsN5AWF5h0HYhud68yaPxJZgfIBNhNtt9C1B +DA/eR/a8N59IGZ0zqy5V5G7JzuUUw0/hR6L8UqUVVyWtxw3nOpU9CdRrgIJWGzl7yK5 xrF2XDI1dO91b1y7OkPd8pqzrBSLZ1ZrBbtWfOLF+Pi0uCTgTEKS2KknGboai81jUgPG Mfig== X-Forwarded-Encrypted: i=1; AL+hErGOaLGFO3nGVLuGtKZg3Tx3QiEZ23gL95nLcBqTQf8Jl39O2hj4CkO4vBbBEM+Gl0j8ULz+Xpcy+6GKsE4=@vger.kernel.org X-Gm-Message-State: APuU4Z8+kZg8k6HKnUy7EjaUfg2KVePIwgZVI3d+rgIit4wonMnGe059 zQ4dLm5Lhgmdk+hYzIeyjxE2WqAwjPYUA+pwwnwyfmoHJPMtaZ/ETdgciXmF6/PO5RtXSZ9dAij rHUyPz9YkYw== X-Received: from dybmf45.prod.google.com ([2002:a05:7301:92d:b0:386:c9b4:86cd]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7300:c696:b0:386:c4bd:7ff0 with SMTP id 5a478bee46e88-386c4bd8670mr20186385eec.13.1796079275820; Mon, 30 Nov 2026 14:54:35 -0800 (PST) Date: Mon, 30 Nov 2026 14:54:18 -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-3-irogers@google.com> Subject: [PATCH 02/10] phy: cadence: cdns-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 , Laurent Pinchart , Pratyush Yadav 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 cdns_dphy_rx_ops, found with Clang's require_explicit_initialization attribute. Fixes: 41d393aaead4 ("phy: cadence: Add Cadence D-PHY Rx driver") Signed-off-by: Ian Rogers --- drivers/phy/cadence/cdns-dphy-rx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/cadence/cdns-dphy-rx.c b/drivers/phy/cadence/cdns-dphy-rx.c index d3f7e9513dd6..97dbbe789bb5 100644 --- a/drivers/phy/cadence/cdns-dphy-rx.c +++ b/drivers/phy/cadence/cdns-dphy-rx.c @@ -232,6 +232,7 @@ static const struct phy_ops cdns_dphy_rx_ops = { .power_off = cdns_dphy_rx_power_off, .configure = cdns_dphy_rx_configure, .validate = cdns_dphy_rx_validate, + .owner = THIS_MODULE, }; static int cdns_dphy_rx_probe(struct platform_device *pdev) -- 2.56.1.839.g22a8290db9-goog