Re: Proposal for new generic device API: dma_get_required_mask()

From: James Bottomley
Date: Fri Jun 18 2004 - 09:21:56 EST


On Fri, 2004-06-18 at 00:59, Jeremy Higdon wrote:
> Sounds good. But I'm curious why you make the driver call dma_set_mask()
> twice.

Basically so that dma_get_required_mask() returns a value that may be
related to the current mask. If the device has a wierd mask setting
(say it has bits missing or something), the platform may want to return
something different to tune the required mask to be optimal.

James


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/