Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp921437imu; Wed, 23 Jan 2019 07:58:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN6PLsXvXOENEz3xdsM4dpGx2QsDuWIbqNUlcg9TyyriJHgvC6yN7KzIcxSq7V02s1oH4sUU X-Received: by 2002:a17:902:e012:: with SMTP id ca18mr2699184plb.218.1548259131761; Wed, 23 Jan 2019 07:58:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548259131; cv=none; d=google.com; s=arc-20160816; b=hDdwI7gW+9gqxNMf4+IjWiWWLQa+D0OjhOEeWJfL+JkD4nDdxFnj9JmwQ9QZsEY6uS EX3NAKeXxAubjOWMEHG0y9TiisId/vXByUoG/ROw7d0GcwzZykHaSwwO+8qcnZ5SoM9j FPLo6BdleSVx2G7BmfmK4tNqs5xHFQNmbCpKENpxpWEOaat1Z9Jvp1lPQ3K/VSbE15vA oQvm7vZPbaj9cPayWkqotZ6842YlKGlFEO/TBhAm5f/dnkEz+F8OBAE4gJuh2o1RbM2K 42aZOebT+7Yajx3F3Tecw4D3dI0Lw9RHtyVUVyfiRde8NZJsOcXhgi0/WjBKH8NRlSsy DXWg== 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:dkim-signature; bh=oIQWA3pcKXcvWgFzeG0kJQ4Pr2BWg5f4JtTYiE2/06w=; b=JB2XXFXrrMvElS3n6AOcQ1mJqV7v6phP2FMYlYtJ1Y0khI9Siziu1FpY8+8zRQvK+F pCWreS4jOMesti2xXc2RiD6OLSwVEti4L95GyqjrcH8xxKJHrFYbT5e+CeHMSiy1TTOT EJYA8QczZXvjIOPFLXGYGsYSUEutkDS6CQvTiW7Thr6GLfw/6PsAM66lie+3Zck1UOBc kzHmv3G/rNfbtWNXD00dRZKnID75TxthaYJFy176m6iHhCUQKR4i3Uzgbh76OSjc1eXu 2glTKk+gBEURAq8jZH3pryM5yoP8LjAfU+V4E4VbBVeVs2TKoad+o8J11alODAP/8deR /gpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QxOt14X6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e35si19117526pgb.548.2019.01.23.07.58.35; Wed, 23 Jan 2019 07:58:51 -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; dkim=pass header.i=@kernel.org header.s=default header.b=QxOt14X6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726124AbfAWP4v (ORCPT + 99 others); Wed, 23 Jan 2019 10:56:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:41274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbfAWP4u (ORCPT ); Wed, 23 Jan 2019 10:56:50 -0500 Received: from localhost (unknown [106.200.229.238]) (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 1314A21019; Wed, 23 Jan 2019 15:56:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548259009; bh=G3Ca8GuuS5k8n1POXOFs0XWw+9mQk5SNjXGrgF/Voj0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QxOt14X63mduhbkXQbIOlowO+iDCT3P5NJDSZcWYq2f7S5b5vWew+iNKteVSXDj1/ NDYSTFdRVVunMuLOYC0rvzxIXh0ZxJXGlLtSPxS09MvhiYHAR5Lz+1uRqBAzbztl8V sLte/PdvW7921O5vt+dHbY5gHUXoDg3Ex6/XDOw8= Date: Wed, 23 Jan 2019 21:25:17 +0530 From: Vinod Koul To: Angus Ainslie Cc: Lucas Stach , angus.ainslie@puri.sm, dmaengine@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Baluta Subject: Re: [PATCH v3 4/5] dma: imx-sdma: add an index for imx8mq multi sdma devices Message-ID: <20190123155517.GR4635@vkoul-mobl> References: <20190120023150.17138-1-angus@akkea.ca> <20190123152310.11680-1-angus@akkea.ca> <20190123152310.11680-5-angus@akkea.ca> <1548257514.28802.3.camel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On 23-01-19, 08:42, Angus Ainslie wrote: > On 2019-01-23 08:31, Lucas Stach wrote: > > Hi Angus, > > > > Am Mittwoch, den 23.01.2019, 08:23 -0700 schrieb Angus Ainslie (Purism): > > > On i.mx8mq, there are two sdma instances, and the common dma framework > > > will get a channel dynamically from any available sdma instance > > > whether > > > it's the first sdma device or the second sdma device. Some IPs like > > > SAI only work with sdma2 not sdma1. To make sure the sdma channel is > > > from > > > the correct sdma device, use an index to match. > > > > > > Based on MLK-16104-2 by Robin Gong > > > > This relies on the probe order of the devices (which should be treated > > as random) for the match to find the right device. This is not > > acceptable upstream. > > > > The DT "dmas" property already specifies the correct SDMA device to use > > for a consumer, so the filter function should really match the OF node > > of the SDMA device with the node specified in the dmas phandle in order > > to pick the right SDMA engine. > > > > Thanks Lucas, I'll fix it for rev 4 And fix the subsystem name, it is 'dmaengine: ...' not 'dma: ...'. git log of the subsystem should give you good clue of the tags to be used.. Thanks -- ~Vinod