Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2010223rwb; Fri, 11 Nov 2022 03:54:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf6tSnnA2FCJ24+xrYuJt2tHtK3lPyhpVmy+LDLHS2eWhbqcIpQhI/rfjVme+drUrCnJAzDg X-Received: by 2002:a05:6402:1850:b0:467:3015:ad42 with SMTP id v16-20020a056402185000b004673015ad42mr1152017edy.259.1668167644776; Fri, 11 Nov 2022 03:54:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668167644; cv=none; d=google.com; s=arc-20160816; b=Omm7GSdpc5s9fi5MPiBXhVh+kvvANhNkjfzjP2c4ms7C8JV6Tt0Edv8CWrMgh3w+m4 eK8eklRInuXfMOlBKPNOVMZH1s6FBbxaXwWnV/QI5VxKs5ZZrxpauTOkM59b7DFa05AM TpjpO/nISPJULtFl+DyZc9Eyr8S6J40RUmA6z0+IIu7yr7H+ico2puErxjBnvY6GbGnF JclzVZAFfExLCtV0j36AprvZ7m4I7UxqGIlVPLzb8GLppjEHJBZJ+KwR+hMKzX+U5+xx qSZDIauhHLZr868I70WDevs+0vQMqF7WgVWKF6jd2bgR/V++rwrFnXS4zHwEytLh/boF WerA== 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; bh=qSBF/ECZfbRTbQB9J8HIoNk5t+QvNMgL7PClSWUYqHg=; b=oVuH/Sr0XiUZytQ8xGPeZvVEwKeaT3QmkVLTLFB8VfGLpSdrFzCXuJ62yeWjToh+ua WMyEPNdfbyP9SocxhfiK6O6OTOzt3B9Rr17GKl/FKgyQW1r5/wiJRLcRejRpXmipAPv0 wKQ5pe8c7VakgZa05r9676GPNGVvdoLBZ820cQzvUftD6cM5PYMAMr7Wu9eTvMAbw0As FAKZFGC1IS0cfhHX1F0UXDE10rw+u8O5C1mTD8AygVN386s/g7Jhf5c5ZsdFDe/cg+bN c3O1qVZcBvLWK/6QbrN68b1cieUrGECBNfy6qPszSIDZ9CU2fkv6tAbY9q1+0uortQpv zXPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bDIzMdHf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a50d64c000000b00458cbb6b6easi1915454edj.167.2022.11.11.03.53.39; Fri, 11 Nov 2022 03:54:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bDIzMdHf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233146AbiKKLts (ORCPT + 93 others); Fri, 11 Nov 2022 06:49:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233445AbiKKLtf (ORCPT ); Fri, 11 Nov 2022 06:49:35 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF9F427DFE; Fri, 11 Nov 2022 03:49:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5D35761F9F; Fri, 11 Nov 2022 11:49:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3279C433D6; Fri, 11 Nov 2022 11:49:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668167371; bh=qSBF/ECZfbRTbQB9J8HIoNk5t+QvNMgL7PClSWUYqHg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bDIzMdHf8JocXoaBMAdhZfvVkDbL8LWt55WECcKB2Aj7sGpoJ/Z1nK1+s6BvDOyxP 6ljjxNPHydGcoROQ7RP4oeTNKFHeQQfWsssQGZS54zMriSX9rojgnr3Lpj6+1c8Bxg Lzw09yIadbQo7BWkA2+H08Vkwtl37yId4GXoZisap5zw5SIpoW11AEJ9s595Ztqa/J FdvOI9s06XauojJxWqftvcjCaZInONfEh6jwSH9CEfSXzCxiGWH51iSpnbo/8NVPGI lbaKylLSc8P/Czb+YHXPh70zYtCVVq1j5SN6QFSOVMLHqpRwq/BEJotuYV1/cB/9F+ DRC1QAsO/0jWQ== Date: Fri, 11 Nov 2022 11:49:25 +0000 From: Mark Brown To: Charles Keepax Cc: Marc Zyngier , Richard Fitzgerald , lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, tglx@linutronix.de, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com Subject: Re: [PATCH 09/12] irqchip: cirrus: Add driver for Cirrus Logic CS48L31/32/33 codecs Message-ID: References: <87mt8zutib.wl-maz@kernel.org> <86pmdvow5y.wl-maz@kernel.org> <86k042q1uc.wl-maz@kernel.org> <05ae0e20-b472-f812-1afc-ef8c2a97cdeb@opensource.cirrus.com> <87iljmve87.wl-maz@kernel.org> <87h6z5vs39.wl-maz@kernel.org> <20221111111611.GH10437@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GX9PH0gqSEqgaksu" Content-Disposition: inline In-Reply-To: <20221111111611.GH10437@ediswmail.ad.cirrus.com> X-Cookie: Should I do my BOBBIE VINTON medley? X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --GX9PH0gqSEqgaksu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 11, 2022 at 11:16:11AM +0000, Charles Keepax wrote: > On Fri, Nov 11, 2022 at 08:00:10AM +0000, Marc Zyngier wrote: >=20 > > > ACPI gets to be a lot of fun here, it's just not idiomatic to describe > > > the internals of these devices in firmware there and a lot of the > > > systems shipping this stuff are targeted at other OSs and system > > > integrators are therefore not in the least worried about Linux > > > preferences. > I would echo Mark's statement that going the way of moving this > into DT/ACPI will actually likely necessitate the addition of a > lot of "board file" stuff in the future. If the part gets used in > any ACPI systems (granted support is not in yet but this is not a > super unlikely addition in the future for cs48l32) we will need to > support the laptops containing the part in Linux and the vendors are > extremely unlikely to put internal CODEC IRQs into the ACPI tables. It's a bit of a stronger issue than that in that it's not how ACPI is usually expected to work (it draws more from the PCI model where you just get a top level ID from the device and have to figure the rest out yourself). > An alternative approach would be to actually represent the MFD in > device tree, I think this would allow things to work and look > something like (totally not tested just for discussion): That's what Marc's pushing for - there is an idea to do that which works well enough for cases (like this irqchip for the most part, modulo how to handle the top level interrupts for the chip) where the way Linux wants to model the device maps clearly onto the hardware but like I was mentioning with the audio/clocking split it gets tricky where things are more up in the air and potentially changable since it's much harder to define a suitable ABI. --GX9PH0gqSEqgaksu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmNuNsQACgkQJNaLcl1U h9DtIAf/aeBQQ3Lh5zmka+uBR54WcnQfWacUGj+JM5RC6CDwQ1Prz7UJd1YrZzbz NA5etQWvjvbCh/1Y+cn8KSpiNiKrNJmhVZOkqNehoPWPcyKFBbVKLhL8mRY5tk2f xPJkQ/MxrOFacsGRpkStfSZPew2Xt+cdIBOIN7vhww9+NHMsnGmx4xLjZc5tltpA BA9WFjV/yzMxgE2UiJYIX8QMZ8i3CftDNOIUS9KN2cXAqNa3S/+Nuxon5Qrc5Rmd 07eq77gLTHoy0syRlbyDOjD24wVosKRomLl/B+koqEy5ZUJxjZz0W9IDllZ9fIKo B2IEu3AcIwLVXpeU0pwDN7OY6FCdFA== =Ljlu -----END PGP SIGNATURE----- --GX9PH0gqSEqgaksu--