Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752418AbdIARFv (ORCPT ); Fri, 1 Sep 2017 13:05:51 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:56434 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752325AbdIARFt (ORCPT ); Fri, 1 Sep 2017 13:05:49 -0400 Subject: Re: [PATCH 2/2] iommu/omap: Add support to program multiple iommus To: Joerg Roedel CC: , Tony Lindgren , Tero Kristo , Laurent Pinchart , , References: <20170831131402.29502-1-s-anna@ti.com> <20170831131402.29502-3-s-anna@ti.com> <20170901100141.2ooccy7ns2fwxceg@8bytes.org> <20170901163312.GM19533@8bytes.org> From: Suman Anna Message-ID: <2c8dd7ee-e645-420e-054c-8bdd16bb5338@ti.com> Date: Fri, 1 Sep 2017 12:05:37 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170901163312.GM19533@8bytes.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [128.247.58.153] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 879 Lines: 19 On 09/01/2017 11:33 AM, Joerg Roedel wrote: > Hi Suman, > On Fri, Sep 01, 2017 at 11:21:45AM -0500, Suman Anna wrote: >> It's primarily a question of whether each iommu platform device need to >> be represented as a unique iommu_device or not. If you still think that >> both these need to be presented to iommu core as one device, I would >> have to add some glue logic in probe to tie the two devices together. > > I think that you should only call iommu_device_register and friends for > the mmu-device you link the other devices against in .add_device. > Otherwise people will see two mmus in sysfs, one of them with no devices > behind it. That is inconsistent with the rest of the patch-set, which > basically handles bots mmus as one. But changing that should be easy, I > think. Thanks for the feedback and suggestions, let me look at adding that logic. regards Suman