* Ladislav Michl <ladis@xxxxxxxxxxxxxx> [171110 10:06]: > On Fri, Nov 10, 2017 at 10:25:24AM +0200, Peter Ujfalusi wrote: > > Hi, > > > > On 2017-11-09 11:15, Ladislav Michl wrote: > > > Since the very first commit (36cd4fb5d277: "[MTD] [OneNAND] Add OMAP2 / OMAP3 > > > OneNAND driver") DMA is disabled for OMAP2. Later fixes thus went only into > > > OMAP3 specific DMA functions which turned out not to be so OMAP3 specific. > > > Therefore replace open coded timeout waiting for completion in OMAP3 > > > functions with API call and merge those two implementations. > > > > > > Note that currently the is no single DMA user, so this change is basically > > > no-op. Those interested will have to find DMA configuration in the > > > linux-omap.git history. > > > > fwiw I have two patches for some time to convert the omap2 onenand > > driver to DMAengine: > > https://github.com/omap-audio/linux-audio/commits/peter/linux-next-wip/drivers/mtd/onenand/omap2.c > > That is incredible! I was thinking about it as a next step and you already > did all the work. > > > I can wait for your series and rebase mine or if you have time can test > > them and see if they can be included in your update series. Yeah that's great, one step closer to removing the legacy dma support! > I run out of time few days ago already, but this looks so good that it is > worth to delay other work. I'll include it in next version of patch serie. > > Also it will allow us to dump 'dma-channel' and use DMA if gpio pin > is configured which was intended logic of original driver. 'dma-channel' > was introduced during mechanical conversion to DT and fortunately it is > not used yet, so we can safely remove it again. FYI, the gpio pin for onenand should not be in gpio mode. It should be used as external dma request line to automatically trigger new transfers like we do for tusb6010 dma. But of course it's possible that onenand has other issues too preventing the dma usage. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html