From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.200 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796079277; b=2aqk5byNdhDDqMrqpO419rRR8O8ke4V2xVM+o8n70eKOdqDzTbV0sjiXFmO/jYf30JzK tg3U8dLhYmYInyKuOK3z0Pxbds5qHGMhFrbrL3yCtcgggCWEuTaeF/+KQvNnacO5Q3fgx LmuYYdgZQFPPBHR6G60YGq9efncCn843lziYFgUSCh0obHuh0ndnh9xAaKpnwdfF+aKBc hb2mSxXCyQwk9ftGX14gyCgCTfOAsWWOuVwdOzunkIcOPKWjsC3htt5QONpBXHKBA5Nki hJFfQ5IMldChTOn0Qg6uChl5FISNQHJOAukR5Yzcg+efCN0QXNVJqH6YAZoxEkfZtzA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796079277; 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=xyPP1iaOyjGMW0qr3IicrDoj+KgK4bXtwbnDW2NvgSk=; b=xdZRPDeoAwLqXqeuNRXWaB6C2AVDI+6RCpj29kK4DJT79nmgEnEh78BpjxL4Wc0yIdHV iBSleCMS+0ereVqVPm+gAI8oTkqdYsHHqzp7nCkV6Ry5fpR088u+LCSLvaae8A8jPKcCm VFLCiKNzk/2XlLipmZBoaFOl7ygFJc9sYaFP57vVIbZckZCizfqVHdC9ZbPSK47YMTlw3 V4U5S982Wbrraw46SrAWGDkchXX9Dz7SxI2n2e4ZQh71clW+/WesSsLraqGMYoS/mU5Gl pH83hYingkVdne6jogzRwDclI6JMyKLDcohl45RygDE/MAfuZWeqSInoHMlSaXafeVA== 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=VRLeqbdz; arc=none smtp.remote-ip=74.125.82.200 Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) (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 447F6606A325 for ; Mon, 30 Nov 2026 22:54:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 447F6606A325 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=VRLeqbdz Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-3846d5f54c1so11965214eec.1 for ; Mon, 30 Nov 2026 14:54:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796079276; x=1796684076; 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=xyPP1iaOyjGMW0qr3IicrDoj+KgK4bXtwbnDW2NvgSk=; b=VRLeqbdzEFdSQHhHc/02tiHpnu5C1b4FQjRJh+TM31zg1PH8k8h8gMZ7ZMRDCpGBQd wjO+Hhx/M6XYCYwYLEYyqn2ca32YlWWOJxcF8audekN2W6SsMV78tQ2eF9P58dzFtyjO yfnJ28nzhbpuo4/0bJjbohn0hQ6xQ6glNawOR8/MmFxD66rS7pH4xKjZdxGmpkVxf80F iL5qiS7QhzTuz7dwH0seTVSMQtOSzoFwkLTZczvIr34AYIwQHlj7oDLMsZotoLDdwRy3 xtZolb3hvub35lGcpz7shqfu2tNAYTEqNmTRr4THJejgguzn0jrARNxk+qA+RdrGoRZy xE+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796079276; x=1796684076; 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=xyPP1iaOyjGMW0qr3IicrDoj+KgK4bXtwbnDW2NvgSk=; b=iAK0kejbm6ybW8zaGKToGj3wriMgltmcrmqXoU8fzNMShkqVfFoumRa0ZvquinDX2d bd0Zsyph0oE5PM+7Da283+kpzUTkcnQexlEIJmRe+lI4xoxDmHzOz5bxWS7gkbxKhNen bc/xj494NBsMZH4gV6Rl41E70HEez/cknv3ELImxcoRgZMaoM+i3cIWv/6WKUNyKGqWf lig+LUuen0tp0L01TWg/UHrkXlx4INt2oLRJk6M5WBVYG9S/fmA+lYCUU+SUyd/eZw2i TTRWzugkpblRP8udoRqbI8Ywqbltk62422Tl6CGVZhOBBJYiR5qYtno1dQmaQ8WXsvMC rNww== X-Forwarded-Encrypted: i=1; AL+hErGHVNgG0orOnXrBDIsr+nChKU7exQpow/L9ccOjWi+xCdf2yBKuKPiS8HqOBNVv6oNONmRU@lists.linux.dev X-Gm-Message-State: APuU4Z+U4uZNd/xJtBuY+zOsW8n8evbGACzDayw71VZDaJnncG3UYNJG 6XVLBpQ3/BvbS7dAqCV+bnVF3WFbht6eVSk7Xk8iSfkOUMonN6q3dhgXFLTWZG3JHAUOKLG0rmz zleSlU1FhCQ== X-Received: from dybmf45.prod.google.com ([2002:a05:7301:92d:b0:386:c9b4:86cd]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7300:c696:b0:386:c4bd:7ff0 with SMTP id 5a478bee46e88-386c4bd8670mr20186385eec.13.1796079275820; Mon, 30 Nov 2026 14:54:35 -0800 (PST) Date: Mon, 30 Nov 2026 14:54:18 -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-3-irogers@google.com> Subject: [PATCH 02/10] phy: cadence: cdns-dphy-rx: 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 , Laurent Pinchart , Pratyush Yadav 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 cdns_dphy_rx_ops, found with Clang's require_explicit_initialization attribute. Fixes: 41d393aaead4 ("phy: cadence: Add Cadence D-PHY Rx driver") Signed-off-by: Ian Rogers --- drivers/phy/cadence/cdns-dphy-rx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/cadence/cdns-dphy-rx.c b/drivers/phy/cadence/cdns-dphy-rx.c index d3f7e9513dd6..97dbbe789bb5 100644 --- a/drivers/phy/cadence/cdns-dphy-rx.c +++ b/drivers/phy/cadence/cdns-dphy-rx.c @@ -232,6 +232,7 @@ static const struct phy_ops cdns_dphy_rx_ops = { .power_off = cdns_dphy_rx_power_off, .configure = cdns_dphy_rx_configure, .validate = cdns_dphy_rx_validate, + .owner = THIS_MODULE, }; static int cdns_dphy_rx_probe(struct platform_device *pdev) -- 2.56.1.839.g22a8290db9-goog