linux-mips
[Top] [All Lists]

Re: Correct way to set coherent_dma_mask on a non-pci device?

To: sbrown@cortland.com
Subject: Re: Correct way to set coherent_dma_mask on a non-pci device?
From: Michael Buesch <mb@bu3sch.de>
Date: Tue, 8 Jul 2008 19:55:47 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <4873A676.8050906@cortland.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <4873A676.8050906@cortland.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)
On Tuesday 08 July 2008 19:40:06 Steve Brown wrote:
> There appears to be no function like pci_set_consistent_dma_mask to set 
> the coherent mask for a non-pci device.
> 
> What is the "proper" way to set it?
> 
> The context for the question is a recent change to ssb_dma_set_mask() in 
> drivers/ssb/main.c that removed the somewhat fragile, direct 
> manipulation of dma_mask and coherent_dma_mask in favor of a call to 
> dma_set_mask().

Note that SSB devices use the dma_*** API for doing DMA remappings.
So it uses dma_set_mask() for setting the mask.

-- 
Greetings Michael.

<Prev in Thread] Current Thread [Next in Thread>