Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1824907pxb; Fri, 22 Oct 2021 08:21:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU+tFqbT/kzD6QqFT6jwmm13g1OWp2/Nz/SriiADUkC2RSlMl3Li4w936qjMe4g4H8H/94 X-Received: by 2002:a05:6402:2787:: with SMTP id b7mr813775ede.238.1634916067067; Fri, 22 Oct 2021 08:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634916067; cv=none; d=google.com; s=arc-20160816; b=tfrCeu//nkryLFXvMAsGmETM7MMA90AgzJopIb3e9pMzcWWGeALurjUnSNK/03hzDE 1BvZiL0aZkKhfxQ15mhMaew5VQVQU8ryasIs9ptc6WQQWf9WXjXW3h+sC+V8hM7PqfIu TXDWZDfcnIGr656I2kMA+peTdgJflYoaTNwrM5sibORSN1A+aGZZLwl/yUVmrB0AV8us KPdiyDLH3GBdnqjrePkg1kjxKLiA6bApy2Zjlr9p1x2rzL/KVypJ+rVZMfsBP/vVOwbh rxyGlYh6pX/76QelKDkH6D0XYDQ7G/ONaCkkIlqhwL9/a24foiSViEHOX3k0QpWTHjLB 4LVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=46YpM5jZKwd3mcnLxsPVqOmlYwflxCO4p2fiY1KoOPc=; b=IteliNR+bfvpNvAYhsPuh3tz0Zh0k0CPkLKwCP725wEoaHDhMoW74xgH45RwujVfjY wis8CT2jqrTgMqNQubJG9ixtZaEZ3lQCmfLHuXku6cFp7MbMiN2tiQ9SBOayh/CHXjSH FbAOFFQ35ULNASRW4D1cwTfcrkuge34p/zt3ZE069AHUb2I1g2mbqSzsGdfvjfO6b9vB i4zmBXzg1ey43EfX5peXUCP5yFMdD7SrboJA7zmjxOVXVRrMRvatSr3g8U/YnfQueS+I qr08fZu0nPrGctkn20Qo8V8+P2zSeMZ3OgRiraFMXRkqzC7B3m0rXHgAcALeJFbEE45W IP4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@stwcx.xyz header.s=fm3 header.b="qm/JHEjU"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ODoNLg6b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si10447394ejv.295.2021.10.22.08.20.42; Fri, 22 Oct 2021 08:21:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@stwcx.xyz header.s=fm3 header.b="qm/JHEjU"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ODoNLg6b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233298AbhJVPUe (ORCPT + 99 others); Fri, 22 Oct 2021 11:20:34 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:53455 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232384AbhJVPUd (ORCPT ); Fri, 22 Oct 2021 11:20:33 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 66D0C580F92; Fri, 22 Oct 2021 11:18:14 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 22 Oct 2021 11:18:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=46YpM5jZKwd3mcnLxsPVqOmlYwf lxCO4p2fiY1KoOPc=; b=qm/JHEjUR81ScgvglY9ndyrWS6meTUz02OeqaWeuwnV OkvwFVjW753vqgVHwr+I7OhJFw1cJfhfxlXXHEZA1I3RqDQ4tWjSZ/KlP3IYrvL0 DhrpBbN43xHgOaLUMJZJ0KuzMu+1fEEfTEsxbTqF7FaeyDyhTZQykIWjrUNSNGsi uT4eqrJqDCpp6eFFpZLfBgwDAjZP5dfZhc0bJjgFC6dd8iUWmiYnKoe7178zU2qu AG+l8dA1GcdlOAML1P8inXgr9ERXBCkHQGZ/6xCBd0shOkTY/7UQgld470E2Sthm ui0lZ6XpYyrGFwS10FcCiQc9TKhxRpuKtn146Sp7MUA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=46YpM5 jZKwd3mcnLxsPVqOmlYwflxCO4p2fiY1KoOPc=; b=ODoNLg6b9DxvKZ9suUSYH6 ibbkhO6J/bGRvsG2yv16q0+2KVopWvljS4+tT9yMqnb9aC2M7FVOqVuzMwi6DV4w TYC4Gp/ORsQGrXg/Bx35p7J+SvPOBT/84L/GRvNabaIRP+cr3IDLB7HOV+R5SdTA mSgcSov7Yc5r/dPNI3VIWe/I7caf2GraW1ukuxXF0alogK1ev4t4rZbDVbWNJEOA frUsW+rLtY4rrheFi195Oav+vi68tM+LU2KSKKkjAbAZfd/PUKEdxNGtruwzZPRn /HnDPeB/bWdUU1AS31twbQCi1oqH1TQwhdUVCuPuJt3zeuqZRSWsc1MslNArO6bQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvkedgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtroertddt vdenucfhrhhomheprfgrthhrihgtkhcuhghilhhlihgrmhhsuceophgrthhrihgtkhessh htfigtgidrgiihiieqnecuggftrfgrthhtvghrnhepfeeikedvjeejheetgeeggeefgeff teeugfegtddvudeggfeugfefjedvuedvveevnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepphgrthhrihgtkhesshhtfigtgidrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 22 Oct 2021 11:18:12 -0400 (EDT) Date: Fri, 22 Oct 2021 10:18:11 -0500 From: Patrick Williams To: Greg Kroah-Hartman Cc: Zev Weiss , kvm@vger.kernel.org, "Rafael J. Wysocki" , Kirti Wankhede , Jeremy Kerr , Rajat Jain , Frank Rowand , Jianxiong Gao , Dave Jiang , Saravana Kannan , Mauro Carvalho Chehab , openbmc@lists.ozlabs.org, devicetree@vger.kernel.org, Konrad Rzeszutek Wilk , Alex Williamson , Rob Herring , Bhaskar Chowdhury , Thomas Gleixner , Andy Shevchenko , Andrew Jeffery , Cornelia Huck , linux-kernel@vger.kernel.org, Vinod Koul , dmaengine@vger.kernel.org Subject: Re: [PATCH 4/5] driver core: inhibit automatic driver binding on reserved devices Message-ID: References: <20211022020032.26980-1-zev@bewilderbeest.net> <20211022020032.26980-5-zev@bewilderbeest.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="70daKchr0JYsGAyF" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --70daKchr0JYsGAyF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Greg, On Fri, Oct 22, 2021 at 10:57:21AM +0200, Greg Kroah-Hartman wrote: > On Fri, Oct 22, 2021 at 01:32:32AM -0700, Zev Weiss wrote: > > On Thu, Oct 21, 2021 at 11:46:56PM PDT, Greg Kroah-Hartman wrote: > > > On Thu, Oct 21, 2021 at 07:00:31PM -0700, Zev Weiss wrote: > > So we want the kernel to be aware of the device's existence (so that we > > *can* bind a driver to it when needed), but we don't want it touching t= he > > device unless we really ask for it. > >=20 > > Does that help clarify the motivation for wanting this functionality? >=20 > Sure, then just do this type of thing in the driver itself. Do not have > any matching "ids" for this hardware it so that the bus will never call > the probe function for this hardware _until_ a manual write happens to > the driver's "bind" sysfs file. It sounds like you're suggesting a change to one particular driver to satis= fy this one particular case (and maybe I'm just not understanding your suggest= ion). For a BMC, this is a pretty regular situation and not just as one-off as Ze= v's example. Another good example is where a system can have optional riser cards with a whole tree of devices that might be on that riser card (and there might be different variants of a riser card that could go in the same slot). Usually there is an EEPROM of some sort at a well-known address that can be parsed = to identify which kind of riser card it is and then the appropriate sub-device= s can be enumerated. That EEPROM parsing is something that is currently done in userspace due to the complexity and often vendor-specific nature of it. Many of these devices require quite a bit more configuration information th= an can be passed along a `bind` call. I believe it has been suggested previou= sly that this riser-card scenario could also be solved with dynamic loading of = DT snippets, but that support seems simple pretty far from being merged. --=20 Patrick Williams --70daKchr0JYsGAyF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEBGD9ii4LE9cNbqJBqwNHzC0AwRkFAmFy1jEACgkQqwNHzC0A wRkFhg/9HGu2uiFP02YyeOYntJIcOruf1o1SzGDkH/cH9bsS/NmFUA76UFa42pJp O1Dkn1yXtjNdENw9UL7RU3kmCWHaEP2nBxP3F+3Gt/9uYZIxArNWBQUGMjELC+dn 6wfQXoRPwPX+/Tzug7WAgwqsWP9KvdIzvIYf1GfKSlZGXxa2uuwJb4QFTLirrmiK zFn78+EB+4qSZEl3KucpA4UahfCobnPcz7a51DP2XSn70Qq2kTZfxn3Pjd4tYtAg N0YqDe32NnYHX1jAh/g/QXLv4BCOHh4x8IDWBaekoZ9dSg9CctAjct8L7+HxbdV6 HWFwlDFm2GvLtv71WyKGqxRaeFfp2+BSZaedQXLM/1t3xY8lD3HOG0yFUxCweXZ9 yFXrlql9NQ+KkoML3LbO+NUrzk3Iz3cJxSQ7s0G6/N57fI/dUsHVihJfABroBPhF xNFYGEsADyvcLFygWXCG3Z/hNa5RgJOhSxrijXTTimUmJg0/TZePrLGJQ6Iikehp D+5v6DOh/Itq/CaXhjpwitloV1yxQGnEM+72cIb7pjkjTqsuKXQwy8Gq4XQzXHLX YV9NM7xESn7QUuuED4KprEEKYMVu5vIFDNhgifBXd48GTEr1Ga8BbFDVfoUcPuya oQ707lRUwbiNx344LTJqBm/cotib5i5rIaMQAIAZtUecxdzQ9tk= =/Hnz -----END PGP SIGNATURE----- --70daKchr0JYsGAyF--