From patchwork Mon Mar 9 18:22:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 11427689 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7D6B814E3 for ; Mon, 9 Mar 2020 18:23:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5D5B6208C3 for ; Mon, 9 Mar 2020 18:23:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="rUVDDRXF" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727446AbgCISX0 (ORCPT ); Mon, 9 Mar 2020 14:23:26 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:27735 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727263AbgCISX0 (ORCPT ); Mon, 9 Mar 2020 14:23:26 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1583778205; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=5pJKzeW4cHTF7+UFcjOH7U5y2zK8JxKCVKx6r3Uqg0I=; b=rUVDDRXFTiPYV6Ty2BLuVB0UYUL+PtBB+JIGspYtQv0jrTqeGfqjba7BpzaKd22fVeidVLTf tF2Q746yRT0p0bfp/c5gWxXtz/VVYTjnbY2jSNmStx1QoSRbYMjk3Ls9tpPHYyN/XTsUUvUs ski+8p+EotDqXRbEhMdLDKhV28s= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI1MzIzYiIsICJsaW51eC1hcm0tbXNtQHZnZXIua2VybmVsLm9yZyIsICJiZTllNGEiXQ== Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e66899d.7f98a0d85b58-smtp-out-n03; Mon, 09 Mar 2020 18:23:25 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5DC64C44791; Mon, 9 Mar 2020 18:23:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from blr-ubuntu-87.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis) by smtp.codeaurora.org (Postfix) with ESMTPSA id 85160C43636; Mon, 9 Mar 2020 18:23:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 85160C43636 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: bjorn.andersson@linaro.org, robh+dt@kernel.org, joro@8bytes.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, iommu@lists.linux-foundation.org, linux-remoteproc@vger.kernel.org, ohad@wizery.com, agross@kernel.org, Sibi Sankar Subject: [PATCH 1/3] iommu: Export "iommu_request_dm_for_dev" Date: Mon, 9 Mar 2020 23:52:53 +0530 Message-Id: <20200309182255.20142-2-sibis@codeaurora.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200309182255.20142-1-sibis@codeaurora.org> References: <20200309182255.20142-1-sibis@codeaurora.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Export "iommu_request_dm_for_dev" to allow for modular builds of drivers requesting for direct mapping. Signed-off-by: Sibi Sankar --- drivers/iommu/iommu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 3e3528436e0b2..06a36230fe22d 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -2353,6 +2353,7 @@ int iommu_request_dm_for_dev(struct device *dev) { return request_default_domain_for_dev(dev, IOMMU_DOMAIN_IDENTITY); } +EXPORT_SYMBOL_GPL(iommu_request_dm_for_dev); /* Request that a device can't be direct mapped by the IOMMU */ int iommu_request_dma_domain_for_dev(struct device *dev)