On Mon, 2010-10-11 at 00:09 +0900, FUJITA Tomonori wrote:
I'm not sure I parse what you wrote above :-)
I did try with various methods back then, and what ended up sucking the
less was basically to hookup dma_set_mask() at the arch level.
In fact, it makes sense to the extent that the arch is the one that
knows that there are multiple regions configured potentially with
different capabilities.
You can still do the switch within the dma_ops->set_dma_mask if you want
I suppose, especially if you end up hitting different attribute regions
within a single bus or such but from my experience, it gets really hacky
with multiple ops structures etc...
Cheers,
Ben.
--