From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796079293; b=BUB+gfwPS5Tob5/sdUMg9FhXfVDb19ygRv8AH+LbN/A6lspKsdnUWkDlmckYS6nMG06M WluXEO5m5+Gd2GsiI7Wu2tNfMLafS4W9crVUj0duepu/Yz4oA+oFG95AAdrrAtralNY0V P5/af/FmbYlwBlxPX50C7RM2xPzAj1gs0fEWifV2T8x9AZBI2i/vi39UcHuquwb5QDOos xSS9ei2Ie7OKTKnambl+8d5sL6ZcNzMzBYnSYVGbsCjqgcy2PuG6XDZGhp0tLRyMS6i8o HLgQBgXROwam+5LXi+ZjArMyUzodrNwuASsvjp3MV9dXojIb3Xgb8X6wlkNiWjUdADA== 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=dmhPV1GzeL5nX63A1h3OOH7/Z/yN2iJvoG6HBo362x1zPKLLxAFtJbc8Q2nKrZyBwU1Q 9TFtghbB+42gCDBzcppI8MHsNG2dmrWfFA+OU2K5AXWhQTyh6JSj4pcs9yJtanX0QzyF6 tj46nCLqoX4PBpN+cBU1ECXi4kbng7flkT1GiRrzWlapHUG7/gQDpsVbOkp+KNXWkKk8t oMQRu6EpnwP754DN7oPUj3WcYH2CiEK2fbJPJ+zZowV+jouqZ03j6P7gIFrIn22R49FlO RzN32vUSCEIJEhhZJziw9XoL1H+mA26Wf3b6lMT9+/RQ9qnikrMTzCbU5Cwe6YtxNXA== 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="fj1M/F8m"; 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 4A583606A31A for ; Mon, 30 Nov 2026 22:54:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4A583606A31A 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=fj1M/F8m Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-3854627c1c8so14210155eec.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=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=KbICkevpfedwMtmTY6AZtjvmDW2M4FZ2Ai+xfVfunyU=; b=fj1M/F8m4cGk4xJ1XeuDMy73i9pA84K3NxCwLTOoURI4gGMwjAuBx/edUdU0wGTrHR rMrGdLYnReId2qWtvjgSy24LgTpkL/+X+hW+Lc98t6PXqp9bffPej3i3dImKzZhh/Lza FeuohU6LvnY0NYzXdbEuHIxLifPAw/w0jaOuDwuITYT4UIaskx7ZDHLtU/zBgglIrhcm jIKTOTBz7J4MCcVNypbQKv06djGTk/qc9TvYSdr0S3FgKz+/sl3Xstj/fKMunaIWl5n5 9rT27HbjFWFNxgqlhjfbC8I3L5ns2uFvW6om+GOnjA0Bzt2KEhRwyzR3TRN7V+0zFK79 Y/4w== 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=wj38raSgOEL81S19FvWULDe7AaPvUywb9/GDTaawXFLW254SYLCfRWQ2rdWgltM9PC HH/SSG93ADtdyJr5ybtEXZ6CrwWuIcs9iCw+JzkGKr4Mmgot5perKwfR59/oyE+9nD6p XiC6y7NVYKOUjpQ+PyWfAlIGcjFR3I6D+0J8o77s3BvTKixj3dqQ+VoJk2jO8mvAIxLy HYKFIBavzNK8s2k5ez/bRU85IuQOD5fkEvjM9LL+oYM7YLmNuNMYVNgbGB1XPx6bEWg6 TXfwgfK0/CR896CD7NIuqq9APtpYiHP1X1NFBcNYkUum0Hv1WnnbI3BiF12xSzXmgFzS ONHw== X-Forwarded-Encrypted: i=1; AL+hErHdHu/b/40B8QZgrWPfdWGvu27UNauUhOLmgkbhhyYZmEkyTrdR/KLbfqwndW6bKaoxBDsf@lists.linux.dev X-Gm-Message-State: APuU4Z//+dtdEQLOvnCHc50T8Vrftg6ME5H22WPiMEjB3KjXrsOGjDSk M2fn/oJ+nbsDDHe7dA9ihl4ZPveVdEVpaBz/AIqex8AIENxSQnv3gufwDQ+PiQaap6MqnMK51AI TX+sB/KHQXg== 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: 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-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