[RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency
Santosh Shilimkar
santosh.shilimkar at ti.com
Fri Feb 15 08:26:47 EST 2013
Russell,
On Friday 15 February 2013 03:46 PM, Russell King - ARM Linux wrote:
> On Thu, Feb 14, 2013 at 08:47:53PM +0000, Paul Walmsley wrote:
[..]
>
>> So instead of something bus-specific like that, a better way would be to
>> use something like:
>>
>> va = dev->bus->ioremap( ... );
>> va = dev->bus->iounmap( ... );
>
> No. ioremap() is already generic. We don't need additional layers of
> indirection per bus type.
>
Whats your view on use of arch_ioremap_caller() hook ? This can allow
us to avoid the dual ioremap() issue discussed here if the hook
maintains the list of mapped ios.
I was even thinking of having such intelligence within the core
ioremap code but thought that might be too invasive.
Regards,
Santosh
More information about the linux-arm-kernel
mailing list