Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19683965rwd; Wed, 28 Jun 2023 12:42:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7XkVTqDpZSAAYS4uDK6JpH+fXaKLXiTDzfKgi8Vv9AlUsB+V3w9EODNPoaVKD8v7uf+ySQ X-Received: by 2002:a19:5e41:0:b0:4f8:49a7:2deb with SMTP id z1-20020a195e41000000b004f849a72debmr19623203lfi.8.1687981363512; Wed, 28 Jun 2023 12:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687981363; cv=none; d=google.com; s=arc-20160816; b=PI73BPBa58umXQHom7oFLFMoDpcKJXlrYjueOx2SDwv49PRichuvRkRY7hKvFOm062 CNq2/jUUQYFLG0vXGtl7GEUShCXBOUeclqA5ks1BdfpVNjbopMfaGTE/9NP+bvK1COip TiLEQBjsApMSfxVE5dx1/YhXpuejhMPsWEquQpyoGkAR7Ahr9I6MBkwXYr7VBqyJ1DVz n8PnxJrAZdWvZvgD+c3uboVQYjc4r/JR7SsFHve1GiIxQ2E4zReScgQ+rTOTsPwyp9Xf +2/T1ZclgI1QMMA3z6/Y6Ih7iWphAb6i0v9eB6iMBsUzPkl6XoGO2MUqNuEqMtJK7BNL JV+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8luJOwdXXfNeGMdyQDRfNqFP6j7QRvwX8K5JggFfHh4=; fh=wkD9PP/3//1wPoQDQST3ab8QcojJ3xR+0WrhBXW7zyE=; b=q/0+oWLAx+wOdZzi+Z18slJcYpT4abVnbMEzOy8QR6Bw75Y4hbwcUdZMKxQmSaGjnn oa6Z2qYKSczzTzt2Eo8FqHJjqrI5gGadyd5L0nvaCCyFTlHzDBIwAQI0fipZ0cfWqZtO ZhQ7so1bAt6KBmTYtCYAOasbfrtjVWMZwA0utaOG+gpJWtCkgLV10QjzPCRvX9cXXYV0 7RjbW5ni/3AqaBfL8Xp3Jjh5X1Cc2juHCL8SlGSMPOKdo7GO5KGnQCw1eBVvwUBKW3vI f/r2TTUdLxYbPixJEHo/NhSZFbr8FoQdc9IsrRIuLQqddn7Btb1nWw4cz0qh3zZ2H/6d /GLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OFojlgb6; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p24-20020aa7d318000000b0051d9a16d0d1si3876268edq.284.2023.06.28.12.42.04; Wed, 28 Jun 2023 12:42:43 -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=@linaro.org header.s=google header.b=OFojlgb6; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231944AbjF1TdY (ORCPT + 99 others); Wed, 28 Jun 2023 15:33:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231925AbjF1TdU (ORCPT ); Wed, 28 Jun 2023 15:33:20 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E53A6130 for ; Wed, 28 Jun 2023 12:33:18 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b5e7dba43cso3137331fa.1 for ; Wed, 28 Jun 2023 12:33:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687980797; x=1690572797; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8luJOwdXXfNeGMdyQDRfNqFP6j7QRvwX8K5JggFfHh4=; b=OFojlgb6qOIm4BRwHjuEJRu21xeqeV1LKW39dulUm0vJglosAJKjZTlgW3/cLlgfU8 sPI1lmD/lzuYgpDV9HQafdKnia9WgUg3ps4kGh906wC3CQM3CUftthUwZpdg7TBFzX3b 9IKQRCdmv2yazcc8DILLCL5930i2OlChyeDr4t8roHHZ/8D5Pg3L6dzeUbrwd+FnfPJP DP6qRBRkRtoeC5tx0hOHsHdiNUcEQtnRemfIlpTpqqZ9vtZXAlhmrS8UpwMjvoRSIX/i jxGG/T63PLW80jwq8IRznHCsNQ9kM6G9jYkhNVr3xenUyn7YyYoQknQ5JwtTAu3ecF4b Yjjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687980797; x=1690572797; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8luJOwdXXfNeGMdyQDRfNqFP6j7QRvwX8K5JggFfHh4=; b=WqEtLy3I1PhVw7ZLowfR7MwrjBO+lnXLBvr50Qae33LOxpiT/Vl0yeqNHKsYiiGJB8 /OMD6cR5690yAwwT9EaEbDWVrtfD4mwmaUjP5GDfcqdWUq8W/vnkGnM6DoZP2H/nzSea VDQdnO3YVDGnDz3odbOpMirMPcX/n8xRAOfrocciemhES20AjLjzx3lbn5L+/45W9I8c khnJ2TViWAKClA5MPpQDryKr5reHim51UPKXoZ5sJkC5gTTKRiA7E57bH0AjwHfhvveN sRiA8Esse27v5iSruukbl3DTi/vkaxYbZD6TbsAb/MAzK1VE9bkB6Nrb6y45xC7E5F3i 6AFQ== X-Gm-Message-State: AC+VfDx0fL0EgRBA7xzGNUgXsNDwDJPc7XwZZrZfvtarhHxOjIzQkquA F3khfwkMuPyViL6iKNrByK2cMg== X-Received: by 2002:a19:674d:0:b0:4f8:6ea5:104b with SMTP id e13-20020a19674d000000b004f86ea5104bmr16247327lfj.30.1687980797180; Wed, 28 Jun 2023 12:33:17 -0700 (PDT) Received: from [10.10.15.130] ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id r22-20020ac24d16000000b004fb757bd429sm1385852lfi.96.2023.06.28.12.33.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Jun 2023 12:33:16 -0700 (PDT) Message-ID: Date: Wed, 28 Jun 2023 22:33:16 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 2/3] ASoC: qcom: q6apm: add support for reading firmware name from DT Content-Language: en-GB To: Mark Brown Cc: Srinivas Kandagatla , krzysztof.kozlowski+dt@linaro.org, andersson@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.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 References: <20230628102621.15016-1-srinivas.kandagatla@linaro.org> <20230628102621.15016-3-srinivas.kandagatla@linaro.org> <73dce263-bee6-554f-9eb6-af4aa7badab1@linaro.org> From: Dmitry Baryshkov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 28/06/2023 21:10, Mark Brown wrote: > On Wed, Jun 28, 2023 at 07:57:38PM +0300, Dmitry Baryshkov wrote: >> On 28/06/2023 14: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 >>> put a filename in the ABI which has fun scaling issues. > >> This is what was done by Srini in the initial (currently committed) version. >> Unfortunately this easily results in the audio topology being separated from >> the rest of the platform-specific firmware. For example, for the mentioned >> X13s we already have a subdir under /lib/firmware/qcom and several >> firmware-name DT properties pointing to the files in that subdir: > >> $ grep firmware-name >> arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts >> firmware-name = "qcom/sc8280xp/LENOVO/21BX/qcdxkmsuc8280.mbn"; >> firmware-name = "qcom/sc8280xp/LENOVO/21BX/qcadsp8280.mbn"; >> firmware-name = "qcom/sc8280xp/LENOVO/21BX/qccdsp8280.mbn"; > >> This is not unique to the X13s, other Qualcomm boards also use full paths. > > If the goal here is to put all the firmwares for a given board in a > single place surely it would be better to factor this all out of the > individual drivers so that they ask some helper for a directory to use > for firmware? Adding these device specific firmware node properties > doesn't seem to follow. This quickly becomes overcomplicated. Some platforms use different firmware naming structure. Some firmware goes into a generic location and other files go into device-specific location. So having a generic helper doesn't really help. -- With best wishes Dmitry