Re: [RFC 2/5] ARM: OMAP: omap_device: add a method to set iommu private archdata

From: Kevin Hilman
Date: Mon Sep 26 2011 - 18:53:32 EST


Hi Ohad,

Ohad Ben-Cohen <ohad@xxxxxxxxxx> writes:

> Make it possible to set an iommu private archdata before a newly-created
> omap device is registered.
>
> Binding iommu client devices with their respective iommu data this way
> is needed so the generic IOMMU API can later be used without employing
> any omap-specific IOMMU plumbing.
>
> This patch just crudely adds an omap_device_build_ss_ext() method which
> accepts an iommu private data, but we may actually want to do something
> more generic here: e.g., split the omap_device_build API to alloc+add
> methods, so users can just manipulate the device as needed before it is
> registered (very much like we can do with plain devices).

Yes indeed.

Benoit did just this in preparation for DT.

http://marc.info/?l=linux-omap&m=131672480111927&w=2

Will that meet your needs?

Kevin
--
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/