Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp702958imu; Tue, 11 Dec 2018 06:19:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xvmhv4O/7gVSpvsVlI0aQgTlKjGZaR5UaE8e9OtL7gY7d4ePzTKTF4gRZAaPWK1jjAqs2N X-Received: by 2002:a65:514c:: with SMTP id g12mr14640258pgq.169.1544537973273; Tue, 11 Dec 2018 06:19:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544537973; cv=none; d=google.com; s=arc-20160816; b=dJWfUpt8HZ+V8R7fKzwBKbO/jT7tUclY9fV6/d2tVdI2/Fasfw9vCULo98PX0OA5Ja 5Pp/346CUOmHm/QPA1ET6QIMmQ+a9g1qDnAWcuvObiQqV84OzGBGkMVBJOdAD9VpLtEF l5w4xp2d7L7iV9wvzsxmRmI7SRSnLCNwRlaFs2UJLQ+QJyaQfNKjFzBhU190lUV4aGqE jvRha6RL6I4O5OuhB7QUqVXrSElE2zy9ZhYcRtjbpvXO9/MbJnAXCiFNV4xa5jLFQCb0 O7tflHiOsm5WyQatUTaoa+leWsvNixrPmml/rsyBoOHaowl6u304nKLO7Em8vrLQ2VP8 yPVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tN7ZKYDUCitBrY2TU6cTNTnyqTMfRDEZapIfoXQ3Gj0=; b=KNvRViD5375KvvyVQiB+URMg0L1/MGRjeldAmHXc5PUfm1WWXuFkU5mGHfWd0hs/+T XOO17VDe7odtGDnJ15692tiv9rHH13I+W19w5w590utRPGBsXSx2l4jTcLdT4bP0x5IB yjUYKLY/D/+YaTCoX9XRGXvkbo28OpC4cuqyyUf8R3jyUywMmcLY+1vmjxdTtVITb02q IYt1K1ZzPYpT0fBKvUbV/+zyQAa/ej+LCiz+G2pmCGNz2BroRdjXphgQlCfkD7w41U/E i/nKErn1kRdrkkEP0MEq94VzChPyZ/4K5QN8Ln1q+jXO60CkHkS4xYq/Vk5m8BAVd5J7 xrDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id go3si12234326plb.97.2018.12.11.06.19.17; Tue, 11 Dec 2018 06:19:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726844AbeLKOQy (ORCPT + 99 others); Tue, 11 Dec 2018 09:16:54 -0500 Received: from muru.com ([72.249.23.125]:57326 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbeLKOQx (ORCPT ); Tue, 11 Dec 2018 09:16:53 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 93A6B8027; Tue, 11 Dec 2018 14:16:55 +0000 (UTC) Date: Tue, 11 Dec 2018 06:16:49 -0800 From: Tony Lindgren To: Kuninori Morimoto Cc: Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , "linux-omap@vger.kernel.org" , Sebastian Reichel , Jarkko Nikula , Peter Ujfalusi Subject: Re: [PATCH 0/2] Graph fixes for using multiple endpoints per port Message-ID: <20181211141649.GL6707@atomide.com> References: <20181211020557.61783-1-tony@atomide.com> <8736r4bvf3.wl-kuninori.morimoto.gx@renesas.com> <20181211045220.GI6707@atomide.com> <871s6obqkb.wl-kuninori.morimoto.gx@renesas.com> <20181211053536.GJ6707@atomide.com> <87wooga9an.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wooga9an.wl-kuninori.morimoto.gx@renesas.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, * Kuninori Morimoto [181211 06:14]: > > Hi Tony > > > > And, your [2/2] patch, > > > I guess you are misunderstanding about "port" vs "endpoint", > > > or omap-mcbsp driver side need to update ? > > > > Yes omap-mcbsp driver needs to be updated for multiple endpoints. > > > > Adding Jarkko and Peter also to Cc, below is the WIP patch that I'm > > currently using for omap-mcbsp to add more DAIs. > > > > So far nothing else to do in the omap-mcbsp as it's the cpcap hardware > > that configures the TDM timeslots. And I'm currently assuming the > > first instance is the master, I guess that should be parsed from the > > the frame-master dts property instead. > (snip) > > + if (np) > > + mcbsp->dai_count = of_graph_get_endpoint_count(np); > > OK, you have multi DAI. > Then, you need to count is "port", not "endpoint". The issue I have with that it does not then follow the binding doc :) See this part in Documentation/devicetree/bindings/graph.txt: "If a single port is connected to more than one remote device, an 'endpoint' child node must be provided for each link." Isn't the I2C TDM case the same as "single port connecected to more than one remote device" rather than multiple ports? To me it seems we're currently only handling the multiple ports case, and not multiple endpoints for a port. Other than fixing that, things should work just as earlier with my two patches. That is unless I accidentally broke something. So just trying to correct the binding usage. Or am I missing something? Regards, Tony