Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.197 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796079283; b=4CWp5J2v6d/aDA7QkzjztSudvkFsmCrw9r/U8bkQ+a2HoAxxq6k2ZQuIip232rPuQ6Us BFG8005hewvtNKfQmjeOfkVB201SN4gPBb2b2OestQBiGSHqAL0UtqlP1UsyC8123W2VM Cd7HI6h47A6yRLfUTnl5gogVXgFQK3urdJLJY0dCrmyjRQu0d2JssaLMqlF+gd/Im13zo PnqU612NwwaDFwQgWOUl0uAd3BgVYFIT1crn5jxvZmOTKFT7fJe76dyyZ5EI+opBwcbzJ bjew+Rz81gKU9H/6wChOkpV/ARnB3VRXP5v9AweBxo5NshgVscBRlsw87VXw6peq53Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796079283; 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=dgYZTpK0NPev4AhLy/Qup1KP4ovTvumfsEHq3Cu8b0Q=; b=TkyQjFeCAl9Dxb/jIDUokmVl4/6DcxtGIMglH3ys69a6nBnxilmdxj2Sn9n0I0EsuHbF HbhMLjt2gDkqMn//3htoelIVnqRnzU2qOtab2A373/tZNjRsxVdOUbOOin5qPElkYMjAf ZqdUxtWnOjNwLlX5cH1kl/CmWv3beC4sGw7hY4GFmuyr3cXyWQbI5PHleEsFYtps3/OiF 2nTnqybeQxTZoaK6hXkaar4jtEtKEf08jnkPBThUdyGzSACs3ekalhWX0Wb0yhph8PHeV xEYcjwpc3oGCfMpBedbMQ2BCn6nKuJNcFQnHjjUmOqdQPSuspJkH+amjXgeF4fuegag== 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=NwA25LpR; arc=none smtp.remote-ip=74.125.82.197 Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) (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 5D090606A32C for ; Mon, 30 Nov 2026 22:54:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5D090606A32C 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=NwA25LpR Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-383ec96a7deso12785696eec.1 for ; Mon, 30 Nov 2026 14:54:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796079283; x=1796684083; 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=dgYZTpK0NPev4AhLy/Qup1KP4ovTvumfsEHq3Cu8b0Q=; b=NwA25LpRSPjNGotC0H3kdBvRaSV9bB5xsFiqL1rGjbNYH1rh9AIH55YGufdvvWJQ3I Vst/5TOPwWuCTMar3pOTwSR3S2jL2z14zuZidcVPYq4lIlR1Pikxcxvo8v7KzU7IxmnC uuS41JUUVGjuhibG1qvc/GtJUrjzntlGw06eOONwO9LUw6nvP4aSmxI1E8nVaBMkXneT vIVkrCgnas+eChcsNM4fa9Q/AQLus6tFwsjZJu2zzwkbnBb9+fYg4UEEppfYe50HYbmT unWNQ/S/8aHqXEcZ/ovY28qxFQqr63DJRc8BavYURDCWVhRx3peCFYNpDMjh8ncQAw/u nBxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796079283; x=1796684083; 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=dgYZTpK0NPev4AhLy/Qup1KP4ovTvumfsEHq3Cu8b0Q=; b=nTd1z5qxtLs7YmkqNerRzdG5Tq0KLghBXpukNoAqGkJ0+OxgAejZcF/p4gbiFx7RAj P6jX5VSOuXVQbnYtx/JvOZQ2+vgE7dHqeAai7PzSVGjKsh3VskjTR8Mq0P5kCyoiplBU qZTYKWDgHLT+fGQPWFMfCntpgxoAZmIbPr8DeZDepeD8TA0x3DwTufbrfR8EnI2c7R6h Pmw7K1L5LhU5DafNSnCRTm8cAzJDcmAbszt+MBLJ5i1GQwrxfOa4Oj2e0l0O/48HX12g izRRgghGOKNiEiiEoDd6kRdNpQtcJnXYqsaHjQ24B8VKEzUrwo7EqlKYjpJpTu+ApHgC qS8A== X-Forwarded-Encrypted: i=1; AL+hErG3tw/y8wzAS/NQGTTayjVIikdm5+CG70/th+MIRGiIMyAOgpicELSokHPcleSWTQCvYBjGU7pRLGEQccj+ZXPVmQ==@vger.kernel.org X-Gm-Message-State: APuU4Z9nHkSWgdoztlpEKJSXdFm0LBdlXqMjBmySMq62z9qk+XzaY7ec o2mpw/FxB4uuljpl1g7SmVl16N5H7HvaR3EirjshgFD5L/qo6ApkumSALuf1VeNU/s5YpRZk4P4 UENsJddpq/A== X-Received: from dycui28.prod.google.com ([2002:a05:693c:601c:b0:384:8179:4ea5]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7300:de44:b0:375:c5e1:931d with SMTP id 5a478bee46e88-3857073ebabmr34356241eec.25.1796079282216; Mon, 30 Nov 2026 14:54:42 -0800 (PST) Date: Mon, 30 Nov 2026 14:54:21 -0800 In-Reply-To: <20261130225428.99361-1-irogers@google.com> X-Mailing-List: linux-samsung-soc@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-6-irogers@google.com> Subject: [PATCH 05/10] phy: google: usb: 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 , Peter Griffin , "=?UTF-8?q?Andr=C3=A9=20Draszik?=" , Tudor Ambarus , Roy Luo , Joy Chakraborty , Naveen Kumar , RD Babiera , Neill Kapron , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@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 google_usb2_phy_ops and google_usb3_phy_ops, found with Clang's require_explicit_initialization attribute. Fixes: cbce66669c82 ("phy: Add Google Tensor SoC USB PHY driver") Fixes: 8c2b331e6327 ("phy: Add USB3 PHY support to Google Tensor SoC USB PHY driver") Signed-off-by: Ian Rogers --- drivers/phy/phy-google-usb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/phy/phy-google-usb.c b/drivers/phy/phy-google-usb.c index 2acdb2b0e534..b820b1e34ad9 100644 --- a/drivers/phy/phy-google-usb.c +++ b/drivers/phy/phy-google-usb.c @@ -348,6 +348,7 @@ static int google_usb2_phy_exit(struct phy *_phy) static const struct phy_ops google_usb2_phy_ops = { .init = google_usb2_phy_init, .exit = google_usb2_phy_exit, + .owner = THIS_MODULE, }; static int google_usb3_phy_init(struct phy *_phy) @@ -470,6 +471,7 @@ static const struct phy_ops google_usb3_phy_ops = { .init = google_usb3_phy_init, .exit = google_usb3_phy_exit, .power_on = google_usb3_phy_power_on, + .owner = THIS_MODULE, }; static struct phy *google_usb_phy_xlate(struct device *dev, -- 2.56.1.839.g22a8290db9-goog