RE: [PATCH v4 08/11] tty: add pruss SUART driver
From: Nori, Sekhar
Date: Wed Apr 27 2011 - 07:19:51 EST
On Wed, Apr 27, 2011 at 10:53:38, Subhasish Ghosh wrote:
> >> There should be no build time dependency with this patch
> >> (the above patch just changes which pool of SRAM the
> >> allocation happens from)
> >>
> >> But, this brings out an important dependency of the patch
> >> calling platform specific sram allocator functions. There
> >> has been SRAM allocator consolidation work done by Russell
> >> and as a result the SRAM allocator API for DaVinci will
> >> actually change.
>
> I earlier had an implementation where I would get the sram memory addresses
> through the .resource structure and ioremap it in the driver.
This is wrong since it assumes the whole SRAM is available
for usage by your driver. We already have an allocator
for SRAM.
>
> >>The driver should probably just get sram
> >> space through platform data so that it doesn't depend on the
> >> platform specific sram allocation function.
>
> Are you suggesting that I go back to that implementation.
No, the platform code should use the SRAM allocator and
pass on the allocated memory to the driver.
Thanks,
Sekhar
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/