From patchwork Thu Jan 26 08:33:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92489 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp79295qgi; Thu, 26 Jan 2017 00:34:14 -0800 (PST) X-Received: by 10.84.191.129 with SMTP id a1mr2470092pld.62.1485419654342; Thu, 26 Jan 2017 00:34:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h82si765007pfj.218.2017.01.26.00.34.14; Thu, 26 Jan 2017 00:34:14 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752985AbdAZIeK (ORCPT + 4 others); Thu, 26 Jan 2017 03:34:10 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:43161 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752893AbdAZIeG (ORCPT ); Thu, 26 Jan 2017 03:34:06 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKD006FLP4QVH50@mailout4.w1.samsung.com>; Thu, 26 Jan 2017 08:34:02 +0000 (GMT) Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170126083402eucas1p2172a80ad010df10b50fb3d36d3c5bbb2~dRUthld793153831538eucas1p2p; Thu, 26 Jan 2017 08:34:02 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges5.samsung.com (EUCPMTA) with SMTP id 89.BC.17477.974B9885; Thu, 26 Jan 2017 08:34:01 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170126083401eucas1p24b0f04c62332e0b6e446ecca83145bc5~dRUs5cE_q3025830258eucas1p2P; Thu, 26 Jan 2017 08:34:01 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d000004445-e0-5889b479ba33 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 91.53.10233.674B9885; Thu, 26 Jan 2017 08:33:58 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKD000KKP4KMO50@eusync1.samsung.com>; Thu, 26 Jan 2017 08:34:01 +0000 (GMT) From: Marek Szyprowski To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Lee Jones , Bartlomiej Zolnierkiewicz Subject: [PATCH v2 1/8] soc: samsung: pmu: Add dummy support for Exynos5433 SoC Date: Thu, 26 Jan 2017 09:33:47 +0100 Message-id: <1485419634-28331-2-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485419634-28331-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBIsWRmVeSWpSXmKPExsWy7djPc7qVWzojDHasN7fYOGM9q8X8I+dY Lc6f38Bucf/rUUaLKX+WM1lsenyN1WLz/D+MFpd3zWGzmHF+H5PF2iN32S0Ov2lntVi16w+j A4/Hzll32T02repk87hzbQ+bx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OsELaYxIV769m6GLk4hASWMEr0bn/KBOE0MUn07lzCBFLFJmAo0fW2 C6xKRGApo8T/lZ/ZQRxmgS1MEl2bLrKDVAkL+EtMffserINFQFVi5vVZYHFeAQ+Jw3d/sEHs k5M4eWwy2G5OAU+J009fgdUIAdVsuriQfQIj7wJGhlWMIqmlxbnpucVGesWJucWleel6yfm5 mxiBsbDt2M8tOxi73gUfYhTgYFTi4c3Y1hEhxJpYVlyZe4hRgoNZSYT3/OrOCCHelMTKqtSi /Pii0pzU4kOMpkBHTWSWEk3OB8ZpXkm8oYmhuaWhkbGFhbmRkZI479QPV8KFBNITS1KzU1ML Uotg+pg4OKUaGI/sn/1fq74yfcffcP6vdpnFS6NCL97cNzWz+6nspktTNI+0McUwXLrrqHH+ CcfpeYmL5mVuf710Vcr01coCe72C76q5zUlhDNRaKdNySdP++MG981ZejHGOuV2Ykv5grqBV yNTubT39t+09dr8TlTDhvMrL3vLTXuBQdAdLl8av1G61aUeKmJVYijMSDbWYi4oTAW8ClQ6b AgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170126083401eucas1p24b0f04c62332e0b6e446ecca83145bc5 X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170126083401eucas1p24b0f04c62332e0b6e446ecca83145bc5 X-RootMTR: 20170126083401eucas1p24b0f04c62332e0b6e446ecca83145bc5 References: <1485419634-28331-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add compatible for Exynos5433 SoC, so the driver will bind and let other drivers to use PMU regmap. Signed-off-by: Marek Szyprowski --- drivers/soc/samsung/exynos-pmu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c index 813df6e7292d..56d9244ff981 100644 --- a/drivers/soc/samsung/exynos-pmu.c +++ b/drivers/soc/samsung/exynos-pmu.c @@ -44,7 +44,7 @@ void exynos_sys_powerdown_conf(enum sys_powerdown mode) unsigned int i; const struct exynos_pmu_data *pmu_data; - if (!pmu_context) + if (!pmu_context || !pmu_context->pmu_data) return; pmu_data = pmu_context->pmu_data; @@ -90,6 +90,8 @@ void exynos_sys_powerdown_conf(enum sys_powerdown mode) }, { .compatible = "samsung,exynos5420-pmu", .data = &exynos5420_pmu_data, + }, { + .compatible = "samsung,exynos5433-pmu", }, { /*sentinel*/ }, }; @@ -122,7 +124,7 @@ static int exynos_pmu_probe(struct platform_device *pdev) pmu_context->dev = dev; pmu_context->pmu_data = of_device_get_match_data(dev); - if (pmu_context->pmu_data->pmu_init) + if (pmu_context->pmu_data && pmu_context->pmu_data->pmu_init) pmu_context->pmu_data->pmu_init(); platform_set_drvdata(pdev, pmu_context);