Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp980095rdd; Wed, 10 Jan 2024 05:24:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoKXvBMRXkKq/keQat/weJ+ZNy6VKMoB+07cnl8Z2TVvHQo8R26OA9mY49cBehD9yopmAZ X-Received: by 2002:ad4:598e:0:b0:680:fb20:201c with SMTP id ek14-20020ad4598e000000b00680fb20201cmr919980qvb.114.1704893081479; Wed, 10 Jan 2024 05:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704893081; cv=none; d=google.com; s=arc-20160816; b=gBnt9wRZ/N+ncZVLsglzoiI+2NuCPx97c3p5Y0ZhRujIezRenFg6wtJ7TmU519f/oK X6Nxc4gpe7Y2MKevOHEOEIuJbWGwqOtyTf56268zz4vCS1r05Kj8fh11GsGSaBOvkZFt Y3ZF4fBJLPAr4mlpY/CaGdpr5mrv2f+gKqo+ZxUSYiLE/fOle1uWmgsd/fpi48OcrPvW glk445BE2bnyWl/Z/onh9dDiRc2TqiRKamD7HGnWgU4ygU8m6UfvwNYtXXZlAoKclLll CqF+ocCtP5HiOqL+QpYw4XikNYhBazRFbiyhW5NH/5VGWEq1TiZ91f5swVqGmf+z5azp 0Cxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=KvHaK1RgalUg8ozCmF576A/qDpgZcPnqAvpVNUNT6sA=; fh=+GiXWE402lOmxQHESLIqtIjCwijrx/qmGBIn73fW84E=; b=kYRUHHqahlIlZPR85asW+564ID/TfjP6KdrD9b4o5R0QgSV5kzNtVldJuPhcz8qgBV Cl/OXXeZ/tq4kk356BEoqJq0+o3k5pdmCBvmBfT94G5k/W8GNFZ3tZkIv2Ope+avuaHW /9QE4wcxEySCvay44fPro9qdwdfnzPYAOFnw7M71y3fmWIxeIOExtuyBg4gOlAn/sDxd jQKFxTzOSGxlxl/oMrkg+j0WxMDc37vCaCwxbt3Js93hpqQ3vhYp3d7K+zEne3toF3Dx jaTEdSl7JV+1N9jL3eLDUrp3RwqUDwM9LFDQ2Xx4BwTRp/fAwcPaxBp9r+mEu5dw6FG1 SjNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GlibfMCg; spf=pass (google.com: domain of linux-kernel+bounces-22228-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o12-20020a0ce40c000000b0067abb363a4bsi4422527qvl.231.2024.01.10.05.24.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 05:24:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22228-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GlibfMCg; spf=pass (google.com: domain of linux-kernel+bounces-22228-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id ED5E61C21AF5 for ; Wed, 10 Jan 2024 13:24:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30A4348CCC; Wed, 10 Jan 2024 13:24:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GlibfMCg" Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A92703FB3A for ; Wed, 10 Jan 2024 13:24:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-555144cd330so5179941a12.2 for ; Wed, 10 Jan 2024 05:24:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704893069; x=1705497869; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=KvHaK1RgalUg8ozCmF576A/qDpgZcPnqAvpVNUNT6sA=; b=GlibfMCg0ba+sOvFuTdb09zn4e+nODYnbJggcjwVtVcaLPDZS9mldog2DoUgodGyRy P6qSrywpHmHjsj5XGdNF/2eMIzZdxCRSi+znQj+Cpqk7RHupkejDynbOzfOUFh3AAlGe lFEvLtD4fPBYOYuMAMfc7cDY2PPXefz5Qdc+0JP4hW9Vu01YrCmL4jnOxOEYJ2GT3M3I EB0FcInGdORjulHJE3kC9j9f466Z/QdN4dN1wY0iII2lZYAqj0FYO8lZZhWpQH9FzTXy lpTWfFOsrmVHoPBC428PP1X9oHD8NF5eysdJw+Z3Ots9s/GR6IDKamxEhpryUQcRCe1N qxAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704893069; x=1705497869; h=content-transfer-encoding:in-reply-to:autocrypt: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=KvHaK1RgalUg8ozCmF576A/qDpgZcPnqAvpVNUNT6sA=; b=aVE+Zf0m4ze1QS0K/WKF/ygRupHDHO5NU1ZhFHZQ1gUDOvI/aHX/WyxBLO49RJ6jMA nNpqTPZt5STxupZ43D9qeH5NUujHOOpZ1fKzJ76M0Id7bU3+Gyc2DMmwd8wdORErzRea y4wyolV3CgW/I/UWz4FiC7WxSL3Lwhx+alpMyQyAxEksohTuW857JLYH6oJ07gd0pRA/ kOpb1CcsKLOvUXeSlYQgndwj0wCR6/VibEaDsl43MqYYhKXVyq/8+s34vzulko7yc+EW ymUkLDdfEkMtTS6SeVfKyTGds2hgirXkWPhUe3ki5q8UkaCYPMZYK/Jan9x5WsmhyWNe 5Amg== X-Gm-Message-State: AOJu0YzacAYt4fD4j9Uv+ilA40YBBkDMFsBX12B/OmApLbwTAnnXoN0u 3JCXPCVTXWX8C2iQXXN0IrS1N3B93JSsPg== X-Received: by 2002:a17:906:1686:b0:a23:4faa:d4e9 with SMTP id s6-20020a170906168600b00a234faad4e9mr640831ejd.21.1704893068967; Wed, 10 Jan 2024 05:24:28 -0800 (PST) Received: from [192.168.1.20] ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id i25-20020a170906265900b00a27c463fbdesm2091211ejc.211.2024.01.10.05.24.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jan 2024 05:24:28 -0800 (PST) Message-ID: <445daac6-841a-4335-9b53-689e5bd2530c@linaro.org> Date: Wed, 10 Jan 2024 14:24:26 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ASoC: dt-bindings: dai-common: Narrow possible sound-dai-cells Content-Language: en-US To: Mark Brown Cc: Jerome Brunet , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240109213812.558492-1-krzysztof.kozlowski@linaro.org> <1ja5pdzb7k.fsf@starbuckisacylon.baylibre.com> <7e312b05-857f-40a6-a1a1-a954dfea7044@sirena.org.uk> <3b1b956b-985c-45f2-bda3-018aaf897295@sirena.org.uk> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg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o71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <3b1b956b-985c-45f2-bda3-018aaf897295@sirena.org.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/01/2024 13:57, Mark Brown wrote: > On Wed, Jan 10, 2024 at 01:51:03PM +0100, Krzysztof Kozlowski wrote: >> On 10/01/2024 12:37, Mark Brown wrote: >>> On Wed, Jan 10, 2024 at 12:07:30PM +0100, Jerome Brunet wrote: > >>>> If restricting things here is really important, defaulting to 0 (with a >>>> comment explaining it) and letting actual devices then override the >>>> value would feel less 'made up' > >> Wait, what do you mean by "letting actual devices then override"? It's >> already like this. Nothing changed. What do you refer to? > > The suggestion is that instead of limiting to 1 and having one device Nothing limits here to 0. I limit from all technically possible values to reasonable subset. > override limit to 0 and have all the devices that need 1 override as > well. I don't think that actual default value for this should be provided. This should be conscious choice when writing bindings and driver. Similarly we do already for some other #cells: #io-channel-cells, address/size-cells (dtschema), #mux-control-cells and others. I agree we do not restrict all of them, though. However I do not see single reason to allow developers use 3 as #sound-dai-cells. Best regards, Krzysztof