From mboxrd@z Thu Jan 1 00:00:00 1970 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=Et6g/WFkT4PVCYoFjkF6Bj5xW66Nzs59FmYsnhsgJEjROkqp8XHpEBvCIbXzqn9ZV0D5 Ls+LhqreJxMqVc/pbZlKJcVvKy1dYh59Y/Q7/of+VLvSJZbiYx380ScUBWeuRPcxyLo8v 8PirkJQrXZeKZGHqLNDMU9kIRsmSaOwJRnmen8TKtLXL+LTtpZXaK8R1z2kEFJ9WHHA7W l+bvVZq5z8sDSab1F2LDF9k2lKwnFxC230XK3WXlCoqOpUOd/wXKFX1x1Z2aG3bIsOUaU 0irC2rRoEzmgHYA5HdBtN1LAAm7/IWlbLzMg9O0B5doTIEwb+eFjJrrn8g97p57LjNg== 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=uW7IgOgqyYeUSBKng9ziDGRgd/9Vp32AC0OjmdhIHe/8RDLeAXsLHndRsSF/VEbDcMQK An126JoprpqYnVrzN2O7n77c7uXYK22zDkDlh7UEafMe6ACvqM7wwVAzLyYlYEQN8WJ9w EbsSmaxAE+BWFKdPjMA+yPB6agZn4zJvfq5FSGMTWmaWri29RSBCfkWJb0fbsch7xJhPW 7E+5C7lIfWOPchKXLTbOzxHOeigph2cMzvNVFDDSJU4o8+Lt+HJekg4tcQ/xihHCi1lRH DWKuvVn2lrNfyNIBKWjkGDWS2tHRvZJ7q/VaGEKw9glUK5mY+3QqbcDeHvmfceunThw== 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 B1A40606A331 for ; Mon, 30 Nov 2026 22:54:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B1A40606A331 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-386a65fca25so10593790eec.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=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=WrSMmqX2r6N3zgLAAV2g1/i26qgdE/IyxAO261VrXiCA1wXDOufBpbQt4dhCc4mlBK K1zq7jhaGTRVVksd1eKjIl+F+gH8gqg9UfKSTnVR9KCwfRnC+fZX4QniEMUBapsdmFZe jbXgGm7ibeWhi93CmDfBZo8f3fceHDrCvAg8slJv4u5Q2iCTtWZu1AJSLPsfW8ux6bF4 zL87NvTA2gZ0/bNVLZdfnpTGb3G6++ILs/26Yy2cPY+3I0V/lCizKwMhuR3x2etyaiKY ga4GeJL+L+P7eVK/K4onfbsQYjiimJW0kVLkBVyUQWUp2zZAAl/ZgCIZHx2NhEf6fqj0 AkiQ== X-Forwarded-Encrypted: i=1; AL+hErGtkwzXOx/6sqkHYK55bJgovqHfE93W3O27c9v4dmCwuU5s8/l9eRnbhpYt9ThZnSCVNwjyqDoLHrvR4AY=@vger.kernel.org X-Gm-Message-State: APuU4Z+SIznzITHOQZvLIQmddh1sR96zc/8OJKXrY3HQ1+vQecMihFeD vAp9twbAIbrt85yTQWsUmADggW6QMu373YxF/j1dT4HgzpRQN7pdIHR9Xx5beOFUSiz6XqabLnc N4TM/umCmog== 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-kernel@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