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 B3360606A320 for ; Mon, 30 Nov 2026 22:55:12 +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=wqSqYqeD; 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=Ez76d0e8 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=cDimC0DXCTKAsm1Y3m7zZlzmV34Zt6z0F8jvIIEYWpg=; b=wqSqYqeDcFJc7IsQBxpQqGOBkX Y3/LYB8uEimUVJpOJH4XGjlhGOMx1ghOah6rnJ+GUMIZntRmV9xxX/nLn1gstkWEgFeWeANTzGUKu xLBJLmCQTs5OEjwcLNM2iK3GdvqJQzG58J7TBOeIzJZ9PoYRFKEi5zWfpAI8EOwMMKNcvHOBb4ZSS ZK9IVtg2fyEeCAb8c9o7H7AxnlDRGkHoc9zuMLeLbFEFqEl+Paab8mmVHSIt2MfJfM/FtDcM1qB9X DFaf1nleeRlLrVBNlB2Du0jNQRSOlvCaXU1noCgmNYWekefm5X+7KZlby58th/iJVOdehX0yKrBjW hd43EZBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYAHA-0000000610a-1RJ4; Mon, 30 Nov 2026 22:55:12 +0000 Received: from mail-dy1-x1346.google.com ([2607:f8b0:4864:20::1346]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYAGr-000000060pw-0LL5 for linux-phy@lists.infradead.org; Mon, 30 Nov 2026 22:55:03 +0000 Received: by mail-dy1-x1346.google.com with SMTP id 5a478bee46e88-386a65fca25so10593791eec.0 for ; Mon, 30 Nov 2026 14:54:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796079292; x=1796684092; 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=KbICkevpfedwMtmTY6AZtjvmDW2M4FZ2Ai+xfVfunyU=; b=Ez76d0e87FEKsAwQIASAF/O8Gln4+7f9wGcOljRg1kqXdTpEw70mwRR5ti5J9Erus6 JaRUd55TuIFLl6dI9eSsB0OA98VLL+eEhOn5hNEROy/nyXGFRqYNHfxRXbEHRzWmgEbd aQ7pSpcD2ThfyFpEFL2Us+3V6dsgIKPpVDu39INKLJ0je99oWP+PIjllhf8RwzClJ42M +eJnnglJWRQwwl/wp2RlPkhd141YgGvWaPgluA3JhZy7du31wblYcB6HNLvpD5Z+CKG8 /5Mogz1dmiF0Prggk7ckPuLVPHM/OLcFv3/N2Mvq+/9ShMaFWATgAlKcAfOj8TFFoa3b 1WBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796079292; x=1796684092; 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=KbICkevpfedwMtmTY6AZtjvmDW2M4FZ2Ai+xfVfunyU=; b=xzqvPYtmZIZ07cwbVedQhinFptC3r88mdC2Nhx7jZBeggKsJBfUgfW1FcWr8H4FGTe kEoWQ40Tg528tYtaRz0XsoubmXRwkVqq3V2AXkY5ZrLBGq2XLuKX8qblgZXSRpuEDI1D Kl9DsNAbdPTB52wF6A+kQilVLhfY1NT8CK5LSyKBXBf34RbADdhwY5Zq8fQearYn1Taf 4szqPqkPvmxBOevczlB97WgGGfsBQ+ZreUL3MRvWroYgzzzhW/m1nzNuD7IgFKVj/vgb JS8wTpPFS2G31IQ6bpggKGsD/480t7R4Y7e6yVUPspMMjaPbP9YOZ4Nv141VZLGx0BWA EAlA== X-Forwarded-Encrypted: i=1; AL+hErGZNswB1D99AXin/aeRY8+zAL8eUQl0blrrK5JjhT048paBRhC7/XRLAUtDC+RdG31c+oDTR78JWpg=@lists.infradead.org X-Gm-Message-State: APuU4Z/u4E9nNyDTSCLo98EQ5pT3pl6qhMg67aN9rYoCX+1IoFoyfV1X BpYxnAWcwlaKgoitVOxw1k1xH4FS0QlKXOWK3m0x+riN50pD9lfkZCy0mAnz6i8RRUUbVEmcMwh 1BK1tn0DrfA== X-Received: from dyvj19-n1.prod.google.com ([2002:a05:693c:87d3:10b0:386:9d73:d06d]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7301:714:b0:379:730d:db52 with SMTP id 5a478bee46e88-3857045098amr32399035eec.32.1796079291511; Mon, 30 Nov 2026 14:54:51 -0800 (PST) Date: Mon, 30 Nov 2026 14:54:25 -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-10-irogers@google.com> Subject: [PATCH 09/10] phy: sunplus: usb2: 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 , Vincent Shih , linux-usb@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_145453_157040_9DFE74E0 X-CRM114-Status: UNSURE ( 8.83 ) 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 sp_uphy_ops, found with Clang's require_explicit_initialization attribute. Fixes: 99d9ccd97385 ("phy: usb: Add USB2.0 phy driver for Sunplus SP7021") Signed-off-by: Ian Rogers --- drivers/phy/sunplus/phy-sunplus-usb2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/sunplus/phy-sunplus-usb2.c b/drivers/phy/sunplus/phy-sunplus-usb2.c index 6fe096ff1e43..15c068ae48c1 100644 --- a/drivers/phy/sunplus/phy-sunplus-usb2.c +++ b/drivers/phy/sunplus/phy-sunplus-usb2.c @@ -227,6 +227,7 @@ static const struct phy_ops sp_uphy_ops = { .power_on = sp_uphy_power_on, .power_off = sp_uphy_power_off, .exit = sp_uphy_exit, + .owner = THIS_MODULE, }; static const struct of_device_id sp_uphy_dt_ids[] = { -- 2.56.1.839.g22a8290db9-goog -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy