Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp756068imu; Tue, 11 Dec 2018 07:07:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xe++pz1IvPmMwYqxPAiLFL7Ifx1lyoW1AVg4/VRaYG+StblwcH1PViYYejsm7FFhxD38o4 X-Received: by 2002:a63:bc02:: with SMTP id q2mr15023391pge.116.1544540861192; Tue, 11 Dec 2018 07:07:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544540861; cv=none; d=google.com; s=arc-20160816; b=tnEetMRFaKUAssAEv77Ky6tvAUCPIS/cfP7zKOpEygv72EXkUGALzjVVYxXQ6XGyG2 SIXY9rqj/WQf3dOxlY3gGBJPaxfSK4m8pjyxawSbAyt5O3sRD+Pn5MTFZKlWZbvwWicW TSXCa2UVA9pYBwm9kmGpWfawlYh/mgSVIi/MPsMq9fQDBK4rDyc+aONHDAvOwvzCpa/4 H6xAG/AoHX7hyBiPgFmppGNge76LupD2z3XLxV/xTqcKHkUseuoFD2coQeWVJfCCcKPX GTH/zjFQadJeccxiZtlnzoCjxichu7w1kTkRQg3PWNhqLvejjRUhkcuqnxnuyU+Ia0iC f9dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=qLftyTG4v3X887XnOZTaknFVhxwJwyvLER1MaSyB0kA=; b=vbl1lKcbX62n5fW5hXR355SZT+ML6h+PGAlkvZVuTKPzx0mhJTAgDkBpAloUpMDu0y A3Gi9dtmjSc33KxfKr+JGaiZixOhy7HqUpXOfA+bIzdXRSyeM5DfUpJKrt0qyazEVvRn dMVc3fh8/xpw1spz7gKc28uzI5DyGdoLPmvISYpQY8Mn8i/z9dfl4ygjQ5nhOya+7yIP GWf2jo6JbQt8g3kjJd4fOiAf5lTeAqi7q6kZyesNakXoceKz/b+7izK7TifhY1vChTHn 38qBZtyjfO4ns1w7ZRoiWMnteZIDH8RHLGP8J/ClBhIVIrnNISE9kUZKBLzYydBbgwFm eQGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si12669331pge.48.2018.12.11.07.07.26; Tue, 11 Dec 2018 07:07:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726672AbeLKPFR (ORCPT + 99 others); Tue, 11 Dec 2018 10:05:17 -0500 Received: from 8bytes.org ([81.169.241.247]:53498 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726212AbeLKPFR (ORCPT ); Tue, 11 Dec 2018 10:05:17 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id 42BF83AA; Tue, 11 Dec 2018 16:05:15 +0100 (CET) From: Joerg Roedel To: iommu@lists.linux-foundation.org Cc: Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Joerg Roedel , jroedel@suse.de, Robin Murphy , linux-kernel@vger.kernel.org Subject: [PATCH 0/4 v2] Consolidate iommu_ops->add/remove_device() calls Date: Tue, 11 Dec 2018 16:05:09 +0100 Message-Id: <20181211150513.15161-1-joro@8bytes.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, here is the second version of the patch-set to wrap the invocation of iommu_ops->add/remove_device() into functions. The functions will do more setup stuff later when the the iommu-related pointers in 'struct device' are consolidated. Since version one this patch-set was rebased to v4.20-rc6 and I removed the pointer checks for the function pointers, as suggested by Robin. I checked all 16 drivers and all of them implement the add/remove_device call-backs. Please review, if there are no objections I plan to queue these patches in the IOMMU tree. Thanks, Joerg Joerg Roedel (4): iommu/sysfs: Rename iommu_release_device() iommu: Consolitate ->add/remove_device() calls iommu/of: Don't call iommu_ops->add_device directly ACPI/IORT: Don't call iommu_ops->add_device directly drivers/acpi/arm64/iort.c | 4 +-- drivers/iommu/iommu-sysfs.c | 12 ++++----- drivers/iommu/iommu.c | 51 ++++++++++++++++++------------------- drivers/iommu/of_iommu.c | 6 ++--- include/linux/iommu.h | 3 +++ 5 files changed, 39 insertions(+), 37 deletions(-) -- 2.17.1