Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp958155rdd; Wed, 10 Jan 2024 04:51:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFyHZAkXg+Ws1GE97C6eyBB8cupgZl89d4GlKzkGY511T4PPnDiVvTjh6rJ/I7oI7D2rpwJ X-Received: by 2002:a81:a006:0:b0:5e7:76b9:f63a with SMTP id x6-20020a81a006000000b005e776b9f63amr858885ywg.71.1704891078331; Wed, 10 Jan 2024 04:51:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704891078; cv=none; d=google.com; s=arc-20160816; b=erIGa3E0lfIHbWVgGkE6Mh/pnAPC3OwOieUzszy9pbmOuLRWVkTy1Umcab0KCBonWZ VD5AefA12msRYxmu3h/yEhJwiboCOUFmL3TpF+WbTUfGv7PLWpewQcZkAPQcBR3xfF1g ADfz62H9SNIy2Vee7tQKDXf4nGC+WV2IxPNW+BTuSPNnBEa41zteqLM3dXfUjXVv4VUQ vUdmr61GbdAAZrWNLKYpvLt1BebiRe43kZGkzBEuDdUmZkY4ptSeD1/6SBEffk8KJ0PH tzS5bohWrhfzC1zDo0TnUpMehtsOWstvUpyWcCqQQDwh0cl+vOt6TPcffBoNm26CTNF3 9JpA== 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=ku+u5tn2v3XRP3S/LgGnnGpjxP5fXHm6nWK64IWCBQI=; fh=zbZnJx1WcKoOT3iZRfwLWbaYVoxdrGGtRLKnv9KCjps=; b=Ghq98f3bH+oLS0FAgVt1JbXS3AyTTJ8rrXWsK3nKBFGOC8t8yCq9bpoqr66b1jy4fF FMHZfD27aZnfHRdDHU7xHLh5K/IKcuae8BOmrY0/RHUNW9hNZ0+wSkKetGEDuAC0iUgs YGzljZOXVrNeXofaF/1aM64qH2ir8akupNFvgGbXZ3IdeWBkulAU38bNCbETBl57xFWD VVWdS6u/dfh0l/maVAQgs2mdWVua2hTzfOOE2Smcjf0hrR68JqV1r+Nz25Mg7z0BQqco fN074PDwnjhAcU83lNxssUe19TXABIfwZ7q88AysLAMrPlzQxwcc4chxSAXJWaZ/lhYQ fMsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PQxeu7yi; spf=pass (google.com: domain of linux-kernel+bounces-22190-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22190-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 h8-20020a05620a400800b007833167f1b4si2647865qko.182.2024.01.10.04.51.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 04:51:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22190-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=PQxeu7yi; spf=pass (google.com: domain of linux-kernel+bounces-22190-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22190-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 0E2971C21534 for ; Wed, 10 Jan 2024 12:51:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFDDE48781; Wed, 10 Jan 2024 12:51:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PQxeu7yi" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.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 708D04176A for ; Wed, 10 Jan 2024 12:51:07 +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-wr1-f53.google.com with SMTP id ffacd0b85a97d-33761e291c1so2407994f8f.0 for ; Wed, 10 Jan 2024 04:51:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704891065; x=1705495865; 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=ku+u5tn2v3XRP3S/LgGnnGpjxP5fXHm6nWK64IWCBQI=; b=PQxeu7yiadwgHDuypJMKWJ/1F3ibFZglWLDgOdjh1AZt/wm8oL5Rnzib/Ii0Q66L1r q1XGSHtEHtKzqPCxdYgpwiRIRUb41VPDCv4zl/BmhkU4+k7wPhEeefraTS6Uavj2x2/O f2Z6vp9QNmkDrcE74Rt+ttSzHCmitMWkoLzM3O/qdX4INSZH0l5rExIvAkvMkUujnmfN PXqyMezYFxRUSt94PYbSya6RaUPEr3XdrDT/xyQFWAl2VomjSjBHNE28/BNup+MPcJfI KEG600JhARIiJQkloANopmwMDkCS3MdziYAaBnkcEOPxCeNXN87Ue4toElyXcJykLnVa Tchw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704891065; x=1705495865; 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=ku+u5tn2v3XRP3S/LgGnnGpjxP5fXHm6nWK64IWCBQI=; b=G1wIkWm3TzgdrthZM+CzChjCUFTniy2YQQSW+6fKQ3cy0KloE6GAsTk38Wqm/7I/iC 41AcBq53NxVpTdnzmArYLLBWSmu1QG5Osd5WGUJz5nGKQx27Dw4gYiOwqPVWds6K+8mK 03eeVTohqOyp56OYg3PtQft+2VYy8MPSCVO3EpMLqWYKrxi6lJy+ZTjYHcYNdxlnZb7a Pkq5d1Sskb9Q70JdWsQdXjoAF9o5vVSyNoTbon6JNP+4OzqR22C+Sb2b7jowKjsmc5P2 EX+ixCLcHW4mMcDhpsASgVV/AoLXjuA2SPic0ci7SaU1bVkJiOz4VGwg9Il3y/fQXv4B +7Jg== X-Gm-Message-State: AOJu0YykiZyx+R6oe651Kn3F0MzHwgDG7TMiVyt6S22S8X8PfAXjd00F ovjkRCgzCY/qF0UBY8iPRYuz/Jj0Et8nMw== X-Received: by 2002:a05:600c:5d2:b0:40e:4e36:d075 with SMTP id p18-20020a05600c05d200b0040e4e36d075mr593wmd.133.1704891065695; Wed, 10 Jan 2024 04:51:05 -0800 (PST) Received: from [192.168.1.20] ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id iv17-20020a05600c549100b0040c6d559490sm2114029wmb.3.2024.01.10.04.51.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jan 2024 04:51:05 -0800 (PST) Message-ID: Date: Wed, 10 Jan 2024 13:51:03 +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 , Jerome Brunet Cc: 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> 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 S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+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2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <7e312b05-857f-40a6-a1a1-a954dfea7044@sirena.org.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/01/2024 12:37, Mark Brown wrote: > On Wed, Jan 10, 2024 at 12:07:30PM +0100, Jerome Brunet wrote: >> On Tue 09 Jan 2024 at 22:38, Krzysztof Kozlowski wrote: >> >>> Instead of accepting any value for sound-dai-cells, the common DAI >>> properties schema should narrow them to sane choice. > >> Adding a constraint solely based on current usage feels wrong. Current usage comes from current and past experience. There is no upper limit in theory, but there is a limit which we found reasonable. > >> A DAI provider in its generic form must have the sound-dai-cells to >> provide one. It says nothing about how many parameters an actual device >> might need. That is the idea behind this binding. Just like with every #cells. Why sound should be different? > >> It is up to the device specific bindings to define that value. And device specific bindings define specific value applicable to the device. From allowed choice of some reasonable values. > >> 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? Best regards, Krzysztof