Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933387AbcKKPWy (ORCPT ); Fri, 11 Nov 2016 10:22:54 -0500 Received: from 8bytes.org ([81.169.241.247]:40197 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756576AbcKKPWw (ORCPT ); Fri, 11 Nov 2016 10:22:52 -0500 Date: Fri, 11 Nov 2016 16:22:48 +0100 From: Joerg Roedel To: Lorenzo Pieralisi Cc: iommu@lists.linux-foundation.org, Will Deacon , Hanjun Guo , Robin Murphy , Marc Zyngier , "Rafael J. Wysocki" , Tomasz Nowicki , Jon Masters , Eric Auger , Sinan Kaya , Nate Watterson , Prem Mallappa , Dennis Chen , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v7 04/16] drivers: iommu: make of_iommu_set/get_ops() DT agnostic Message-ID: <20161111152248.GS2078@8bytes.org> References: <20161109141948.19244-1-lorenzo.pieralisi@arm.com> <20161109141948.19244-5-lorenzo.pieralisi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161109141948.19244-5-lorenzo.pieralisi@arm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 449 Lines: 14 On Wed, Nov 09, 2016 at 02:19:36PM +0000, Lorenzo Pieralisi wrote: > +struct iommu_fwentry { > + struct list_head list; > + struct fwnode_handle *fwnode; > + const struct iommu_ops *ops; > +}; Is there a reason the iommu_ops need to be stored there? Currently it seems that the ops are only needed to get the of_xlate fn-ptr later. And the place where it is called the iommu-ops should also be available through pdev->dev->bus->iommu_ops. Joerg