From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kristoffer Glembo Date: Tue, 18 Jan 2011 09:25:24 +0000 Subject: Re: [PATCH 4/4 V2] sparc/leon: Add LEON dma_ops. Message-Id: <4D355C84.1090801@gaisler.com> List-Id: References: <1294909535-6290-5-git-send-email-kristoffer@gaisler.com> In-Reply-To: <1294909535-6290-5-git-send-email-kristoffer@gaisler.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org Hi, Sam Ravnborg wrote: > > I have failed to see what is the difference between pci32_alloc_coherent() > and the LEON variant of sbus_alloc_coherent(). Yes the only difference it the setting of the name in the resource. Maybe it does not warrant the messy code. > > Likewise for this. It looks equal to pci32_free_coherent(). > Yes this case is actually totally equal. For me it is no problem using the pci versions. I tried using the sbus versions on advice from Dave but maybe it was not very successful :) > Please investigate if you can use pci32_unmap_sg. > If this is the case you can reuse pci32_dma_ops direct. > As you can use pci32_map_sg() I would assume you can also > use the counterpart for unmap.. > Yes I can remove it. It was pretty unnecessary. Thanks, Kristoffer