Message ID | 1410868485-4143-14-git-send-email-m.szyprowski@samsung.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDG6PF6SSYDRBKOK4CQAKGQEYSE4KBA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 26C732057E for <linaro@patches.linaro.org>; Tue, 16 Sep 2014 11:55:25 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id t10sf3165305eei.8 for <linaro@patches.linaro.org>; Tue, 16 Sep 2014 04:55:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=hNdVAkU+u/uvUWbbHSFgialZ4l9zZDM8lcW/RFrb+eQ=; b=Gzt/eHJvjwLpHn3FDnTbmDRWhhp3Y4kS5yw0Nj772Pp2iqre5qJlIf3VNiup1VXYW/ REs3skOGebQO9JURfQSJzBS1t0HqKpNLGAWvWvKuqphIG8t/iDMz8sCAKdiC14j2fCYw 4ddhZA5YSW7TAq984Nc3fM1uh20a/DC0Qth6u3a5aXLDZ77VNTKkNtGF7WahG6PJwyKG NMYFKG4AVGz8s5AD+SCxKjRPPenETgnjC00+PSzeymlkPKkAw30/YkPhq+42w2oxLfCK hLK1xzRhYLV2ip67v3icQnlEkbyv7wBRuxObaWjAYdxr5ugh3eX3x6VEIbj3ZovjUthk ZG+A== X-Gm-Message-State: ALoCoQlRmVR1x7Hs+H86Mh6+Y8FmZTAx12hyFA54e+DnMQ5YUBtHo1fWlOtQjdvCE1k+EcKBQriO X-Received: by 10.152.2.97 with SMTP id 1mr452359lat.6.1410868521317; Tue, 16 Sep 2014 04:55:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.76 with SMTP id le12ls355580lac.34.gmail; Tue, 16 Sep 2014 04:55:21 -0700 (PDT) X-Received: by 10.152.42.136 with SMTP id o8mr16327939lal.71.1410868521217; Tue, 16 Sep 2014 04:55:21 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by mx.google.com with ESMTPS id z3si23841906lbk.51.2014.09.16.04.55.20 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 16 Sep 2014 04:55:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id z11so6493385lbi.35 for <patchwork-forward@linaro.org>; Tue, 16 Sep 2014 04:55:20 -0700 (PDT) X-Received: by 10.112.62.200 with SMTP id a8mr33665123lbs.34.1410868519485; Tue, 16 Sep 2014 04:55:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp374297lbb; Tue, 16 Sep 2014 04:55:18 -0700 (PDT) X-Received: by 10.68.215.67 with SMTP id og3mr49670660pbc.30.1410868518044; Tue, 16 Sep 2014 04:55:18 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zp8si29178866pac.130.2014.09.16.04.55.16 for <multiple recipients>; Tue, 16 Sep 2014 04:55:17 -0700 (PDT) Received-SPF: none (google.com: linux-samsung-soc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753854AbaIPLzK (ORCPT <rfc822;tyler.baker@linaro.org> + 6 others); Tue, 16 Sep 2014 07:55:10 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:26243 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754325AbaIPLzF (ORCPT <rfc822;linux-samsung-soc@vger.kernel.org>); Tue, 16 Sep 2014 07:55:05 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NBZ001OST8MWX80@mailout1.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 16 Sep 2014 12:57:58 +0100 (BST) X-AuditID: cbfec7f5-b7f776d000003e54-06-54182517ed13 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id E7.9C.15956.71528145; Tue, 16 Sep 2014 12:55:03 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NBZ00CMIT3CL960@eusync2.samsung.com>; Tue, 16 Sep 2014 12:55:03 +0100 (BST) From: Marek Szyprowski <m.szyprowski@samsung.com> To: iommu@lists.linux-foundation.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Marek Szyprowski <m.szyprowski@samsung.com>, linaro-mm-sig@lists.linaro.org, Arnd Bergmann <arnd@arndb.de>, Shaik Ameer Basha <shaik.ameer@samsung.com>, Cho KyongHo <pullip.cho@samsung.com>, Joerg Roedel <joro@8bytes.org>, Thierry Reding <treding@nvidia.com>, Olof Johansson <olof@lixom.net>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Rob Herring <robh@kernel.org>, Will Deacon <will.deacon@arm.com>, David Wodhouse <dwmw2@infradead.org>, Inki Dae <inki.dae@samsung.com>, Kukjin Kim <kgene.kim@samsung.com>, Tomasz Figa <tomasz.figa@gmail.com>, Kyungmin Park <kyungmin.park@samsung.com> Subject: [PATCH v2 13/18] iommu: exynos: add support for runtime_pm Date: Tue, 16 Sep 2014 13:54:40 +0200 Message-id: <1410868485-4143-14-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1410868485-4143-1-git-send-email-m.szyprowski@samsung.com> References: <1410868485-4143-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRmVeSWpSXmKPExsVy+t/xK7riqhIhBhsuK1r8nXSM3WLiysnM FpPuT2CxWLDf2qJz9gZ2i94FV9kszja9YbfonLiE3eLLlYdMFpseX2O1mHF+H5PF2iN32S1O Xf/MZvGv9yCjxf89O9gtjjzczW6xatcfRovbv/ksXn48weIg7PHk4DwmjzXz1jB6/P41idFj 56y77B6zO2ayemxeoeWxaVUnm8fmJfUet/89ZvaYfGM5o8eVE02sHr3N79g8+rasYvT4vEku gC+KyyYlNSezLLVI3y6BK2N26xzGgk/sFWset7A3MB5g62Lk4JAQMJF40OnbxcgJZIpJXLi3 HijMxSEksJRRYu6Dj1BOH5PE5snX2UGq2AQMJbredrGB2CIC+RIv9v5lAbGZBd6wSNzbZAhi Cws4S6w4dpYJxGYRUJXo6bvOCGLzCnhIbJt3hR1im5zE/5crwGo4geKT254wg9hCAu4SH7+d YprAyLuAkWEVo2hqaXJBcVJ6rpFecWJucWleul5yfu4mRkh8fN3BuPSY1SFGAQ5GJR7ejH/i IUKsiWXFlbmHGCU4mJVEeDUUJUKEeFMSK6tSi/Lji0pzUosPMTJxcEo1MIZf8hL5olWll2ux R3tODsuk3Vy9M1lNvmwoKX/7R23J9MleS4y1mYQXdX8sWPx42Y2GoEvtr+ynKWtonFA8k57+ RWqdnqPS/MUKPh9PJ+7deFyId9n063Mm3uha+6/C7d+JO7wNHKUHLfU/bqpQr16wZuMxz03+ q5f/3ZRlIX+t6EvVzU2zth9VYinOSDTUYi4qTgQAw9yIRG0CAAA= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m.szyprowski@samsung.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index cf36cdecf335..5a6d3d0af61e 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -696,6 +696,7 @@ static int exynos_iommu_attach_device(struct iommu_domain *domain, return -ENODEV; list_for_each_entry(data, &owner->clients, owner_node) { + pm_runtime_get_sync(data->sysmmu); ret = __sysmmu_enable(data, pagetable, domain); if (ret >= 0) { data->master = dev; @@ -737,6 +738,7 @@ static void exynos_iommu_detach_device(struct iommu_domain *domain, data->master = NULL; list_del_init(&data->domain_node); } + pm_runtime_put(data->sysmmu); found = true; } }
This patch fixes support for runtime power management for SYSMMU controllers, so they are enabled when master device is attached. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> --- drivers/iommu/exynos-iommu.c | 2 ++ 1 file changed, 2 insertions(+)