Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755096Ab0BOGYd (ORCPT ); Mon, 15 Feb 2010 01:24:33 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:46110 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754323Ab0BOGYc (ORCPT ); Mon, 15 Feb 2010 01:24:32 -0500 Date: Sun, 14 Feb 2010 22:24:46 -0800 (PST) Message-Id: <20100214.222446.138687519.davem@davemloft.net> To: fujita.tomonori@lab.ntt.co.jp Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, mb@bu3sch.de, stefano.brivio@polimi.it, Larry.Finger@lwfinger.net, akpm@linux-foundation.org Subject: Re: [PATCH -mm] ssb: open-code dma_alloc_coherent From: David Miller In-Reply-To: <20100215142111R.fujita.tomonori@lab.ntt.co.jp> References: <20100215142111R.fujita.tomonori@lab.ntt.co.jp> X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1252 Lines: 31 From: FUJITA Tomonori Date: Mon, 15 Feb 2010 14:21:58 +0900 > From: FUJITA Tomonori > Subject: [PATCH -mm] ssb: open-code dma_alloc_coherent > > This removes ssb_dma_alloc_consistent, a wrapper for > dma_alloc_coherent and pci_alloc_consistent. dma_alloc_coherent > internally calls pci_alloc_consistent against pci devices so we always > use dma_alloc_coherent. > > I prefer to use the DMA API directly instead of creating the ssb_dma_ > API. We have been removing any bus specific DMA APIs. > > One disadvantage of this approach that we lost the debugging ability > of checking the buggy usage of the DMA API against non DMA-capable ssb > buses. But I guess that the ssb drivers are mature enough and can cope > with such change? > > I plan to replace all the ssb_dma API if this approach is fine. > > Signed-off-by: FUJITA Tomonori I'm fine with this: Acked-by: David S. Miller -- 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/