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=1796079282; b=caEWG5l1G3Tinl+CxiCMsvyBxhhX1woVBMhiK5OFvx7ZCCXm8x3nZjI/TjNEtdUdkVud l1x2n9eB0BGjxipBI18AvYeLx60wfarSlu/F8Dybg3p87GcowkPiDgORcbNUknua8mmFv F07ZlmCPpb8f7XWoBpfySB3flqucKh/678mSC3//XVmlu6gWzWhBnN4io5t3v8kFdFbi/ tuvowamyfNXk4vRefqNzdLwK0v30buMRboMavbh+zvlJdPDazm8vgV8sSz28ossCVsV32 ZFzqh8bSHOLC0uT+T8kHYLjqqTQyiyDjccri+s9GUhRux3sneErF7S8HZUwFk1jt5Uw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796079282; 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=Ogc6P0j6zaRTvkIwr3TuFwaqxUQcMZNhrzAwa06dyNA=; b=iI+lJMXSP0YxEYy+Z4K0xDaWM5COm+INXe4G/gEoLtPdEvdKQuUOAQYxnYFoCltQ0OWW z57Iu8H1JtOMzo/8TbtwxxMBM6L0f2BeU4/GJGFSBzkYrVcvYax15w4hyokWch5lFvAwm Y+NkexQe3Un+qR9p1vKJOuROp4FmSBbpzaGpAWIx8ktgcbv1tfh35ra+FyeEGrOx3RdtA onD0Wim0Vzfx/061ZLYjSfO5mT47rzUR0dTQzIP6Jb3LpOKtfzNjVABVzOgPZcnBjJeA3 ZE7pr8OI5WI+/BJGTZoBs35oymhKzqHg0j+JFYDUcdU7KUYqdVecNLQH20Bpe9GXKzA== 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=IU7UEqTq; 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 3EF16606A33E for ; Mon, 30 Nov 2026 22:54:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3EF16606A33E 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=IU7UEqTq Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-386a65fca25so10593642eec.0 for ; Mon, 30 Nov 2026 14:54:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796079280; x=1796684080; 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=Ogc6P0j6zaRTvkIwr3TuFwaqxUQcMZNhrzAwa06dyNA=; b=IU7UEqTqKhbjRy/hoxcp1B9yCxcLVTAloLt+k67Zf7BO2Q5nVWPqq+jOs1n+J/oH6B Ly4ylUIU7HziNwmRCYtVfmY4dUQqECoJXX7RhNflHhIVK965P6NkmjXd9/RlYzAKFLvX dRUYgRbBLxuGnjLdcOdWwnoL3B0hDcIRxU9SLV8PHW5FTsqcZZMg+2EDcirYMPsh7Hag Z1ZLJ6R6wN4UQUC/gnBb+ycia+FkZhKXsFgBkMBL+mvBgD5RBJXFmEwxHUeRbhWpQgek weRBOjgZRLfidfC1O8pNi+DbP9Pzl/MR3iTLNe12MWJqddtJHnGkaDtNnLDUULRtlHQJ mIqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796079280; x=1796684080; 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=Ogc6P0j6zaRTvkIwr3TuFwaqxUQcMZNhrzAwa06dyNA=; b=H8XZteFP51hk0OGPMtGJpLkd6eR6v4c4YI0z0DJKVKWrIHKrQuNg/F3QjjlXe2TMpr JfIXlYcx1fDPcnQXy9I9mMtfZj3d27aO2vAtJhoCsblZ6dSKBn+vppniCOi2N6+5i2+o LJkCeI3/6JbVk3qJkuTRuaumiQMwaVgphya6+Gglsx+Gf9gzv9qgyrG8kqcasFVxtPBu rDhqoBv5iVfjh9tiMm9BYlYTulV5Dx6yWI4GBYlGTSLmvcpUU22L2nvLvC0HlQHg6jek L5fUFh0JTIa5u2SP5YLecjAS+aHKNIoDWw294YlZNLBc02QnuZgMnDARjo+zp6JmRFLs he5w== X-Forwarded-Encrypted: i=1; AL+hErGU1dZHi6pYsQBo9qcBfhFOElH9wrMGaxMoL9kLei0n3AeXJRIPeV/FutXoXBVFBJfyQXPS@lists.linux.dev X-Gm-Message-State: APuU4Z+vJ+aKyEj9754siAmnta9gpevD8NSEwv/11zNn1SKGMclDoN2Y 0jZArAr5ZsV0mSuMiP2BPHfpPfdJgzFwc5KSh4eWrvkrgdW9qEns+Gd07dWMqTcS1g2KeHbOm1d F5bG3OfqiPg== X-Received: from dybkz3.prod.google.com ([2002:a05:7301:1a03:b0:358:2c8e:30e3]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:693c:880e:20b0:386:b26b:d67a with SMTP id 5a478bee46e88-386b26be80fmr24697614eec.12.1796079280113; Mon, 30 Nov 2026 14:54:40 -0800 (PST) Date: Mon, 30 Nov 2026 14:54:20 -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-5-irogers@google.com> Subject: [PATCH 04/10] phy: eyeq5-eth: 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 , Vladimir Kondratiev , "=?UTF-8?q?Beno=C3=AEt=20Monin?=" , Gregory CLEMENT , "=?UTF-8?q?Th=C3=A9o=20Lebrun?=" , Vladimir Oltean , Luca Ceresoli , linux-mips@vger.kernel.org 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 eq5_phy_ops, found with Clang's require_explicit_initialization attribute. Fixes: b6e33443876d ("phy: Add driver for EyeQ5 Ethernet PHY wrapper") Signed-off-by: Ian Rogers --- drivers/phy/phy-eyeq5-eth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/phy-eyeq5-eth.c b/drivers/phy/phy-eyeq5-eth.c index fae147268f5f..69c428a867c8 100644 --- a/drivers/phy/phy-eyeq5-eth.c +++ b/drivers/phy/phy-eyeq5-eth.c @@ -182,6 +182,7 @@ static const struct phy_ops eq5_phy_ops = { .power_off = eq5_phy_power_off, .set_mode = eq5_phy_set_mode, .validate = eq5_phy_validate, + .owner = THIS_MODULE, }; static struct phy *eq5_phy_xlate(struct device *dev, -- 2.56.1.839.g22a8290db9-goog