From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DC84606A338 for ; Mon, 30 Nov 2026 22:54:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=4nzzbMTl; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=bgy/DUdH DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Unsubscribe-Post:List-Owner; bh=y+3RgcTSD7m8oxnAcTREQL//1JgMreNY2pDcCA18PvI=; b=4nzzbMTlH2tg2n5M98/1a9MeFe kmKEJ3r7QiYh8OHfu+Kk5S50BaAMJ7TYrxNNhsQRjDc91K4cc/vinvqzFWsECsdq4HX+a4oVrz9DB kg6/3e6WxxR1wtbEo6MVYkMurwN/C6cVo7BVsLOsb5BiJzM3kXzR+Pg8YQJiRfPas5l2bOTTu1nrj hdFLrzVYQcpDOtb29eFE89a/0EQNJ0SQ21F0+VszFxri2kGOx0iXoGPmHH9AKFPQ2WJFQQMB4TX5N Zn/wxG8RdhAutDh1kar7oOJ2CF+Fv3GYjCVZCZXolxnnvJmuJPnKFrp75XE+Gyqxb5weqHrer9zlU Kj2QHvQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYAGk-000000060mn-3tL8; Mon, 30 Nov 2026 22:54:46 +0000 Received: from mail-dy1-x1345.google.com ([2607:f8b0:4864:20::1345]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYAGb-000000060dK-2YZ7 for linux-phy@lists.infradead.org; Mon, 30 Nov 2026 22:54:39 +0000 Received: by mail-dy1-x1345.google.com with SMTP id 5a478bee46e88-3846d5f54c1so11965215eec.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=lists.infradead.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=bgy/DUdHwrSpZvVn1DX2tK9EGwsrJ6n2o7x5rUjcpPr0c0lMSlbOtisVHRiaE79MhR WtdgBeRs+On06ZD3gprzWvbbOFtLA7N4dFrXle2jyxtykf2hEK+nvnaZC2q/nj/Y6+Mr Bw0Ep2p4ArqYj1fSfkhBobxXoETlqm1+tlqvA1D3jJqzlSUEQh7UNMjxanQpHivKEo72 6Fvp/12eTDeUQGiQom3ZAefXNO8H6YaTaQqK/by+TbGiLPP0QPd9Kl2tlGxwZ3TcIn4u ZxiHYvxuUc7kcmIPw3l2Cy/UnBNc788O4XYWe3cOORJjJQLAA3dLCFk8CO59drTN3Gh3 6ypA== 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=IqJb/WrfVDRQFA1pjeIG7XqqJ2XBb08zY0fSxv1n+gOCxd/eOFniQJo7bNlMYUxiuQ RC8m6LEtgUDpAu26fP9AxM3NL5lzVKed8n2MExfA3BBFwnZKPw+A9I7BgHvaYpyXd5Hr Q55EleP51mqBbPRs8BoSbfdA/frO7lZ28FgSV/X9PleOnBYeg4Ddg4cXGHwK8Gnj0hsu SWLWEC+vkJVaeEJY3RLu7cb6C0V131JDQdNZVvbdOnD2Pqycgyejl+RycEy4mq0stexW H+NgHy1LxGLHU0rBBxdzYsqPxga0Jl38332EentSarKaZWJwmEo9yWsXsFpq80tjcosm RFNw== X-Forwarded-Encrypted: i=1; AL+hErGjo7Af0Gpssgs1StGwkQV2neYe9T+8ddHnyxXRaayBRQRVMNjd/ZV3ffFOwaw8H+UWSLWNodeuEIo=@lists.infradead.org X-Gm-Message-State: APuU4Z+4U8JKfuoncdCVcmtCqtPf1sWT7qbz6ewnl0PVQRJbOwpbhjKG QOEV+NopJBM1790Q75QkbSHxMp9lbl/b7l0Q/vCj6RIcG9P/rkC9AbciiV71x5+dB/UaSHLtby2 Tg4susVpREA== 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-Archived-By: 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_145437_662704_3E7A5836 X-CRM114-Status: UNSURE ( 8.69 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -9.5 (---------) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy 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=1796079277; b=2aqk5byNdhDDqMrqpO419rRR8O8ke4V2xVM+o8n70eKOdqDzTbV0sjiXFmO/jYf30JzK tg3U8dLhYmYInyKuOK3z0Pxbds5qHGMhFrbrL3yCtcgggCWEuTaeF/+KQvNnacO5Q3fgx LmuYYdgZQFPPBHR6G60YGq9efncCn843lziYFgUSCh0obHuh0ndnh9xAaKpnwdfF+aKBc hb2mSxXCyQwk9ftGX14gyCgCTfOAsWWOuVwdOzunkIcOPKWjsC3htt5QONpBXHKBA5Nki hJFfQ5IMldChTOn0Qg6uChl5FISNQHJOAukR5Yzcg+efCN0QXNVJqH6YAZoxEkfZtzA== 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=xdZRPDeoAwLqXqeuNRXWaB6C2AVDI+6RCpj29kK4DJT79nmgEnEh78BpjxL4Wc0yIdHV iBSleCMS+0ereVqVPm+gAI8oTkqdYsHHqzp7nCkV6Ry5fpR088u+LCSLvaae8A8jPKcCm VFLCiKNzk/2XlLipmZBoaFOl7ygFJc9sYaFP57vVIbZckZCizfqVHdC9ZbPSK47YMTlw3 V4U5S982Wbrraw46SrAWGDkchXX9Dz7SxI2n2e4ZQh71clW+/WesSsLraqGMYoS/mU5Gl pH83hYingkVdne6jogzRwDclI6JMyKLDcohl45RygDE/MAfuZWeqSInoHMlSaXafeVA== 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=VRLeqbdz; 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 447F6606A325 for ; Mon, 30 Nov 2026 22:54:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 447F6606A325 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=VRLeqbdz Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-3846d5f54c1so11965214eec.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=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=xyPP1iaOyjGMW0qr3IicrDoj+KgK4bXtwbnDW2NvgSk=; b=VRLeqbdzEFdSQHhHc/02tiHpnu5C1b4FQjRJh+TM31zg1PH8k8h8gMZ7ZMRDCpGBQd wjO+Hhx/M6XYCYwYLEYyqn2ca32YlWWOJxcF8audekN2W6SsMV78tQ2eF9P58dzFtyjO yfnJ28nzhbpuo4/0bJjbohn0hQ6xQ6glNawOR8/MmFxD66rS7pH4xKjZdxGmpkVxf80F iL5qiS7QhzTuz7dwH0seTVSMQtOSzoFwkLTZczvIr34AYIwQHlj7oDLMsZotoLDdwRy3 xtZolb3hvub35lGcpz7shqfu2tNAYTEqNmTRr4THJejgguzn0jrARNxk+qA+RdrGoRZy xE+w== 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=iAK0kejbm6ybW8zaGKToGj3wriMgltmcrmqXoU8fzNMShkqVfFoumRa0ZvquinDX2d bd0Zsyph0oE5PM+7Da283+kpzUTkcnQexlEIJmRe+lI4xoxDmHzOz5bxWS7gkbxKhNen bc/xj494NBsMZH4gV6Rl41E70HEez/cknv3ELImxcoRgZMaoM+i3cIWv/6WKUNyKGqWf lig+LUuen0tp0L01TWg/UHrkXlx4INt2oLRJk6M5WBVYG9S/fmA+lYCUU+SUyd/eZw2i TTRWzugkpblRP8udoRqbI8Ywqbltk62422Tl6CGVZhOBBJYiR5qYtno1dQmaQ8WXsvMC rNww== X-Forwarded-Encrypted: i=1; AL+hErGHVNgG0orOnXrBDIsr+nChKU7exQpow/L9ccOjWi+xCdf2yBKuKPiS8HqOBNVv6oNONmRU@lists.linux.dev X-Gm-Message-State: APuU4Z+U4uZNd/xJtBuY+zOsW8n8evbGACzDayw71VZDaJnncG3UYNJG 6XVLBpQ3/BvbS7dAqCV+bnVF3WFbht6eVSk7Xk8iSfkOUMonN6q3dhgXFLTWZG3JHAUOKLG0rmz zleSlU1FhCQ== 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: 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-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