Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp683723pxb; Wed, 18 Aug 2021 11:29:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1jz81PWvGPpBVdkp+r7j5DT6r+4ebmOjnP/c2/jixKsRlDUf2M03rFpCMq5lIb0N4/0JB X-Received: by 2002:a02:a999:: with SMTP id q25mr9406387jam.16.1629311392842; Wed, 18 Aug 2021 11:29:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629311392; cv=none; d=google.com; s=arc-20160816; b=bXC8h0g5Pdv1bAcvr4TIe7D7R7LyIhMS3m3GsJALLLi31+ZuV5vuW5T54457dtQDYm wPweZ/1QRMLIzpEM5y5SAbrvqrYdTqnKHiD7+Yp8nSjLGkOikLRuXkaGlI6HE4Wf1Slh wJ6Fa8EXq8Zzojj5smzcOwqJ4wEE88LqyfaMiUOTgiRc74oBnnq6WuYg1M0JZSJHySGW m+9xfO3PteMR8Kf//Axn8LoTM0WM0VDAsIbSw1ThKhLWfHMeKfkMWtJPhqZYqxp2HV/r //lBYCDgANeP8uXi4nhjmEi4DAkWEt1YwOFQB2FfwjSIEYY1DApb6RTg+YZqpxI+tqd0 MBwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=mNeryu4SKzyKqG3fI66ZCFDhb+YVM98HrtP4r/8kqXw=; b=e2KeAMoJu8tD7HSo6oirPzDjcCAusgUYytOaWFkZCiT77Cxb+t6gP21bk7B55QZmbq AMa9qHpbkQvu44ZASW3TvCFvjxvrr2dBBh7tRvQiCqkLV676kthGjyI/AyZu/DFkA+P0 3rNrFnCnkwTYYzdSdfkbN0ioOTZv4sVSYZW2unhuYLJN3UHuhKFiwaztTh52LDMd2+sc lHrrLBAxK63bdpk7LqdqjvrctvxJ7Zvs3vYJzn2a8xEr0Vz2VwejdzTu6Ipvj294e8P8 ekym8epzRR92e+FiUn323E177vwTDwAa/j+ze4r/PkNZ/yGdArKJHNS92Ctr2fHbw0gD 9JFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nZ3J84co; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si542170ilk.152.2021.08.18.11.29.41; Wed, 18 Aug 2021 11:29:52 -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=@kernel.org header.s=k20201202 header.b=nZ3J84co; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbhHRS3d (ORCPT + 99 others); Wed, 18 Aug 2021 14:29:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:34182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbhHRS3b (ORCPT ); Wed, 18 Aug 2021 14:29:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6DD8060E90; Wed, 18 Aug 2021 18:28:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629311337; bh=gl29wp4oNfqquxl83ShE1Js3Ixdx/PtvHL8j0+Mcrbg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nZ3J84covXa3OELnwC1PBi1CRL5MHamI7VUkQFDdDB6N+AiiMdFWjPJuNowBVnNch ybdCHuTefoEhRLcxBTwi12owt7fGrhiFBBEqfIG7eBNyLXS9Fm7fqiuEtmVNFpRCTm 8icicOdaAWWKPJr8kvMEYOXtXhO6E6J0ib00RfbNRy6V3yqqXLMfS1nvLhXUpscqlg iElsWvJ1tFKQNPJcSTp4wp9jj9+ZW9pvsFP0o3DLO+5nEcjOME2SmlVlGiHefK9GC0 Pc5HXMZZYdJ33fJr9w+h6HzreA7bvqYXfT/VDrMJYN0+boKBY8O7mZXZ+vIccu99EX fjW8wEeS9VYpw== Date: Wed, 18 Aug 2021 19:28:33 +0100 From: Mark Brown To: Pierre-Louis Bossart Cc: Greg Kroah-Hartman , alsa-devel@alsa-project.org, "Rafael J . Wysocki" , tiwai@suse.de, linux-kernel@vger.kernel.org, liam.r.girdwood@linux.intel.com, vkoul@kernel.org, Geert Uytterhoeven , Jason Gunthorpe , Dan Williams , Andy Shevchenko , Christoph Hellwig Subject: Re: [RFC PATCH 1/2] driver core: export driver_deferred_probe_trigger() Message-ID: <20210818182833.GI4177@sirena.org.uk> References: <20210817190057.255264-2-pierre-louis.bossart@linux.intel.com> <20210818115736.GA4177@sirena.org.uk> <20210818134814.GF4177@sirena.org.uk> <14235b8d-d375-6e2d-cae9-33adf9c48120@linux.intel.com> <244b3030-0d24-300f-354d-46878b708056@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MFZs98Tklfu0WsCO" Content-Disposition: inline In-Reply-To: <244b3030-0d24-300f-354d-46878b708056@linux.intel.com> X-Cookie: She sells cshs by the cshore. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --MFZs98Tklfu0WsCO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 18, 2021 at 01:09:44PM -0500, Pierre-Louis Bossart wrote: > I initially looked at the component framework to try to express > dependencies. It's really not clear to me if this is the 'right' > direction, for ASoC-based solutions we already have components that > register with a core. Historically (long before both deferred probe and the component framework) ASoC used to implement a mechanism that essentially did deferred probe for the dependencies - it'd maintain it's own lists of dependencies and then tell the machine driver and all the components when the card was ready. Once deferred probe was there we dropped all the open coded deferral stuff since it was just reimplementing what deferred probe does in a slightly more complicated fashion (it tracked the dependencies in a finer grained manner, though the result wasn't any different). See b19e6e7b76 (ASoC: core: Use driver core probe deferral) for the conversion. What ASoC is doing with the cards is fundamentally the same thing as what the component helpers are doing, we could in theory convert to using that but unlike with probe deferral it doesn't really save us any work and we'd still need all the card level tracking we've got to connect the various bits of the card together and order things. If we were starting from scratch we would probably use components but there's far more pressing things to be getting on with otherwise. --MFZs98Tklfu0WsCO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmEdUVAACgkQJNaLcl1U h9CFYggAgsVIGWE1ir5ASVuduTYuxo7utFvIOGL8x4iAc2FRSLZF/OnyPc1udNVh MTFcjd73PmhxIDu4ZhE2meroZiCHoVGQszZbkwKOUc/Gu3YTO22oRt5xaTc4W4yW 0GRtZ5AbYWXj5DJSorSB9rXbSjdPN8TV4Vd+VPTwYhSgwqkJX9byG6aZPzKhIQBG dnq3C+O2CiRFyt57Cfs6yhTgyJwPTKc9P/SUhKU0acVYpbYWxbwbja+2t5GIHF4n pJUZ3da5PtCziiOuDBYSxMdcFQvn1cLQwM18PFWvNCanzEh1kagPoB2vKLqvzu1x P5SVZ35bf/aNcKfMHxuLk+s8DsF3NA== =oFCB -----END PGP SIGNATURE----- --MFZs98Tklfu0WsCO--