move dma_mask into struct device
Quoted 5 lines · J.E.J. Bottomley [[email protected]] wrote:
Attached is a patch which moves
dma_maskinto struct device and cleans up the scsi mid-layer to use it (instead of using structpci_dev). The advantage to doing this is probably most apparent on non-pci bus architectures where currently you have to construct a fakepci_devjust so you can get the bounce buffers to work correctly.
That does not sound like the right way to me. If you need to have the dma_mask for the Scsi_Host, you should store it in Scsi_Host itself. A struct device must never know about obscure architecture specific stuff like dma.
Arnd <><