Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19561681rwd; Wed, 28 Jun 2023 10:55:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5w5wnKn8hUBP7NWVmQu3cAvfixYKH7BtCbZeBGllYfRK1OyqKnYtvOzvHDyM3QcIXUdAsg X-Received: by 2002:a05:6a00:99e:b0:673:6cb4:7b0c with SMTP id u30-20020a056a00099e00b006736cb47b0cmr2589570pfg.2.1687974947546; Wed, 28 Jun 2023 10:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687974947; cv=none; d=google.com; s=arc-20160816; b=dGuWDAjtP3fSgOtNJ19HG/jCrqZw1kI9DisFbbIFYE+aLXUoWyPymasaQSUyUEUzE7 TQisCIWP0WbK9YrlEB6G6whrlux9NAZ8UzaZKYk+Xpx+ILiV4rswndy4wqNfKduQ/ijD sHcnE4T90Mwsu0xEa4ZwxLPOrMNT7MhPX+r+mCBRs/SZqQmlaJtBWPH1I5Ktswb0AhGy zyDkwrCtaAp7vrWBVgaBji2NVh0AseBxWK9DVT931fkzBWbLX0gJ3Z0uT5qNkwZGi4h9 eLdBVpwrukMVA5P/0uB+1U3dfMYvKOyQOBvgCiRdY6QJPcrssMiF8mu/XjdfY1gXyOv5 SJJw== 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=POApXbaw6NPXLLszNXREI5BWmoA8Dco6WUGtynqfao4=; fh=Ly8uSD1H6dkUZluN1jNw495e8+rJLZOyw3foW+IuSSk=; b=C/D+E+msjR/POrXZcjBh1Q4iXEgxZttt2bel2wE1o6v1/r+ZAbuem5EeS0wwD4yYqv p1iq4r8c3ME6uFimsdYC7qwyIlaGs+akOUWf7WiUyAm1lVRkWDpYnRauCqlJm5eQKCGf KozheXUxYrVRjfabQ9RQVGyqdi8bbIjPYTwpTCRCP1O/reo5awZ0rkceWldpczeMHdIl iTTNckVj8fEltRyybeiHnXVoGhhcxi8K1s8XLXrm45lo42h19ZY8WY+qP/3P5spUzJWb 03shnvs3UG3Qg6YTwnSPmMywva/VU+MiMtXn4mBeVevQOjl3s1vJZ+gWvldmxhIYnKjh e7Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Cm/4DEX2"; 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 ea11-20020a056a004c0b00b00645e8c9e27esi8539573pfb.386.2023.06.28.10.55.35; Wed, 28 Jun 2023 10:55:47 -0700 (PDT) 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="Cm/4DEX2"; 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 S230422AbjF1Rmx (ORCPT + 99 others); Wed, 28 Jun 2023 13:42:53 -0400 Received: from dfw.source.kernel.org ([139.178.84.217]:54786 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbjF1Rmv (ORCPT ); Wed, 28 Jun 2023 13:42:51 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 395116141D; Wed, 28 Jun 2023 17:42:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44D93C433C8; Wed, 28 Jun 2023 17:42:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687974170; bh=lqDFjemWmplk7HOK0FDXsjyFPEZ6trWi4OmRwLFV/5M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cm/4DEX2nbNEK3Lyi4lprLSxrrS6BvJE6GZxSx4V7hZoBmtsObVCdDFxffScaEzoU zpoKJDIHPrv6LznJN61cXRAx+tK+xTUHZGrP6fJaMg1HTTK0wrM4fjUCOD7I2707co 4uezjJdsVDzYBI1dEV88F0nduy1MZH3/lRdNG/NzkTTKCCZ7u939C0msw9J9gnnC2/ 5J7ygqQM6/o0Fxrz+IGMxSUfY+9ttOYaWuvg/uqXTdmnAoaGiRi8mnnpX8qUArd6nd 1MZ8an89pGr3FubGz43ikVU0pklxkUT+Y2mtsO7c7dUKdD/Z3d4qCC1tlxvpPhcizy ze6YsJIw1OBDg== Date: Wed, 28 Jun 2023 18:42:44 +0100 From: Mark Brown To: Srinivas Kandagatla Cc: krzysztof.kozlowski+dt@linaro.org, andersson@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, dmitry.baryshkov@linaro.org, johan+linaro@kernel.org, perex@perex.cz, tiwai@suse.com, lgirdwood@gmail.com, ckeepax@opensource.cirrus.com, kuninori.morimoto.gx@renesas.com, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org Subject: Re: [PATCH 2/3] ASoC: qcom: q6apm: add support for reading firmware name from DT Message-ID: References: <20230628102621.15016-1-srinivas.kandagatla@linaro.org> <20230628102621.15016-3-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Iw1MrnpkR98xnaXf" Content-Disposition: inline In-Reply-To: X-Cookie: HELLO, everybody, I'm a HUMAN!! Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Iw1MrnpkR98xnaXf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 28, 2023 at 05:30:15PM +0100, Srinivas Kandagatla wrote: > On 28/06/2023 12:53, Mark Brown wrote: > > Why not try a series of firmware names/locations generated using the > > identifying information for the card/system? That way we don't have to > There is no consistent way with the current state of what is available in > linux-firmware and what drivers can generate from DMI, atleast with Qualcomm > SoCs. What's in linux-firmware now is not relevant, we can change that however we like. > Example for x13s has all the firmwares are under qcom/sc8280xp/LENOVO/21BX > for two models 21BX, 21BY. > However none of the DMI properties match exactly to 21BX or 21BY. > These have to be either derived from product name 21BYZ9SNUS or some other > dmi properties. > This logic is not going to be very reliable, can differ across platforms. But the goal here is to have platform specific firmwares so that's fine? So long as we come up with something stable and platform specific userspace will have the information to provide the firmware it likes, even if that does end up involving a lot of symlinks. > All of the qcom platforms use firmware-name from DT to get the full firmware > path with name. > I know this has scaling issues, but with the current state of things, its > the only option I see. When you say "all the qcom platforms" what do you mean, you're proposing a new property here? --Iw1MrnpkR98xnaXf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmSccRMACgkQJNaLcl1U h9BRrwf8DRcauWHVO26sbyrZZ2DD0opRH8+s+6Omd6fL+MKJ8WXwMYpBKHxfHWFU 2LchHvPwo+UVu/lj6qhkOM/B3RV8yt0VK1yMpjcKGEPqJWIQn6dH9lEIcnCnVmTU dIkoxX4fd0FjNthvyVBqjuzKHkHQsaanWH6S6zz2KtDRThROD6EuaJv4ODfOGYST 55BSX3JIZ5rTOVhCsT9fMLCpK353CHOaqrO7xd4UdGDRoLYP8gNxIivjZPBBKnBy SEAtK3SVxhNBv0xRTYivVY0yvIBjf/XyVRuDrRlllCywc9vTZRDEYT6wXFfcyQ5z yS96KgbdGB1uTs/blOMFnzxh1peu+w== =/Cgk -----END PGP SIGNATURE----- --Iw1MrnpkR98xnaXf--