Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3139448pxb; Mon, 9 Nov 2020 03:47:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4BfJNC0NiXo5IWX+mfypa6HUAtGXhcYeeCcsGMvkx47/l7NPlh3O30chrhVXgpxmKbU90 X-Received: by 2002:a50:930f:: with SMTP id m15mr15201072eda.112.1604922460593; Mon, 09 Nov 2020 03:47:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604922460; cv=none; d=google.com; s=arc-20160816; b=oMPSnVYOO4+sAvkvyvb/cSm8XtGVoUPqGxJfaGg2rAFGE4YFoGmBxS9afMM//k0kDD ckMTlq0MOrj4ofKQT1G1AqPnYZVN9199xswdg4hxSieJmLZP1Wm5jXLJrYYEoQWUpqRC nVsWsIqDzriIZIgsLqx0pXXZ3lO9cEhZI/q5AL9iOP2pDVzI4WrOFwKOjs2oSTYyTRNc CiakfUKh7JN+rgQy5q2QtrFuUGyXRQkqToPEssnf5TKsqOTl81w1A2rWR5J3xQ0Wu0Z7 3NnbPidPls2GAmXUMC7mO+DWwCg6tBLPh54gi0nn1sGBk5J/ZQyHyT8Fj70wJknD4QpJ aFkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Xa5/LahUqdYc6JOe7u5JY7rRzX5LnQ4EDYHWYoI0vUw=; b=pmdjn5SzmMypq1EgefUvlWXxnuh4L3HEV0jPVmhH/yJYmOxnxMeMUuNOc2lx/wyUoo 2qvnT9m9vH7nR5X6nQmF6MYpFTgvYsJJfzHmv0LopIe12Lw+G1FyjeejTPZluwDGwEgw FoifSeJ2Uv9yjkmauluObJowMvP5cN9vh2IyIwYp4BKKb2PYzP1EsSQBUm/xwbjcWpXg t5P3OATNH/AVJzTdkk5jDzsPErc32lABD2kNOg7gGmG1lYbajJdqFJdqoWL8ZUw7JfOX yQr4n8h8I0xG0fCrZGNCpUMhyU9b8V57QjdRrMLMVn2KafM77no+ZsoVIFXh5pe9gxZz uNyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="cLqQqk/p"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si5465185edu.121.2020.11.09.03.47.18; Mon, 09 Nov 2020 03:47:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="cLqQqk/p"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729504AbgKILpk (ORCPT + 99 others); Mon, 9 Nov 2020 06:45:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:34988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729159AbgKILpj (ORCPT ); Mon, 9 Nov 2020 06:45:39 -0500 Received: from localhost (unknown [122.171.147.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B028220789; Mon, 9 Nov 2020 11:45:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604922338; bh=Sq0xvvrUlIfUwrgwd92TUa8sP2wVyduYHpqVBUexjyY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cLqQqk/p1pbkgyb4xv019WYnwbtfrM4irwnMHcsw5NTxs5WOLNWgc31fOIxprnAVz SaQ5GKwKM53UGzS3a5TM8BEVpa2YjoO+aoglUHxGw+TqT9uxVtrPOtNdwMxq+SkvYA EkjF3VJ8SPvcINWwwSK3G9vpXyvqAqm12IhyulEo= Date: Mon, 9 Nov 2020 17:15:34 +0530 From: Vinod Koul To: Peter Ujfalusi Cc: nm@ti.com, ssantosh@kernel.org, robh+dt@kernel.org, vigneshr@ti.com, dan.j.williams@intel.com, t-kristo@ti.com, lokeshvutla@ti.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org Subject: Re: [PATCH 01/18] dmaengine: of-dma: Add support for optional router configuration callback Message-ID: <20201109114534.GH3171@vkoul-mobl> References: <20200930091412.8020-1-peter.ujfalusi@ti.com> <20200930091412.8020-2-peter.ujfalusi@ti.com> <20201007054404.GR2968@vkoul-mobl> <20201007155533.GZ2968@vkoul-mobl> <45adb88b-1ef8-1fbf-08c1-9afc6ea4c6f0@ti.com> <20201028055531.GH3550@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Peter, On 28-10-20, 11:56, Peter Ujfalusi wrote: > Hi Vinod, > > On 28/10/2020 7.55, Vinod Koul wrote: > > >> To summarize: > >> In of_dma_route_allocate() the router does not yet know the channel we > >> are going to get. > >> In of_dma_xlate() the DMA driver does not yet know if the channel will > >> use router or not. > >> I need to tell the router the event number it has to send, which is > >> based on the channel number I got. > > > > Sounds reasonable, btw why not pass this information in xlate. Router > > will have a different xlate rather than non router right, or is it same. > > Yes, the router's have their separate xlate, but in that xlate we do not > yet have a channel. I don't know what is the event I need to send from > the router to trigger the channel. > > > If this information is anyway available in DT might be better to get it > > and use from DT > > Without a channel number I can not do anything. > It is close to a chicken and egg problem. We get 'channel' in xlate, so wont that help? I think I am still missing something here :( -- ~Vinod