From patchwork Mon Aug 12 10:32:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 171056 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2649090ily; Mon, 12 Aug 2019 03:33:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHEFqfbIZpft/nOn+DeBN4LClgIWSLBJa7Cd3YczyFR6g6aVL0iUIaMHD4XTyThSGFImF1 X-Received: by 2002:aa7:984a:: with SMTP id n10mr6855805pfq.3.1565605980593; Mon, 12 Aug 2019 03:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565605980; cv=none; d=google.com; s=arc-20160816; b=Lf76EPwSJZDzsAGo35oiFBKlxqOhICuWk59NLxVOqwzfAWS11JgQLDG8+HuiGF1O10 eFHSTfloNr/GQXa+yp0Vk8uAzm6f2PAM62zluOPitp0a/V/tLMvEu80MiB3zKwRlxrf5 SGYH+rGgkuktggF8U/FGVIMDJnDIOP8NVY7vQ4n1ZkDtNHH440AAeS3313SgAKtqOEyx fz/c6TwRwV6farM8E+w2QFHY41djWSI27rS0MLI3ia8Nu5zPg+Lc76ddaM+wL2DqPtS7 mn8Vs2avbAeTtobEh6puWmseFY3odK+tQ4kWpbGUZlNYma0uI0BW1qF3fpnG3at/NXyu fMIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=WfCPF6suYg6AJTiRWu79YNFggXctmiOm+yE/cpdp1iw=; b=QMTQQ59YVwKbV2e5tGB9o1GdRC7MgWjX91fXyalL6KZmp2EBr3ilC1OEviiEwkwVhD XF60xZU0P+ltucWmrExqohCkgN4JQq1+Dsu7/f9OZf4ZVIaYyoGRUQ8vDwEfDDohsmAz gQqNE9uCO5BT8f0V+cQmVoCn2giFQx0OZqSwK9Coi6oJ0wIrnD67DKRfZD6awWaTaxZ8 HwQlm1ffVcu56K1hRH7Z9kHZnY/EKj6E0k1t5Q1TUQ60wDUUnJZjQWmNa3XMMaJNlm4Z D7XMzE5SgkBtPHSCDhH5aG96tSd6AuUME5isssBTFR+8DPlCuzJqPY2NWVTHyborI0vg Ae4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=D1kohbEC; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4si14669945plb.10.2019.08.12.03.33.00; Mon, 12 Aug 2019 03:33:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=D1kohbEC; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727920AbfHLKc7 (ORCPT + 3 others); Mon, 12 Aug 2019 06:32:59 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:52791 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727708AbfHLKc7 (ORCPT ); Mon, 12 Aug 2019 06:32:59 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190812103257euoutp016572426432b8c31919d8cce18b2663bd~6JldrIIj02506025060euoutp01V for ; Mon, 12 Aug 2019 10:32:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190812103257euoutp016572426432b8c31919d8cce18b2663bd~6JldrIIj02506025060euoutp01V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1565605977; bh=WfCPF6suYg6AJTiRWu79YNFggXctmiOm+yE/cpdp1iw=; h=From:To:Cc:Subject:Date:References:From; b=D1kohbECpzpp043xPvtllytinl+A4ZeuyYEZKkB4sngb2jTgyAAQwKt3JEm6SOt/5 E/pwPTj8p1G2OmagCe4Xm2nsRu4tXseQguV14BrNeI63qX7vBSMM/uyRNfw0IoIOxD ZuHfqd1ga/JC4rsTol8VbwVRSdfgPSiGisnSRNm8= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190812103256eucas1p1d28d5df455544b8a2ab74fe4aa3d392e~6Jlc7_4fg1158911589eucas1p1Y; Mon, 12 Aug 2019 10:32:56 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 5F.5B.04374.850415D5; Mon, 12 Aug 2019 11:32:56 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190812103255eucas1p1cdab368b5fb06e4e3df62dfdc679f3af~6JlcGzjNu2368323683eucas1p1n; Mon, 12 Aug 2019 10:32:55 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190812103255eusmtrp2c8916dc1dcf329bab7bfee4905826cd4~6Jlb4wKW10192801928eusmtrp2d; Mon, 12 Aug 2019 10:32:55 +0000 (GMT) X-AuditID: cbfec7f5-4ddff70000001116-d9-5d51405816d1 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 46.3B.04117.750415D5; Mon, 12 Aug 2019 11:32:55 +0100 (BST) Received: from AMDC2765.DIGITAL.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190812103254eusmtip27324eb6aff714fc01f6f5beab6418dbc~6Jlbdw6ma1210512105eusmtip2e; Mon, 12 Aug 2019 10:32:54 +0000 (GMT) From: Marek Szyprowski To: iommu@lists.linux-foundation.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Joerg Roedel , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH] iommu: exynos: Remove __init annotation from exynos_sysmmu_probe() Date: Mon, 12 Aug 2019 12:32:46 +0200 Message-Id: <20190812103246.18049-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFIsWRmVeSWpSXmKPExsWy7djP87oRDoGxBie/81lsnLGe1WLBfmuL ztkb2C3OnwcSM87vY7JYe+QuuwObx5OD85g8Nq3qZPOYfGM5o0ffllWMHp83yQWwRnHZpKTm ZJalFunbJXBlbL53jqXgDXvFxq6rjA2MV9i6GDk5JARMJBrWN7KA2EICKxgl3i3k72LkArK/ MEosODqHFcL5zCjx5O1XFpiOvZN6oRLLGSXeNx9lgWt5/PUAI0gVm4ChRNfbLrAdIgLuEtf/ PAcrYhbYwChxfE8TM0hCWCBU4v/j+2BFLAKqEpNXXgWL8wrYSnzoXcAKsU5eYvWGA8wgzRIC J9gk5r78BXWHi8Tt1w/YIWxhiVfHt0DZMhL/d85ngmhoZpR4eG4tO4TTwyhxuWkGI0SVtcTh 4xeBVnAA3aQpsX6XPkTYUWL63dksIGEJAT6JG28FQcLMQOakbdOZIcK8Eh1tQhDVahKzjq+D W3vwwiVmCNtDYsqrY4yQQI2VOPV5DtMERrlZCLsWMDKuYhRPLS3OTU8tNs5LLdcrTswtLs1L 10vOz93ECEwBp/8d/7qD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ngeVWIozEg21mIuKEwGyxqFTUwIAAA== X-CMS-MailID: 20190812103255eucas1p1cdab368b5fb06e4e3df62dfdc679f3af X-Msg-Generator: CA X-RootMTR: 20190812103255eucas1p1cdab368b5fb06e4e3df62dfdc679f3af X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190812103255eucas1p1cdab368b5fb06e4e3df62dfdc679f3af References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Exynos SYSMMU driver supports deferred probe. It happens when clocks needed for this driver are not yet available. Typically next calls to driver ->probe() happen before init section is free, but this is not really guaranteed. To make if safe, remove __init annotation from exynos_sysmmu_probe() function. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index b0c1e5f9daae..a48236c1d5cb 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -566,7 +566,7 @@ static void sysmmu_tlb_invalidate_entry(struct sysmmu_drvdata *data, static const struct iommu_ops exynos_iommu_ops; -static int __init exynos_sysmmu_probe(struct platform_device *pdev) +static int exynos_sysmmu_probe(struct platform_device *pdev) { int irq, ret; struct device *dev = &pdev->dev;