From: Gabor Juhos Date: Sun, 04 Jan 2009 12:16:20 +0100 Subject: [ath9k-devel] [RFC 01/12] ath9k: introduce bus specific DMA routines In-Reply-To: <20090104072628.GA12905@infradead.org> References: <1230990262-22923-1-git-send-email-juhosg@openwrt.org> <1230990262-22923-2-git-send-email-juhosg@openwrt.org> <20090104072628.GA12905@infradead.org> Message-ID: <49609A84.3070600@openwrt.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Christoph Hellwig ?rta: > On Sat, Jan 03, 2009 at 02:44:11PM +0100, Gabor Juhos wrote: >> In the AR913x SoCs, the WMAC devices are connected to the CPU through >> the internal AHB bus instead of PCI. We first patch ath9k driver to use >> replaceable DMA routines, so we can use different code for the AHB bus. > >> - pci_unmap_single(sc->pdev, bf->bf_dmacontext, >> - skb->len, >> - PCI_DMA_TODEVICE); >> + ath_unmap_single_to_device(sc, bf->bf_dmacontext, skb->len); > > Just use the dma_* routines, as they are bus-agnostic and make sure the > implementation on your mips SOC works for the ahb bus. > > Ok, i will try it.