From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from newverein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wpvBJ3JbqzDqBX for ; Fri, 16 Jun 2017 18:47:04 +1000 (AEST) Date: Fri, 16 Jun 2017 10:47:01 +0200 From: Christoph Hellwig To: Julian Calaby Cc: Christoph Hellwig , x86@kernel.org, "Mailing List, Arm" , xen-devel@lists.xenproject.org, linux-c6x-dev@linux-c6x.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-mips@linux-mips.org, openrisc@lists.librecores.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux , linux-xtensa@linux-xtensa.org, dmaengine@vger.kernel.org, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, iommu@lists.linux-foundation.org, netdev , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 28/44] sparc: remove arch specific dma_supported implementations Message-ID: <20170616084701.GE10582@lst.de> References: <20170608132609.32662-1-hch@lst.de> <20170608132609.32662-29-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Jun 09, 2017 at 12:22:48AM +1000, Julian Calaby wrote: > I'm guessing there's a few places that have DMA ops but DMA isn't > actually supported. Why not have a common method for this, maybe > "dma_not_supported"? It's not common at all. Except for sbus all dma API user first call set_dma_mask which ends up in the dma_supported call. sbus is the weird outlier here.