Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp995973rdd; Wed, 10 Jan 2024 05:53:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEaztMUO2LRfzCR1D5GyG41Yqs10aAf+zPnhd4K+vUIabX1bm65a9wxztSOOyuRWlR69fdU X-Received: by 2002:a17:902:7ec9:b0:1d4:1373:e986 with SMTP id p9-20020a1709027ec900b001d41373e986mr702380plb.122.1704894783936; Wed, 10 Jan 2024 05:53:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704894783; cv=none; d=google.com; s=arc-20160816; b=dCWomEhZ8JHv/yyCI9N4yHDdNaiRK/Aev8/47FzoAo4u3fFVVrlufBdKXL3c7u3xfu 3xOid01ysuYAz6i4vu0eQUQoWeSXQLmGmD29NZC8XndE20OQTMSXsbaMZFsdb3YNVauQ K7KanEu6I4rxvSQZwUZBm93tQOXtHybPt1k+wruN3b0CxMeV6WSHNqKFU6ne57VLOM+V FuT+ovMJYvbQoxTbt+b53mIhIf7/I39s2vdIA1FuGzk57dbdpDtQPeG52ykEAOz4kT3u k3wwtHjLFGbhKlRJKztii6HB9EBBA1svN3h/W3bE/pVFdR2yBphx7l3E07bRxi2jeMb5 ywTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:in-reply-to:date:subject:cc:to:from:user-agent :references:dkim-signature; bh=themo8s+HXqyxpgjBM6NORapLKrMIQiVth0mwG53rLo=; fh=IXpQBy0/eSmuxP4oUuwc6LOot78nbM3B8FNI7z+VSwc=; b=rcJI1ZKrxR2NUJRNqK9s/YEzZYR5s3QG9z9YPjHhawqzmmDPmIkpSJnMqD+Ffz3HM5 fZ0oi+DDeUtx2AuW3P2/X72lcw0+KhKTB7wNog/sdqPXEnJlAOFeWtvq8VzyZIreT2du TLPYrDLiUo/WlFcuHIA1/daEy6clqcVcGPh8+jxfoBMWOwBDJ8OWs9OoepegpKjq3Jy5 uoRN4BPPASsLPkvutebjaNd95V/G+bkLMg3BKkBIh48AMh9Blm/HErxhSpQLuk+Cuf/Z /o5fhrSCVdshsWDKajwgOq4NxJ3hR2me7ef4xsYLo9shxCNhqpwecaoN//GLIRNX2ZxO orGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=y3+hvngN; spf=pass (google.com: domain of linux-kernel+bounces-22283-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22283-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c7-20020a170902b68700b001cfba8ff230si3566812pls.268.2024.01.10.05.53.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 05:53:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22283-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=y3+hvngN; spf=pass (google.com: domain of linux-kernel+bounces-22283-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22283-linux.lists.archive=gmail.com@vger.kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9766C28364C for ; Wed, 10 Jan 2024 13:53:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E474348CEF; Wed, 10 Jan 2024 13:52:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="y3+hvngN" Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 413D948CEE for ; Wed, 10 Jan 2024 13:52:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-40e4d64a431so20335355e9.0 for ; Wed, 10 Jan 2024 05:52:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1704894773; x=1705499573; darn=vger.kernel.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=themo8s+HXqyxpgjBM6NORapLKrMIQiVth0mwG53rLo=; b=y3+hvngNmPsn6hqUV99dAuheUyhmGTAijbYwOevArvML+1zWX7g1IiJf2ArJvGjk0K +T4KXX4djkhTbJxBpzaWhTcGfcpLBJV0b35S/Ashle6fAJlCaQsEtv3O+LB8QIr4dAl0 XniqdYK24E9vSYLMMoHxRK3sxMdOCegeOYk7fy8ZX0kXB0t5NqOH4LIxeaO9O3ENSjt3 OwlgLMdVmSWaHB42swGslAAiIR7+Awofewd99ShxX0SwyddveoX2u36QfGwxA++G5pQC qgSqMVZmg65a6fLRbw6sdQZ1vG507lUcioiX8IGC0d5pFuJf+QvXZ9YqO8HJ3SMe2cFK KyDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704894773; x=1705499573; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=themo8s+HXqyxpgjBM6NORapLKrMIQiVth0mwG53rLo=; b=AtmYUtdX2EaOqZek9IJC/YR/Ygy3qkHUDLZSe6uzA/3nFEeCvD72OwsOB7vhiCFAFA lhDqvWyJj5PK2/KHhY1NGhcKCaK317Q9hoIA/tNTaPWvTtEfaIasVlFBlONJ+aXr1yF0 MuKEHDC9wcmHPMqiG5GlacIzvr/yUoQ/yrsNUYnJTFVRTVHdsEfKBzFrqXvj8vQhQGzu GJrZ9Sbqc2y7Oj/cndAe4rWGMmSOgilyq/hiTH0TW4qiUP2jQKyHAVSTedtL9NO9fEMN STgI3LNTWMtUx8sa8uh9I+++qY1zUziItBia1+UTy1ErGikQy9MzGXmihqcPoAFQk6xd 4XhA== X-Gm-Message-State: AOJu0YwXGymaRNT6/lKvHYNrjCstz94BRi6LgwbQWwsNHsSPns53soFm JrMd3xunnIjDywdV1jwt/gXZss04yhMvKA== X-Received: by 2002:a05:600c:4452:b0:40e:40fc:6d43 with SMTP id v18-20020a05600c445200b0040e40fc6d43mr683325wmn.98.1704894773482; Wed, 10 Jan 2024 05:52:53 -0800 (PST) Received: from localhost ([2a01:e0a:3c5:5fb1:9eb:66c9:5f1b:87ab]) by smtp.gmail.com with ESMTPSA id h5-20020a05600c314500b0040d7c3d5454sm2272062wmo.3.2024.01.10.05.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 05:52:53 -0800 (PST) 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> <445daac6-841a-4335-9b53-689e5bd2530c@linaro.org> User-agent: mu4e 1.10.8; emacs 29.1 From: Jerome Brunet To: Krzysztof Kozlowski Cc: Mark Brown , Jerome Brunet , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: dt-bindings: dai-common: Narrow possible sound-dai-cells Date: Wed, 10 Jan 2024 14:36:01 +0100 In-reply-to: <445daac6-841a-4335-9b53-689e5bd2530c@linaro.org> Message-ID: <1jjzohxpl7.fsf@starbuckisacylon.baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Wed 10 Jan 2024 at 14:24, Krzysztof Kozlowski wrote: > 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. > Similarly, I do not see a reason to forbid it. Submitter should not have to update the generic bindings every time we come up with something new. I agree allowing 0, 1, 2 is a reasonable choice, for now. However it is not correct and has not technical justification. Trying to list every possibly value for something that is not limited is bound to be wrong. The commit description says you don't want to accept any value. A default value is an alternate way to do that. It does not require a justification because it is just convenience. If someone fail to it document properly, it will be picked up by the checking scripts. > Best regards, > Krzysztof -- Jerome