Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.198 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796079293; b=oBFx2EzNd/gSlMwIQ51CVdLGSeMFvIRr7AH1O62iYmQzcGk6Qxn2VkQ5oRY8B6e0Iuqd mDjvZVJP9Qh+A/W5dJsPdkHpYbQ8MrXoCDLZqQiLXaRbt5MdyukKeg8qJQWy/oF6V5oFD ylXKK8mvnnzHHm1qMQ9/x9MMxkEM+iKLsTEybXKkKmxvdGykPheIrlonhFKsmKfqa7F6T r9GQfx447XNuqLHU/af4I3i7XO38JhrcoFAxCCazeuBwwWj6b8K1sE2zAbEzHuXuQrRyh 7wQf3OAEpbWHJ/dsPqA/mULTAWcSEHC9hdmvUlq476fQZnq6GyCf4TFLw0F/q7TNWvA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796079293; 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=KbICkevpfedwMtmTY6AZtjvmDW2M4FZ2Ai+xfVfunyU=; b=gdsVJHaUPWVPVsxDeRoYYW9IsBM//lJBEW7Y34UK36DkoUhXUTaZQDnYBwEtyvcjelue 2CjBomd8fIF5vWa2fNOQkd8tGtRiqGEI1VeTsYZmhg9KW5pm29dQz6dsVOE1gxKWSces+ NgLxnD3AJKFsPMgOU+0X0V4v558T7dzKL3zs4ERt1UE8TdTUO9JC3J/fxpa+94c+1O0TX Udbw9eYIHy+4qpGwMJfKGIRi0WX9Mgu0Dsiz/rNN48UvhV6tMiKhVZmB6BqKeNpywn7IX j+ekCr3EaRPijWrs2MA5oZASRSc0HrHB4R+yGOpQ6wwG/Z4TJWknBebzxu+K5x4UdDA== 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=abl869oG; arc=none smtp.remote-ip=74.125.82.198 Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) (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 C0334606A332 for ; Mon, 30 Nov 2026 22:54:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C0334606A332 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=abl869oG Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-3854627c1c8so14210152eec.1 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=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=KbICkevpfedwMtmTY6AZtjvmDW2M4FZ2Ai+xfVfunyU=; b=abl869oGlHbfhg0lLDf16fAPsTjVp7oeWfMRrpfh/WG1M7pW0BL5g+pwa/DSdwD7YZ PUfTYQo8nU8kiH+1Fr4tNKI6BLc04kFjeNmtQ6lsZiwUCvyStkM5js9slEvQDBP3jUvN 8ablJUDLBpe8wMYt5k2iAMp6D3Wzfx8qEI2qbH6RNOlI93brncVFNxSqVbLzgrIqhFUn J9QRzM1GnbtDELYwxul7RSqbFC6VZz3foB/iaxgyWaBqtFzOfDAwzZdwL0BUnaq3eHtA NBdpduC3OLRNxrulUfxWmDqjPnJhxqJ656TwsFgmzQOQbBQHUCC6GFUK14H7jM8AfXDL 9Fsg== 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=uizeAoY+bCnPImPTrdEkWe08AYn3SkB14K29zfQw3oZsbFjKAHZ6DDvDg4GxL+GFS8 5atRfF8cxpNdZPV/zUKn9UmhsKpRg4CGlz5AOCadtxRfQRaBgNDV6bJUHOZLZw1Hn+Nh 3hgNp5paukKjzddu4YBT8ofsCCqq0y128e0F0hWwu6k9eY6suCD9MQYS50ouGU21OO51 X3vU9+pZJq3WhEDwnhIA5kTUKWhHpLhYoGWsak3B/gKHjMEpBOR97U6col5B7GeKqhKi l7tW+s12ES/IFK+3z0o5HuuMP4CjXiCMI3NrIQcjlng5ZQfejyl4hhnGQBVe89YyFNXd 6GIw== X-Forwarded-Encrypted: i=1; AL+hErGBn0ZtyI1+piCeTyPniNn4m0A8gxdPApMX/r0vfShhLZoId4TWANl58+PA/Ibv6XUCMbcrUfaasAY=@vger.kernel.org X-Gm-Message-State: APuU4Z+XBSnwwoWR0i6tW1mwcN561rSznKGbK2skHok+6z/vX9F+I95L S5YASm2xz7GnfOS37wk6PCb1/pkQJZIBmDf2Bz1tKeBzDJTvOSWg7wVYeSquse6Yvr6HLU0UF0R my8W/y87v2g== 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-Mailing-List: linux-usb@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-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 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 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