Re: [Patch] DMA mapping API for Alpha

Christoph Hellwig
2003-04-29T12:28:46Z

On Tue, Apr 29, 2003 at 04:23:22PM +0400, Ivan Kokshaysky wrote:
> Agreed, but what if your EISA-PCI bridge has only 30 address lines wired
> to PCI? Yes, we can check this for EISA device because it has *real*
> PCI parent (thanks, Marc :-), but what about ISA/legacy/whatever drivers?
> I doubt that all of them bother to set dma_mask pointer (so you can have
> an oops there).

If you have a struct device for them you need to set the dma_mask
and it should better have some parent (real or fake, at least the
data structures must be setup). The old NULL argument will stay for
while. If at some point all drivers doing that are converted (or
go away :)) it could be dropped.