From patchwork Thu Sep 6 15:55:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10590781 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8C3A414BD for ; Thu, 6 Sep 2018 15:56:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FCD12AE97 for ; Thu, 6 Sep 2018 15:56:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 742202AE9D; Thu, 6 Sep 2018 15:56:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E894D2ACF0 for ; Thu, 6 Sep 2018 15:55:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730417AbeIFUcH (ORCPT ); Thu, 6 Sep 2018 16:32:07 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:59514 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730351AbeIFUcG (ORCPT ); Thu, 6 Sep 2018 16:32:06 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180906155556euoutp02d5d055e2db83a57533cc046e4eaa557d~R2qaNi7Y33096130961euoutp02U; Thu, 6 Sep 2018 15:55:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180906155556euoutp02d5d055e2db83a57533cc046e4eaa557d~R2qaNi7Y33096130961euoutp02U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1536249356; bh=yaupVXVVsw6Wqh9BYWbDUq2g+8KCs2f3HHmXvQl463k=; h=From:To:Cc:Subject:Date:References:From; b=ER2lrIRO8J1iu3TuvcqCX13SpPVNH3LEuZJUbzSjwzd22VieoBhxJhxIbRDYRFzAY gZbRT+t7+sHOkiL9YOK4UiTQSKMdAKBrt3riKCqoRGwuwCB3L/3GWf/DKBz+M425NA gmOkW8sqeXXr1C70Q6u2JO3UrqMSlzuVKVHR8eTA= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180906155555eucas1p180776aca300cbb924ab3cdaaac0f524d~R2qZbnFT41238612386eucas1p18; Thu, 6 Sep 2018 15:55:55 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 08.85.04441.B0E419B5; Thu, 6 Sep 2018 16:55:55 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180906155555eucas1p2cab3dde337bf2f9f7a7d8b4dc17c371d~R2qYuRqBN0539305393eucas1p2O; Thu, 6 Sep 2018 15:55:55 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-0b-5b914e0b4733 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 96.CE.04284.A0E419B5; Thu, 6 Sep 2018 16:55:54 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PEN009IJ5L4PE10@eusync3.samsung.com>; Thu, 06 Sep 2018 16:55:54 +0100 (BST) From: Marek Szyprowski To: linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH v2 00/10] Cleanup suspend/resume code in Samsung clock drivers Date: Thu, 06 Sep 2018 17:55:22 +0200 Message-id: <20180906155532.4085-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCIsWRmVeSWpSXmKPExsWy7djP87rcfhOjDW4uVLPYOGM9q8X1L89Z Lc6f38Bu8bHnHqvFjPP7mCzWHrnLbtH+9CWzA7vHplWdbB59W1YxenzeJBfAHMVlk5Kak1mW WqRvl8CVcXfFCuaC3/wVy/snMDcwfuDpYuTkkBAwkdh3+A5LFyMXh5DACkaJqZ0/oJzPjBIT JjUxw1T9ePKNEcQWEljGKPHhsTlEUQOTxNW9XWAJNgFDia63XWwgtoiAg8TnT68ZQYqYBR4z Smw9+RVskrBAgMTfpd1MIDaLgKrEmdkXWUFsXgEbiT+XL7NBbJOXWL3hADNIs4TAXVaJjtkn GSESLhI9348zQdjCEq+Ob2GHsGUkOjsOMkE0NDNKtM+YxQ7h9ACtnrMDaqy1xOHjEOuYBfgk Jm2bDrSCAyjOK9HRJgRR4iHRvaKHBeLPWIltU88wTWCUWMDIsIpRPLW0ODc9tdgwL7Vcrzgx t7g0L10vOT93EyMwrk7/O/5pB+PXS0mHGAU4GJV4eB8YTYwWYk0sK67MPcQowcGsJMLrXj0h Wog3JbGyKrUoP76oNCe1+BCjNAeLkjgvn1ZatJBAemJJanZqakFqEUyWiYNTqoGxN37Tm6hX G0o+8/AcSRNMklXY+lD0Tb+SJs/th2e/XJuxsHhHhm9jTud2Q+t3PR4pUx8KuPdtvSC/ivHE mTuTvCq5sp04mLz8zyV/uNJ+ZHqqyabogtJFNpPV9rtrq9RznPiwJW2JUKNLnYnQ1I6PL1P2 WjnGTfSPWXtpd5JoWutWpj/3fa4osRRnJBpqMRcVJwIAjb3B26cCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGJMWRmVeSWpSXmKPExsVy+t/xq7pcfhOjDW5PNbPYOGM9q8X1L89Z Lc6f38Bu8bHnHqvFjPP7mCzWHrnLbtH+9CWzA7vHplWdbB59W1YxenzeJBfAHMVlk5Kak1mW WqRvl8CVcXfFCuaC3/wVy/snMDcwfuDpYuTkkBAwkfjx5BtjFyMXh5DAEkaJ111tzBBOE5PE zVkXmUGq2AQMJbredrGB2CICDhKfP70G62AWeMwocW7xBlaQhLCAn8SlOVdZQGwWAVWJM7Mv gsV5BWwk/ly+zAaxTl5i9YYDzBMYuRYwMqxiFEktLc5Nzy021CtOzC0uzUvXS87P3cQI9P22 Yz8372C8tDH4EKMAB6MSD6+F6cRoIdbEsuLK3EOMEhzMSiK87tUTooV4UxIrq1KL8uOLSnNS iw8xSnOwKInznjeojBISSE8sSc1OTS1ILYLJMnFwSjUw8lxQ+quyN2/aw53Rt1YseXPsu7DI 9Gq2N2VLt1f4fHpa/aFw6be3nk/yX2f1bVsmbvFUNal+n4ig7P7sGRkTp8qGOc//4uLA/CZS n2v172uHdKVYhYTFtFnWZcXKC1w/vMKi7+7OqLcB+w99ye8J5r2lH6qre+myweOt8Q2lJlYV kWENUozflFiKMxINtZiLihMBJSAbUfkBAAA= X-CMS-MailID: 20180906155555eucas1p2cab3dde337bf2f9f7a7d8b4dc17c371d X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180906155555eucas1p2cab3dde337bf2f9f7a7d8b4dc17c371d References: Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Dear All This patchset consolidates common suspend/resume code in almost all Samsung clock drivers. This cleanup is a side-effect of a preparation to add suspend/resume support for Exynos5433 SoCs. Best regards Marek Szyprowski Changelog: v2: - added ack/review tags - replaced samsung_clk_sleep_init2 function by samsung_clk_extended_sleep_init - fixes build break with CONFIG_PM_SLEEP disabled - extended some commit messages v1: https://www.spinics.net/lists/linux-samsung-soc/msg63944.html - initial version Patch summary: Marek Szyprowski (10): clk: samsung: Remove excessive include clk: samsung: s3c2410: Use generic helper for handling suspend/resume clk: samsung: s3c2412: Use generic helper for handling suspend/resume clk: samsung: s3c2443: Use generic helper for handling suspend/resume clk: samsung: s3c64xx: Use generic helper for handling suspend/resume clk: samsung: s5pv210: Use generic helper for handling suspend/resume clk: samsung: exynos5250: Use generic helper for handling suspend/resume clk: samsung: Add support for setting registers state before suspend clk: samsung: exynos4: Use generic helper for handling suspend/resume clk: samsung: exynos5420: Use generic helper for handling suspend/resume drivers/clk/samsung/clk-exynos-audss.c | 1 - drivers/clk/samsung/clk-exynos3250.c | 1 - drivers/clk/samsung/clk-exynos4.c | 145 +++---------------------- drivers/clk/samsung/clk-exynos5250.c | 42 +------ drivers/clk/samsung/clk-exynos5420.c | 72 +----------- drivers/clk/samsung/clk-s3c2410.c | 43 +------- drivers/clk/samsung/clk-s3c2412.c | 43 +------- drivers/clk/samsung/clk-s3c2443.c | 43 +------- drivers/clk/samsung/clk-s3c64xx.c | 66 +---------- drivers/clk/samsung/clk-s5pv210.c | 41 +------ drivers/clk/samsung/clk.c | 23 ++-- drivers/clk/samsung/clk.h | 18 ++- 12 files changed, 65 insertions(+), 473 deletions(-)