Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp565475rdb; Tue, 16 Jan 2024 08:47:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEaDbHNcrbZCbjAhVeR2gLRtkpC7OOVl+v6+hpp5BZZu5i+IvE0cA0ifLKlH84oC8fv2Mot X-Received: by 2002:a05:6359:6e10:b0:170:c1a7:243 with SMTP id th16-20020a0563596e1000b00170c1a70243mr2243514rwb.33.1705423674821; Tue, 16 Jan 2024 08:47:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705423674; cv=none; d=google.com; s=arc-20160816; b=NM4a8cz3iiszp6gEmGCyCVuXlaa3wOtNh6aAoFSENZckp3C+b2SfcjXgatrxVgv4xL gvQm5XUb2eYsRfKftiv5otWU3OhFeR+sShs1MIsHM4VTtF9UWlnvF2VrlxDkrFB4Z8VV NHGKmeCBx68g1C3+2H4DJ8c4qtA71V4arbfJmX6f9z7nWcAaAnqPfjV8UUaN7Z2a/l13 eSHXAhyiOQabT0zW+CdlrCYFuCQircCJvTCJy6mBlIMChYTUPY1Mo6tDdkngTcXOjHz/ GlhVkEKTJQ3jh6odB3SGoWNQPeTUruuLzFAibN4D8GybYOsUabBSuoU7HWsjdcDiPuoT 9Q2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+jHqshWDG92EHCBJ0qCj1VDAfnGqRn+GeA6KeRrVQ9k=; fh=vkJtA3+1uI3hewLKCS00sYwF1RhcIls628aGGp/tGpU=; b=C8kVgDpM4+VfRwO58Z/gO0a5Ce290J0xEUZsWs6ygnV9Ll80yvGCt3ZSLdRk4AjSxw 8TMILEqvG1A/18zWxuuvBQwOz7lkht+0LLI2/UBRzeyl/81/9EHfhvxiFGPxRPtCw3NW 7PiKmLmWUYZllNPxpzLYdPBKcuWMnhgQA40kkVhLFP7nxH9csEYaTf7/R01cIfijOD2G uceIMp3gxWziVDN5q5Nmn2bjoIrtMAmRfwWlKxFWVMzGGuUdBaVzISNFb45GlqFWN5Zg iO5tJLQxJD33Y3LJaVNjCE3dWlDWVNe9gl2K2sGcIG8UiV7anZL4RG4j2BxNpB6Axla4 IjLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VDcxDPja; spf=pass (google.com: domain of linux-kernel+bounces-27588-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27588-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 v69-20020a638948000000b005cdfb96ea62si11020288pgd.243.2024.01.16.08.47.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 08:47:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27588-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=@kernel.org header.s=k20201202 header.b=VDcxDPja; spf=pass (google.com: domain of linux-kernel+bounces-27588-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27588-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 352EF285937 for ; Tue, 16 Jan 2024 16:47:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31E061C6B6; Tue, 16 Jan 2024 16:47:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VDcxDPja" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 612A1748D; Tue, 16 Jan 2024 16:47:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADF5BC433C7; Tue, 16 Jan 2024 16:47:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705423661; bh=fCFQedqBtnHbk0RjkLAsOwMAS2Fb6uEfIUfJDT9Jjzo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VDcxDPjaqkX7bh/a5dvzL+zrOdvUXO+D68NLQwuZXoE/f0CIGUrTsK/jHv7+sYSEG 60TM0eokPBmFx5U6RrzXiRFEE8FyxRrg6ch4s7jRk78m+BLB4KAqX9IpsfuULyJBY7 OEzQ+IJjnV5xLp1GgevJmJZqx4RfNuu8dRIykZUN5E+NVS00ZoXW8krtyROk1yw9JN re/uUAvqbqaoJc4sky02cHWPwSsPSAsN7SAA3epwPZOuwvZkCYjsDejpPKNMln+2CE Sq7AEPzpLzeW1V4gXpz4Pgx85Z256Ex4WEErbPWlUu6VAVW5+qMc9+srB5jv1CnlG7 ZH9L4Plv/tVPQ== Date: Tue, 16 Jan 2024 10:47:39 -0600 From: Rob Herring To: Jerome Brunet Cc: Krzysztof Kozlowski , Mark Brown , Liam Girdwood , 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 Message-ID: <20240116164739.GA93647-robh@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> <445daac6-841a-4335-9b53-689e5bd2530c@linaro.org> <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; charset=us-ascii Content-Disposition: inline In-Reply-To: <1jjzohxpl7.fsf@starbuckisacylon.baylibre.com> On Wed, Jan 10, 2024 at 02:36:01PM +0100, Jerome Brunet wrote: > > 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. Why not? If someone comes up with a use for N cells, I'd like to know about it which would be more easily seen here than hidden in some device specific binding. That being said, there's a global max of 8 in dtschema already, so limiting here doesn't add that much. Rob