Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp755448imu; Tue, 11 Dec 2018 07:07:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xojx4HfVDk+THmUTNg1t0D16Y148RsfHY3BrBhlrSdr3Esx3kzpHRb0Gm9GmtTbaUeRdNX X-Received: by 2002:a17:902:20b:: with SMTP id 11mr16464357plc.57.1544540832779; Tue, 11 Dec 2018 07:07:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544540832; cv=none; d=google.com; s=arc-20160816; b=f5ayra3A2Eb1ltbQNYDuYAdziv9MuIjxY88eR2XLlXvWBSLreoBuFza+oZ12HQuSLR UpTO8aqiilNGy1Z0P1x8XCu+aHt1lj4rjy5WD1SNPSMsy3sh8IrTLzEuMtnCGputzpIr 83MqVuSdtp82EyJdc1V3P7ufczcpSzxaNbW8wCcFCMh+cY+s39+CHdv14bVbCopOmVKX gnVabJWXxpuBKWFqa2LWvnL8MbjdGOmGqGkaMJ6TEigtvOLBI2R3BkHuzKcTH/35dKt0 j0XMz7D5OhCrvmztr2TcZBCl9i9YrUURZm4HF7U+Bn8vtDspd1gyJvbDn3Qzrd4PhcAb 0upQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=Eu/V9BCa800I73sPbfU2xvRlJaw+dbYLGHYNUryPEvY=; b=x0ORoLSB802ixSavMz/zAY6SgLbe+r7UqQYZLCp4EIS8oe9yx8XEUzhGkO+F82KGWB ArhJ7aTiTc0WnMLKXHsXZAd3pCUKFLCfO7+sWymmLqjAgCG+To004n8nhG+oqIkI1yrM z/xSlS1EpepcOU9Betw/NZucUMoJJ3IzK6XagBvDyyZhB8OGkzGHohvVUs/slvd4KNEV Zwmj1HEsGtnAScZHafowXZMMcHtjEzJp5rngIf2nLT2HtsMEuNRCrg7gxdaaExiBLcqb f16J81m6nttfwKM3phck3ZaEFajGd03Uaat9yNn/DB8OqGgCHpcCztkGdxDLFDEOqAoZ MX+Q== 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 d10si12714443pgf.136.2018.12.11.07.06.57; Tue, 11 Dec 2018 07:07:12 -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 S1726717AbeLKPFW (ORCPT + 99 others); Tue, 11 Dec 2018 10:05:22 -0500 Received: from 8bytes.org ([81.169.241.247]:53534 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726644AbeLKPFS (ORCPT ); Tue, 11 Dec 2018 10:05:18 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id A58A63C8; 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 3/4] iommu/of: Don't call iommu_ops->add_device directly Date: Tue, 11 Dec 2018 16:05:12 +0100 Message-Id: <20181211150513.15161-4-joro@8bytes.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181211150513.15161-1-joro@8bytes.org> References: <20181211150513.15161-1-joro@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel Make sure to invoke this call-back through the proper function of the IOMMU-API. Signed-off-by: Joerg Roedel --- drivers/iommu/of_iommu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c index c5dd63072529..4d4847de727e 100644 --- a/drivers/iommu/of_iommu.c +++ b/drivers/iommu/of_iommu.c @@ -218,10 +218,10 @@ const struct iommu_ops *of_iommu_configure(struct device *dev, ops = dev->iommu_fwspec->ops; /* * If we have reason to believe the IOMMU driver missed the initial - * add_device callback for dev, replay it to get things in order. + * probe for dev, replay it to get things in order. */ - if (ops && ops->add_device && dev->bus && !dev->iommu_group) - err = ops->add_device(dev); + if (dev->bus && !dev->iommu_group) + err = iommu_probe_device(dev); /* Ignore all other errors apart from EPROBE_DEFER */ if (err == -EPROBE_DEFER) { -- 2.17.1