Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp559813pxv; Wed, 14 Jul 2021 10:01:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJia/RWE4KrYs0DKbO7lCrMNq2Y39PtKfVXouHsU1WW/IjzKfNwU7Vun0NqNbjmZvv9NKe X-Received: by 2002:a02:c95a:: with SMTP id u26mr9884497jao.49.1626282076139; Wed, 14 Jul 2021 10:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626282076; cv=none; d=google.com; s=arc-20160816; b=n6ruAmL16rW2jg8cTbbrwQPypG0Ft3HY22RRM52SRjZG1Yd8QpIHiVpc3pe2XMmS8r jDIvAfh+dDuykLFS+MYB2RfabL0dc8XTVnTpSvoOMi7MAX/TJpQAkj8JgZhV7+8PE0se Gmo2XJnVcW/HKrtQAGpVAhOQQ6msRJ47vUgVzRfCPCmfooyp/1mPVH8KlG2o+sACb2j9 4EdsyrO5q4RGfMor8OctUKj5eOJsAzaFidWNQZ49cm9mV7uX86JSr9527xn/F9WmhNWk +PBwOKyDj1zx0Y40rKB5VBo9Oco4nB1E3x5j2P17wOp4z6DMEMokJZWIa5TrImQG9s3H CL2w== 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=+b5TZGxjSyvbr+3eEEDL3Fh3VuRAHZ2t5tFIe8CfY4w=; b=GvjD7at09VRyr9bFlkuH2cNrAlzhAkQNFPQJBBoOwobYXo2Eo3IGU+hbrXSuIBF9dg t/NvSLaO+fFgzASdYOYgsIOajcHcr8PSE11gO+zU2iQFj5dft9ADymU9WVSm1IshE/gk lfOhrjU8yD1AVaJ5fdVRvyQMuUSG+F/v3TZe0UQMwe7fi/ikQF24fUejWiUW27IXYZJF gsVrAtPhRMEEdPaO4wBc1sOZuD9qYkX9rm2EBVXH6SE2wjHRq5Yr1DCcglXCMuYc99GT Tb0TQfS9ov271b1sC5DhfKuXCLQctkA07e/2G5GRzxzrkB1secirkv5Wzd6TjGibLWzI FtdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X8d2w3l9; 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 w25si3079132jaq.39.2021.07.14.10.01.03; Wed, 14 Jul 2021 10:01:16 -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=X8d2w3l9; 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 S235962AbhGNRDR (ORCPT + 99 others); Wed, 14 Jul 2021 13:03:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:53522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbhGNRDQ (ORCPT ); Wed, 14 Jul 2021 13:03:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A3BFC61360; Wed, 14 Jul 2021 17:00:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626282025; bh=2Yh56rokhtnChKoXBgGoK3szFykAatn8ETxrAzG6D90=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X8d2w3l9JSQPlrOxY+WoCrSRKNhxqEDEwSjJsx742/zPLn1398HGY3l3qAIETVKxP ApcOyDW6/dKVzCHhCBNk9KzEwjPOyQiaQ3EVDhjpmNK7bTzsG5ZeSQp3A7Xn+MskPq n8u46jpyztxBZmAo0esyEnKFKqqnzMvuXcDu607Er1DQW8VgGtbjccFa0tDb+rlDQc lMuinIa1SBAGMzGronnkEpJHMHQXIsXyQpjWAUU2OdQrTZDVtMbyYOZm8CgPpXZsjY iOA+s8h8V3hC87aTB1GJbHnP/k36V3sNQ0EMsQHQtJiDr1RT2GK+a1WGAgyRzvIs8Y xx7zgjKaRIkUw== Date: Wed, 14 Jul 2021 17:59:48 +0100 From: Mark Brown To: Laurent Pinchart Cc: Andy Shevchenko , Daniel Scally , Linux Kernel Mailing List , Platform Driver , Hans de Goede , Mark Gross , Maximilian Luz , Liam Girdwood , kieran.bingham@ideasonboard.com Subject: Re: [RFC PATCH 0/2] Add software node support to regulator framework Message-ID: <20210714165948.GG4719@sirena.org.uk> References: <20210712124223.GB4435@sirena.org.uk> <20210712133428.GD4435@sirena.org.uk> <20210712170120.GG4435@sirena.org.uk> <20210713152454.GC4098@sirena.org.uk> <20210713181837.GE4098@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qxfKREH7IwbezJ+T" Content-Disposition: inline In-Reply-To: X-Cookie: C for yourself. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qxfKREH7IwbezJ+T Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jul 14, 2021 at 10:25:02AM +0300, Laurent Pinchart wrote: > On Tue, Jul 13, 2021 at 07:18:37PM +0100, Mark Brown wrote: > > Like I said in the other mail fwnode is a nice hack for systems that are > > using ACPI but have hardware that's doing something totally outside the > > ACPI model to allow them to reuse work that's been done for DT, it's not > > a universal solution to the lack of appropriate support for describing > > modern systems in ACPI. > fwnode, as an abstraction of ACPI and OF, is quite useful for camera > sensor drivers for instance. They need to read firmware properties (for > instance to identify whether a camera is located on the front or back of > the device, or to what port of the SoC it's connected), and being able > to do so without duplicating OF and ACPI code in drivers is useful. I'd still say that's a bit of a hack, it's the sort of area where ACPI just has absolutely no handling at all and so picking up the DT bindings will work effectively although it results in something that's really not at all idiomatic for ACPI since idiomatic DT and idiomatic ACPI don't really look like each other and AIUI this stuff isn't getting adopted for actual firmware (as opposed to swnodes) outside of the embedded x86 space. > swnode, on the other hand, is indeed more of a workaround for a > more-often-than-not broken ACPI implementation. It's ironic to think > that x86 ACPI-based systems, touted as being superior to ARM, are now in > a worst state than OF-based systems. The unfortunate thing is that ACPI is super limited in what systems it models, making assumptions that only really work for fairly simple server class systems. Outside of that the models it's offering just can't cope with actual hardware yet people still insist on building those systems with ACPI system descriptions so you end up with huge piles of platform quirks. Audio support for modern x86 laptops is just an endless procession of quirks :( --qxfKREH7IwbezJ+T Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmDvGAMACgkQJNaLcl1U h9AABAf/X5/zmvTpTbxrHYky2e3ncNx3jV+gWD3ovZuT/ERhQx/EsGOk/mGoEOje TnpqJcaqeXZwOEKi7XlTjiqQvKLDyT3zNVonQ8hHbTJpoYGMtbAw+Gr8/3N3ehsT Pc9Y4wjQFLF+lUNqkXfH36dbdpCkYVx/BEra3ZyNn/n8i4o2pO9j4I2Hyclpffqj FtTBvYHPC7b7jATh65FUV/C9JMYCqorVANoeB+teBhbe8rqDCUJF5SzqI88GTws7 l4LY+N9FM0cR4GREH/xLWVXv8PRo+4/1FeFvCw3MBppUR/5WOUAQiY+qP2BSLSIX I1xdv7oR2jUk7PTTur/4c0S4cN+PLQ== =9/h5 -----END PGP SIGNATURE----- --qxfKREH7IwbezJ+T--