From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v1 1/1] mmc: atmel-mci: allow DMA transfers for AVR32 Date: Thu, 06 Aug 2015 15:16:42 +0200 Message-ID: <3145453.Up7YqQQtr8@wuerfel> References: <1437998010-12036-1-git-send-email-andriy.shevchenko@linux.intel.com> <1438008334.29746.92.camel@linux.intel.com> <20150806070156.GA19553@odux.rfo.atmel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from mout.kundenserver.de ([212.227.126.187]:50512 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752820AbbHFNQu (ORCPT ); Thu, 6 Aug 2015 09:16:50 -0400 In-Reply-To: <20150806070156.GA19553@odux.rfo.atmel.com> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Ludovic Desroches Cc: Andy Shevchenko , Ulf Hansson , linux-mmc@vger.kernel.org On Thursday 06 August 2015 09:01:56 Ludovic Desroches wrote: > Hi Andy, > > Your patch does a bit more than reverting commit ecb89f2f5f3e. I will > split it in order to see well which previous patches have been reverted. > > On Mon, Jul 27, 2015 at 05:45:34PM +0300, Andy Shevchenko wrote: > > On Mon, 2015-07-27 at 14:24 +0200, Arnd Bergmann wrote: > > > On Monday 27 July 2015 14:53:30 you wrote: > > > > The commit ecb89f2f5f3e (mmc: atmel-mci: remove compat for non DT > > > > board when > > > > requesting dma chan) removes compat transfer which breaks DMA > > > > support for ATNGW100. This patch returns back that functionality. > > > > > > > > Cc: Ludovic Desroches > > > > Signed-off-by: Andy Shevchenko > > > > > > > > > > How about moving that filter function into arch/avr32 to make the > > > mmc driver independent of the underlying dma engine implementation > > > at the same time? > > It would be great to not keep code which becomes architecture dependant. > If we can move the filter function somewhere in arch/avr32, we will have > to revert commit fda1b26 and use dma_request_slave_channel_compat. > > I had a look to the arch/avr32 directory but I don't know where to put > this kind of stuff. Next to the at32_add_device_mci() function, with a pointer to the filter function added to struct mci_platform_data, and the mci_dma_data structure replaced with a void pointer after moving the definition to the same place. Arnd