From: kgene.kim@samsung•com (Kukjin Kim)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH 1/2] iommu/exynos: fix runtime pm support
Date: Sat, 12 May 2012 06:31:59 +0900 [thread overview]
Message-ID: <4FAD854F.7040403@samsung.com> (raw)
In-Reply-To: <1334154871-4756-2-git-send-email-m.szyprowski@samsung.com>
On 04/11/12 23:34, Marek Szyprowski wrote:
> Fix registration to runtime pw and add missing resume callback.
>
> Signed-off-by: Marek Szyprowski<m.szyprowski@samsung•com>
> Acked-by: Kyungmin Park<kyungmin.park@samsung•com>
> ---
> drivers/iommu/exynos-iommu.c | 20 ++++++++++++++++++--
> 1 files changed, 18 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
> index b8daf7c..eef924d 100644
> --- a/drivers/iommu/exynos-iommu.c
> +++ b/drivers/iommu/exynos-iommu.c
> @@ -651,8 +651,7 @@ static int exynos_sysmmu_probe(struct platform_device *pdev)
>
> __set_fault_handler(data,&default_fault_handler);
>
> - if (dev->parent)
> - pm_runtime_enable(dev);
> + pm_runtime_enable(dev);
>
> dev_dbg(dev, "(%s) Initialized\n", data->dbgname);
> return 0;
> @@ -674,11 +673,28 @@ err_alloc:
> return ret;
> }
>
> +static int exynos_pm_resume(struct device *dev)
> +{
> + struct sysmmu_drvdata *data;
> +
> + data = dev_get_drvdata(dev);
> +
> + if (is_sysmmu_active(data))
> + __exynos_sysmmu_enable(data, data->pgtable, NULL);
> +
> + return 0;
> +}
> +
> +const struct dev_pm_ops exynos_pm_ops = {
> + .resume =&exynos_pm_resume,
> +};
> +
> static struct platform_driver exynos_sysmmu_driver = {
> .probe = exynos_sysmmu_probe,
> .driver = {
> .owner = THIS_MODULE,
> .name = "exynos-sysmmu",
> + .pm =&exynos_pm_ops,
> }
> };
>
Joerg,
This patch is needed to correct run-time pm for EXYNOS SoCs with System
MMU after KyongHo's iommu/exynos patch. So if you're ok on this, let me
apply this in samsung tree.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung•com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
next prev parent reply other threads:[~2012-05-11 21:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-11 14:34 [PATCH 0/2] Exynos: fix SYSMMU driver to work with power domains Marek Szyprowski
2012-04-11 14:34 ` [PATCH 1/2] iommu/exynos: fix runtime pm support Marek Szyprowski
2012-04-11 15:18 ` Sergei Shtylyov
2012-05-11 21:31 ` Kukjin Kim [this message]
2012-04-11 14:34 ` [PATCH 2/2] ARM: Exynos4: update SYSMMU setup code for gen_pd power domain driver Marek Szyprowski
2012-04-16 10:09 ` KyongHo Cho
2012-04-16 10:28 ` Marek Szyprowski
2012-04-12 8:19 ` [PATCH 0/2] Exynos: fix SYSMMU driver to work with power domains KyongHo Cho
2012-04-14 15:51 ` Kukjin Kim
2012-04-16 9:54 ` KyongHo Cho
2012-04-16 10:01 ` Kyungmin Park
2012-04-16 10:13 ` KyongHo Cho
2012-04-16 13:35 ` Subash Patel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FAD854F.7040403@samsung.com \
--to=kgene.kim@samsung$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox