Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757553AbbLBIYf (ORCPT ); Wed, 2 Dec 2015 03:24:35 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:52451 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756088AbbLBIYd (ORCPT ); Wed, 2 Dec 2015 03:24:33 -0500 From: Arnd Bergmann To: Vinod Koul Cc: Peter Ujfalusi , andy.shevchenko@gmail.com, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, nsekhar@ti.com, linux-spi@vger.kernel.org Subject: Re: [RFC v02 00/15] dmaengine: New 'universal' API for requesting channel Date: Wed, 02 Dec 2015 09:23:59 +0100 Message-ID: <2174709.hFEDv974P4@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20151202045209.GB1854@localhost> References: <1448891145-10766-1-git-send-email-peter.ujfalusi@ti.com> <3124382.EhiMyQGKTA@wuerfel> <20151202045209.GB1854@localhost> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:/pwfzkL3renqUo3Te4l5RDEStPSvNpAgVdJUdXHuTJ5KMrobofY hVKKum+DIEAbO+j4VSimvl4sDC7mrRCDiPI3E2CG+XAYwyJM/TiaYpCKQcnY1ru5OnJwVVB iLeVb//cbX7ZEEnUR5Cmjy705vNyT+ht7KZlqDpXY7Jyu3n5mvUVZnIXUFZQe/GPOkj3GGL t8CSBTXIGwJwQaHesIenA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Y086eDerE8U=:xQPaHF7DasapKp535uVIm5 hMP2/DN+uiGJT4LLmDzLnxnEuz9Y+DYYRp3IsXkohwtoVWqd0mQfaz56mXWRhUBqJX/CGQ55f 9c7YZDseVppbrK9962QxHBNidQRCgUygad3pxPxGB93r2e9KhOWFPNokLQKmKBnyhW7DDvGd6 6Z7wFydnJfY5/2KuGog2Zg6oJ2fx8OnZ6GBJ8AgyF6N6ZhWdq8wfreEm55hOj9aSXWiKWvHpf j7qtirBLb/pHDyxgpYuD8jJvOaV3DCNkhcKlSCyc6Qn51orTCuwSs4CKQ8RaiZIjSa3yFS1gU vIarnEFAiy6fBZohCMARX8ABfF+iJayPf9KE9Xzl+wjFH4HIOOaqAF5nHw5BPYjG5bGclvkMR 5PQHKCc/xBC1cLj3GaHeP3VJCGknIRdQTPFlJD+TvDw1rwyUww/WYT5VjHceavxJyX+P/WZyD zBS0njf3gVX5RkS5OfKK3pA1KRl5rk5wRqjmJQHjrxxE8jNwDmSmuRpQdzNhN5VRr86c8IO6g c2uoHdONxBy8Kd864GVwN8gZKnw22rwmws5il0QfNGTpLnT/w8ojqqe26jcNO/qbIUR4en+sc opuZUUOGEnj1cuHAHbKaz0tfZzkhK/1WjfdYRzdpAyS15L8fFvGNeC/JHEaqYj4b0Yu8npkbQ PfvwQK8D/WruJpP7J5m01z6rHx3rIZ9SwpvbiSI0bPKWzQ7XSdKj2S8CjwxnZ5zhIcAz+elb1 KhOy5Lt+A+KMFAuV Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2272 Lines: 45 On Wednesday 02 December 2015 10:22:09 Vinod Koul wrote: > > > > > > This legacy mode needs changes in platform code, in dmaengine drivers and > > > > finally the dmaengine user drivers can be converted: > > > > > > Are you marking the current APIs as dericated in the end of this series > > > > I think we practically stopped marking things as deprecated in general. > > Per Linus decree, whenever we want to get rid of something, we should > > instead change all users in tree and then remove the API, expecting > > driver maintainers to do something just because you marked it as deprecated > > often doesn't work. > > Yes but while we do conversion we don't know if new users get added which use > old API.. We probably don't need to worry about new users of dma_request_channel(), as we don't add new ARM platforms without DT, and other architectures don't add a lot of new platforms. Similarly, I don't expect a whole lot of dma_request_slave_channel_compat() users, because the conversion from board files to DT based booting has slowed down a lot after most of the actively maintained platforms are done with it. If you do a one-line patch to add dma_request_chan() as an alias for dma_request_slave_channel_reason() now, we can probably convert most users of dma_request_slave_channel() and dma_request_slave_channel_reason() to dma_request_chan() in the next merge window and do a patch to replace the few remaining ones and remove the API one merge window later. If wewant to stage out the conversion of the dma_request_slave_channel_compat() and dma_request_channel() similarly, it would be good to have all the interface changes for the dmaengine core basically in place, so we can start to convert the platforms independently for the 4.5 merge window without having a dependency on dmaengine patches. It's probably best to not convert a slave driver away from dma_request_channel() until the dma map has been created for all platforms using that driver, again to avoid having too many dependencies. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/