Re: [PATCH] RFC: kills consistent_dma_mask

Alan Cox
2003-08-19T16:18:38Z

On Maw, 2003-08-19 at 10:03, Jes Sorensen wrote:
> That would be totally messy. Having drivers do the accounting of what
> mask is currently set and have them switch back and forth depending on
> what type of allocation is currently being used would be a nightmare
> to debug.

It is messy, but the consistent mask only helps a small subset of cases.
Having an __pci_alloc_foo that took the mask as an argument is (a)
trivial (b) adds almost no code (c) solves the general case problem.