Article View: linux.kernel.netdev
Article #11839Re: [PATCH 03/17] net: phy: Attach generic PHY drivers through the driver core
From: Leon Romanovsky
Date: Thu, 05 Nov 2026 18:35
Date: Thu, 05 Nov 2026 18:35
32 lines
10197 bytes
10197 bytes
On Thu, Nov 05, 2026 at 03:50:35PM +0100, Andrew Lunn wrote: > On Thu, Nov 05, 2026 at 01:42:16PM +0200, Leon Romanovsky wrote: > > From: Leon Romanovsky <leonro@nvidia.com> > > > > The generic PHY fallback probes directly before publishing its binding, > > bypassing driver-core admission and supplier checks. > > > > Attach through the driver core so admission precedes functional setup. > > Callers hold RTNL, which a concurrent bind of a specific driver may wait > > for with the device lock held, so for this flow let's add > > device_driver_try_attach() so the attachment never waits for that lock. > > FYI: This code is fragile, and causes issues. I will need to stare > long and hard at it before accepting it. So i'm unlikely to do that > until the basic idea is accepted. In order to accept basic idea, we need to change PHY code hold device lock when binding the driver. > > I also wounder how a PHY is a threat. What is your threat model for an > Ethernet PHY? There is no special threat model for X or Y. Everything that requires drivers to be bound are expected behave the same - honor trust level policy. Thanks > > Andrew
Technical Details
Message-ID:
<20261105183510.GE8298@unreal>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357544-linux-kernel-netdev=dewy.ruReferences:
<20261105-device-trust-core-v1-0-1e536825b4eb@nvidia.com> <20261105-device-trust-core-v1-3-1e536825b4eb@nvidia.com> <9866a873-e71d-48cd-9153-be1bfce51eda@lunn.ch>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357544-linux-kernel-netdev=dewy.ru From: leon@kernel.org (Leon Romanovsky) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH 03/17] net: phy: Attach generic PHY drivers through the driver core Date: Thu, 5 Nov 2026 20:35:10 +0200 Organization: Usenet Network Message-ID: <20261105183510.GE8298@unreal> References: <20261105-device-trust-core-v1-0-1e536825b4eb@nvidia.com> <20261105-device-trust-core-v1-3-1e536825b4eb@nvidia.com> <9866a873-e71d-48cd-9153-be1bfce51eda@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3702011"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:rF4w08bQivSWsSzOrWT6J67qqhg= sha256:j39GYybB8gx7+pGM3UEnxcW3hvpYOoz78wMvvB6YPX0= sha1:zfZ28mAU/p1LBta+X1tup+7Lt7U= sha256:WFyFg4Z2HGkIxaAyydoLj0dnaNN8RXaWsAffEmXwLR4= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id DA4D411305C; Thu, 5 Nov 2026 21:35:43 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lMoPP7-4i-8M; Thu, 5 Nov 2026 21:35:36 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-357544-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 7321B11303F; Thu, 5 Nov 2026 21:35:26 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 3BDB5609E52; Thu, 5 Nov 2026 18:35:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793903716; b=Q1cGsO1lRJUM5zKv87KxKz2mSoWTSoCxo3ZrIHHwPaXMkMZQB45KK6LW2pO7DQvqM3zD 1IBPqCufWNu1TagnqGs+57KSpjefQl81a1fq4L/9+1JwyWK0PocmrSMntx4ciEKZjYzqW VUH28nkpQIYF70pPCqg8QgttlDawCSHZpQth5VFD1L2M98BztSphLLcNqFem3WQ6jDn97 lsGcZ9NRq0PTV69ZxycilW5YcMDOjg5ua5bhWRawKjg0vszBfbEXpspnZiXI/Mtya62WH MiJy+sB7t0rppov3o6u8wszSYESpTJhgsA4tjnzmlxm0t7XajqVKe/fExtCtdqS9+jg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793903716; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=eu0Jx463SVZSBII0hnmMnU2aWA+n3XFJpC/YB1CnfNs=; b=1+IS59LG2O9/9M+3ZrqtoMEolClpb06JqSEHls8Og+6HaAWju31WCkWnZVl5TOwNd4kV K+nBZXt1VGnQ4rQUMUP9T2JQLFcrnVydVw/e1jIfhax4aeVrp8yZT/ABF/IR7VqcOviyc LLTeZisXuXm9tlo4SgAc5hpT+VYowOt+fThPrEdNrryVOIpG9wvjq5Y9mlh3YUVj5oP0i rAar8Ve2i/+kY1aoKajAZqj++l1A+yVeux5qEgYycx2DhCyPwkYfie080MQG4ghttlhxA Pe1Ad1VUTlIy5LrJExFj1JUgREnQNXxvSCFvAzgHoMxb31E4bQj4HitDA4QaZMDDnnw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aLY3g30d; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 454A5606D80E; Thu, 5 Nov 2026 18:35:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aLY3g30d X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793903715; b=Z5pYD++vl6iO91Z3cgZkDRwREoyCNa7L/pAFkN03Zapl79e9Gd+kYQMigx4t78BogVkX y6oPt32XwFsnZAdV8TZh0ESwsqGuQYwqGq1nVJpYDlERv9356qG8pmAuYDj642VFiwcEK dRmEAGDeI03LU0/zX33ESfCEWRXOF9q5HqG0lciDQ3Gurn4DeB1TVpyZVJ3ZGC6RgFhkh p7Sg8DmFWqAkr00YPGQToi2SeaTGtEuFp61Htth6ol6UPlUIGKDQG/yGFPVWu9oVAIJo5 VyHokX+n9nGERWSRBfW6INUFiMQtj03ftXY+aeqR5KMSGgd/WRej/bDmknI+3nUDKhw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793903715; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=eu0Jx463SVZSBII0hnmMnU2aWA+n3XFJpC/YB1CnfNs=; b=zUAwMFFwI42T5qXTkF38FLb+wtix/cWstMdLopqcg4C/OFT/ztLaPBgA407jcaPNgJ0Y /ouMnxWnZBY9KxeG6U118mRVLLJ6SLLb3XmyDkfeGbva07rnrfJdK8PaSS/msONNhy7MA i8HNUY9uJ2w8/wMb+cltfeIIOvFf9RmOL/rYUWklRM7CD12fkz6QmMQsVawbifaOmhP9E IZDXHBuI3IfyaHD4QwZWLPpF4W1kDIqahJCwUVpwFhqsFErpbTzdSQVPIZSLChxXKwTb0 zdVh/veeesm5Ab8GNu3nm8fMR78MJxHL6wZ5eFlFSsIQB3GIilLAYV5rxKMCmjmBsBA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aLY3g30d; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06F6D606A31B; Thu, 5 Nov 2026 18:35:14 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8147E1F000C1; Thu, 5 Nov 2026 18:35:13 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793903714; bh=eu0Jx463SVZSBII0hnmMnU2aWA+n3XFJpC/YB1CnfNs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=aLY3g30dLKBuWsWBkUMgULwEU6A7srUzOGRWXrQBpz1o9mVmcB0XEsZS9PgzsCskI mTdR296HvEdvgv5e8dlypLleVdRgAieM1fqfROu89knGdcktbTpf2wPH0vieUv8Zaf q7eTideU1qc7O/4NoJf5h6S203jDcddohITPddb/Ah2R7zJ9VSOLNa0XVgdsQGlTj7 FpmA0nj0w3H+/n/QBvZwX3Nzu6Yh6Wxa5DFnmxC63RoXrcgWmVycmheYAQIpy4wTn/ 9ig2A747T+VoI19eE8rGolCQZ885lg2Jj8Wmj5RNXFOPAivQfPadCLbnwUFLW4/Oec bewdzKyKGqJTQ== X-Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Danilo Krummrich <dakr@kernel.org>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Johannes Berg <johannes@sipsolutions.net>, Jonathan Corbet <corbet@lwn.net>, Shuah Khan <skhan@linuxfoundation.org>, Randy Dunlap <rdunlap@infradead.org>, Bjorn Helgaas <bhelgaas@google.com>, "Joerg Roedel (AMD)" <joro@8bytes.org>, Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>, Vasant Hegde <vasant.hegde@amd.com>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, David Woodhouse <dwmw2@infradead.org>, Lu Baolu <baolu.lu@linux.intel.com>, Johan Hovold <johan@kernel.org>, Eric Dumazet <edumazet@kernel.org>, Marcel Holtmann <marcel@holtmann.org>, Luiz Augusto von Dentz <luiz.dentz@gmail.com>, Nipun Gupta <nipun.gupta@amd.com>, Nikhil Agarwal <nikhil.agarwal@amd.com>, Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>, linux-kernel@vger.kernel.org, driver-core@lists.linux.dev, linux-input@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-usb@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-acpi@vger.kernel.org, linux-doc@vger.kernel.org, linux-pci@vger.kernel.org, iommu@lists.linux.dev, Jason Gunthorpe <jgg@ziepe.ca> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <9866a873-e71d-48cd-9153-be1bfce51eda@lunn.ch>