Re: [PATCH v8 11/14] iommu/rockchip: Use OF_IOMMU to attach devices automatically

JeffyChen
2018-03-26T07:57:36Z

Hi Daniel,

Thanks for your reply.

On 03/26/2018 02:31 PM, Daniel Kurtz wrote:
>> >+struct rk_iommudata {
>> >+ struct rk_iommu *iommu;
>> >+};
> Why do we need this struct? Can't we just assign a pointer to struct
> rk_iommu directly to dev->archdata.iommu?
>
hmmm, i was trying to add more device related data in patch[13]:

struct rk_iommudata {
+ struct device_link *link; /* runtime PM link from IOMMU to master */
struct rk_iommu *iommu;
};
>