Skip to contentSkip to conversation

ioremap() twice on same memory mapped area?

DISCUSSION Parav Pandit 2 participants 2 messages Aug 19, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

I have memory mapped device and two device drivers wants to use the same area for different external device. To access the same space there is a global spin lock to avoid any race condition.

Question is:
Can both the driver call the ioremap() on the same space and get the different virtual address? or ioremap() should fail?

Regards,
Parav Pandit

---------------------------------
Get your email and more, right on the new Yahoo.com

#1 lore raw
Quoted 2 lines · Parav Pandit

Question is:
Can both the driver call the ioremap() on the same space and get the different virtual address?

Yes, and depending upon the implementation and optimizations, they may also get the same virtual address. It will work as you intend.

	-- Dan