From: Scott Wood Subject: Re: [REPOST][PATCH 1/2] driver core: Add new device_driver flag to allow binding via sysfs only Date: Mon, 9 Dec 2013 15:33:57 -0600 Message-ID: <1386624837.10013.49.camel@snotra.buserror.net> References: <20131203123446.42fbff34a8ebd7afd38159a5@linaro.org> <529DFA09.1030707@siemens.com> <20131205174530.a1d6e763e423d3baaa5992ad@linaro.org> <1386283095.7375.63.camel@snotra.buserror.net> <20131209125802.0e2b86a3daa9d9ad5a7d43bf@linaro.org> <52A6162D.7090008@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Kim Phillips , , , , , , , , , , , To: Jan Kiszka Return-path: In-Reply-To: <52A6162D.7090008@siemens.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Mon, 2013-12-09 at 20:12 +0100, Jan Kiszka wrote: > On 2013-12-09 19:58, Kim Phillips wrote: > > On Thu, 5 Dec 2013 16:38:15 -0600 > > Scott Wood wrote: > > > >> What would combining them solve, other than making it more likely that > >> Greg complains about the wildcard because it would no longer be handled > >> at the bus level where all the other matching goes on? > >> > >> They are logically separate things. That doesn't change just because we > >> currently plan to use them together. > > > > Jan? Given the above, what would be the advantage of merging > > sysfs_bind_only and (PCI drivers' PCI_ANY_ID and platform drivers' > > match_any_dev)? > > That you cannot configure (likely) meaningless or even harmful (bind-any > + auto-bind) configurations. If you want to put in a check that warns on bind-any plus auto-bind, fine -- but that doesn't mean they should share a mechanism. It's valid to have no-auto-bind without a wildcard match. And FWIW, PCI already has wildcard matches without any no-auto-bind mechanism (it's presumably not intended to specify PCI_ANY_ID for all fields, but it is allowed AFAICT). -Scott