ARM: OMAP: hwmod/omapd_device: Fix for resource handling in DT boot
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest0 of 2 patches 0 repliesNew
Patches in v2 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
| Patch | Sebastien Guiriec |
|---|---|
| Series | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] ARM: OMAP: hwmod/omapd_device: Fix for resource handling in DT boot
Hi Peter,
Quoted 7 lines · Peter Ujfalusi
Hello,
Changes since v1:
- If the device does not have DMA resource do not try to recreate the resourcesIntro mail from v1:
Quoted 7 lines
This series resolves the issue we currently have with the resource handling when booting with DT.
In short: at the moment theomap_device_alloc()decides if it needs to update the OF filled resources based on the number of resources on the device and in the hwmod database.
This prevents us from removing hwmod data for platforms (OMAP5) which does not support non DT boot anymore.
At list removing 160 lines for out of tree data for OMAP5 audio part. So going in the good direction. But should much more after cleaning up all IP. Now we need to add DMA binding to remove the data.
Quoted 17 lines
With this series we can make sure that the DT provided resources are used and we only append the DMA resources to the device from hwmod.
I have added extra check to prepare us when the DMA resource can be filled via OF. In this case we do not update the resources at all.Tony, Benoit, Paul: Not sure if this qualify for 3.7 inclusion, but for sure going to help us to clean up the OMAP5 hwmod database.
Regards,
Peter
---
Peter Ujfalusi (2):
ARM: OMAP: hwmod: Add possibility to count hwmod resources based on
type
ARM: OMAP:omap_device: Correct resource handling for DT boot
Quoted 5 lines
arch/arm/mach-omap2/omap_hwmod.c | 27 +++++---- arch/arm/plat-omap/include/plat/omap_hwmod.h | 2 +- arch/arm/plat-omap/omap_device.c | 87 ++++++++++++++++++---------- 3 files changed, 72 insertions(+), 44 deletions(-)