Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1273177imu; Tue, 11 Dec 2018 16:20:59 -0800 (PST) X-Google-Smtp-Source: AFSGD/VRrOmKdSdbc7xfw4zDsLlPWCPCME0efqa0SEKhihVyPfqK96S3MJWDOfWg5rbSDDV8uWuZ X-Received: by 2002:a17:902:9897:: with SMTP id s23mr17173066plp.69.1544574059104; Tue, 11 Dec 2018 16:20:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544574059; cv=none; d=google.com; s=arc-20160816; b=lgWh+fJJ4hMwg3Ospth8kswdNRXF2bBVcb2HgkDc5tzogRYoqUJW00K0gdSkgTlDiA 8txzO7aNSNjRxW9WFrITM/l4okIsyR2EaAdDouQwkIBaWvJEiYx7OhJmePTanpzorVte d9905fQu+kKzWRpXOovF2+dgK3jwpXwrsD9gIWtP+qGJTPI1o3L7UkIxEsc3Qw8kdsRS vbI087uL3MJPxW5VN9shCJ23SNEHWexZqMSknMhbvOlNuVVVV6uWMY7wGH04FC3q2BGz 9IQ6ACcbT3T/vSUkn1eb5WsanMbBeEazSqYKz88c5n9LPhZG8nwhMwbSRf+c3eIOoL+n f5iQ== 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=jmI/w5zm4/xC5Aml9nFdOA6JklGdYFuHpCtbbVRdiUk=; b=F54ph3AFlEhkl5fW/PIxQir9QiW0yAq670DUlLYZxcqtE2xBwP1Og/vaCl5hjrtdm+ w49Uo73nuoKrKZK4r5Y+j3dvy8VfyRaFUKQ+Lehc937xz8rbtV31yv88+M5NITM1UhBQ 4C2UMcobapOsg0dFw8GxS+Vn0imI2NfRbIkuscBOPobqxM383+v6pfIcka7TlxPV2XgJ 3tgCVobih2GT3i+8lD2ftk0tHGVfrzqbmcJ0xMAfOqgSMZEDZw/3eXQKnO8YpS5LQHoO zCP78oJxyR68AM2MERUj1GR/vPtaqzYZYLZ+ulw+X263XMISZjTJnqcnvmnsoS8D0F3R pfOA== 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 a11si14732816pla.20.2018.12.11.16.20.43; Tue, 11 Dec 2018 16:20:59 -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 S1726232AbeLLATz (ORCPT + 99 others); Tue, 11 Dec 2018 19:19:55 -0500 Received: from muru.com ([72.249.23.125]:57540 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbeLLATz (ORCPT ); Tue, 11 Dec 2018 19:19:55 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 1FB0B8027; Wed, 12 Dec 2018 00:19:57 +0000 (UTC) Date: Tue, 11 Dec 2018 16:19:50 -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: <20181212001950.GX6707@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> <20181211141649.GL6707@atomide.com> <87ftv33bpg.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ftv33bpg.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 * Kuninori Morimoto [181211 23:16]: > > Hi Tony > > > 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? > > I'm not 100% sure your "I2C TDM case", but you can check > multi-endpoint sample on "Example: Multi DAI with DPCM" below. > "pcm3168a" is using multi-endpoint. > Does this help you ? > > https://patchwork.kernel.org/patch/10712877/ Hmm, so do you have multiple separate ports at the "&sound" node hardware? If so then yeah multiple ports make sense. But if you only a single physical (I2S?) port at the "&sound" node hardware, then IMO you should only have one port and multiple endpoints there according to the graph.txt binding doc. In my McBSP case there is only a single physical I2S port that can be TDM split into timeslots. Regards, Tony