linux-mips
[Top] [All Lists]

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

To: linux-mips@linux-mips.org
Subject: Correct way to set coherent_dma_mask on a non-pci device?
From: Steve Brown <sbrown@cortland.com>
Date: Tue, 08 Jul 2008 13:40:06 -0400
Cc: Michael Buesch <mb@bu3sch.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
Reply-to: sbrown@cortland.com
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.14 (X11/20080501)
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().

Thanks,
Steve


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