From patchwork Fri Dec 22 10:28:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10129687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 25A356056E for ; Fri, 22 Dec 2017 10:29:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2045529C3C for ; Fri, 22 Dec 2017 10:29:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14C6D29E9D; Fri, 22 Dec 2017 10:29:42 +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=-5.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, TVD_SUBJ_WIPE_DEBT 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 45E4A29C3C for ; Fri, 22 Dec 2017 10:29:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752039AbdLVK3k (ORCPT ); Fri, 22 Dec 2017 05:29:40 -0500 Received: from mail-by2nam03on0082.outbound.protection.outlook.com ([104.47.42.82]:58685 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757624AbdLVK3e (ORCPT ); Fri, 22 Dec 2017 05:29:34 -0500 Received: from CY1PR03CA0030.namprd03.prod.outlook.com (2603:10b6:600::40) by SN2PR03MB2368.namprd03.prod.outlook.com (2603:10b6:804:e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Fri, 22 Dec 2017 10:29:32 +0000 Received: from BL2FFO11FD021.protection.gbl (2a01:111:f400:7c09::170) by CY1PR03CA0030.outlook.office365.com (2603:10b6:600::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.345.14 via Frontend Transport; Fri, 22 Dec 2017 10:29:32 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD021.mail.protection.outlook.com (10.173.161.100) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Fri, 22 Dec 2017 10:29:17 +0000 Received: from b29396-OptiPlex-7040.ap.freescale.net (b29396-OptiPlex-7040.ap.freescale.net [10.192.242.1]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vBMATSmb018322; Fri, 22 Dec 2017 03:29:28 -0700 From: Dong Aisheng To: CC: , , , , , , , Subject: [PATCH 1/1] power: reset: remove unused imx-snvs-poweroff driver Date: Fri, 22 Dec 2017 18:28:59 +0800 Message-ID: <1513938539-20873-1-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131584121573507770; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(336005)(39380400002)(396003)(376002)(346002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(6666003)(4326008)(16586007)(498600001)(54906003)(48376002)(5660300001)(39060400002)(316002)(575784001)(6916009)(86362001)(68736007)(106466001)(8656006)(2351001)(81166006)(85426001)(36756003)(51416003)(50226002)(97736004)(356003)(81156014)(77096006)(105606002)(104016004)(59450400001)(230783001)(305945005)(53936002)(50466002)(47776003)(8936002)(2906002)(8676002)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2368; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD021; 1:JxsALj6e1JARbMvkywZqAtC169sHw1nxaQrA7kQce/fp36Puz5VmPJ7r42HlvmSUm/tDkOpUaWGEiL7ls8nGrapAKZIlwBA/RbKkNGiNSyLtIhnc7cUr03ofcoQKADtn MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ba1dec6d-f462-4df8-82ba-08d54926daef X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:SN2PR03MB2368; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2368; 3:gn/ODAXac2iBk19yJLAQbtFrxGOKSdxvuWny/PgzXCzRcXD01VjLb8nBprAUbwWPBAjSDYHRIX5J9miLK+C8jMniIo3b3ULudBHKEJcfuDATZgWzxfLpVDoRAWYNyG4safhyclIGPpchSIv69QjBbmq4890a5R1kTz425JSA07M5+IXnwfj8wWBJ/ziStOhoYWPtMi5YvpnvJG5zU+tKiTjc+tyM8IWLJSD3X6glIpxHwR0BEZES5Xyn01mFCLnaX8h0LJdGvlFaNVb3TK0TJSklA9mz5q23W99Dk9WBlOVdA/uShumOwJ7d2l/uCCWAZ762GNf7VTPX6NPV+I2jDwNUfZlopuREnnFVssKI0Ic=; 25:Y8C0v8oditdD5dPjpDRFOQ6j2+81cAosEsY/nYJ3Fqqf/PBYJ/n5FAu/ivhfSRiJ6jjvwvPBY38saj31jX6UQtGZFeApdpADddb0McEYpd4uexDziiiUezQS+f/OR8RaRkV2LwOEg+xPPoTMeP/+/S1O2MvLGplirpOLQk4MCdcghKTWRqJpYtZQl9JNdAMHyoNQNUSeZfLiKVuSfx9nF9n2sFmUpwJazsMILANU+9xvi6/GAJhlRllUEfj0lAdsaPw6v/pG9+c4Ilh5uIO9abIwILbvfPwUn6GeNm3WPo0GDSovFmyjog1Q54NWx6qb5TXzgzNctM6HiyNNiT1feg== X-MS-TrafficTypeDiagnostic: SN2PR03MB2368: X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2368; 31:q6eGov1sBdkmxG2fHDFL5PZI/mX/bYVn7Q4XqUBp7RjJlnvviTL7abUndXjaUSkat3WoS+nHUhV2VdYdTxJLphwOcRaGsqQhLGWnmqr2qsea2CThVS7zEhFYaio6llm1U0Jq581dbqME4FynF6u5arw7WidzpeGZOVRYfIAYO+bzPyldwCXq6+bBfoSYke8EciWd5WfinQ6fzOufKbqKXZ48dJphXWeGplU+kGxLLyQ=; 4:hH4ysqYpDDYk8MjlekLRA02F1cdzOIdI5aX8AJXFzBpsItSZNN4Q3oq8Wv0jsH3jeoWRF6z1RXgVtT4O6VZgLEsSUsaODLziEWmBQCfSmAfllMl7FMyriSAZ2IXFWydanBBX53zXXWyAeL0d3VWVu1VnqQ0dHi0RJZjiHj6szaD+2WEv4u9VxIELpr8LhLMi5+UlXznrncfAlGOFFgwzLRbMYRxSRLWKX0nn4njLbAdqyGzF4tUTgq+WhqyShId8Oq7/N+ELc5mRIUp+ps39JBS98RiZdsqhVrwnHnWfGufZ7cw0gk7dMePJEwFN+xY9 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231023)(944510041)(944921041)(946801041)(946901041)(6055026)(6096035)(20161123565025)(20161123563025)(20161123561025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123559100)(20161123556025)(201708071742011); SRVR:SN2PR03MB2368; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:SN2PR03MB2368; X-Forefront-PRVS: 05299D545B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2368; 23:sSxlC3Yr2v3nre8+B56Z5pLBtl1d/q8XoOHnnICeH?= =?us-ascii?Q?4d2HeXG8EA12Uz98bmeaEb1uzqN/PJXgm9w/5txnj63IgQkG9VmxOw2956Fa?= =?us-ascii?Q?Mr3YMX2t7kWb3keSBnrhffddTAWOQdmMhSQevZNa5P7uURhxdgePCW0Foj4a?= =?us-ascii?Q?XXO9sFNn1xDvRceMV1RBeT8QEwRJquJb6biICDmC2oldPEgw2utnpXb7XNQP?= =?us-ascii?Q?lx0X3h84SWrsd7Qm4ZzRPYhbfBuOCnehxPyHfjw2uj4reYcj0MBnaImNRM75?= =?us-ascii?Q?I9KmFMnGRAaFh7lXV7r72/u7t3s7PObIMT3MzHYWZqKqVj8N8Omd+MTMHq9C?= =?us-ascii?Q?giyUquHRXjRDl9YWVDFv2R1nYLIKVhd25QtcxiPtWoSqbozlfXyn19fy5bqB?= =?us-ascii?Q?CPS/gJOq9BxUarPC8gamVtMn/5PiZ+wJV2uFazi5GMhzwb7lX+bmZh+4zyHb?= =?us-ascii?Q?mu2kGcro/11AV7rFFXYZ3DoCKRCkJ7H2+3A3mW9tOZ8NTtTiCNznU0litav0?= =?us-ascii?Q?+lmQnmAV7o6/915sJn5jBkpIn9XxL6SVBUt5/5apvg3zVCkCP7E+gEJuX/iE?= =?us-ascii?Q?DGoUNf1+TXwyiTE4YeoVTXurHoD724DEWW3s3yMeocxEoTEl9s5yr9CytMGH?= =?us-ascii?Q?neAnYBJKCWmBOIBTqHsXAXW+sFntOhJYRzfZIbSObNOanw7OghER5rrekYQn?= =?us-ascii?Q?OHbj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DwYAKySM1EtFvEjEoKXk82YaDS2PYOdnjUiU3wdjRE8UWt33vU5fM8H0rzU1Kx4xozGrfZVqcnWn/Ox3Bx2/gSE04Ae/KLrSOf0YrnrCh2CA=; 24:/q9e/SK9hlPUGFiEsNH50pxDww8971yOT+AnWFGFQ3Qr/JKyGjMgyNo6j4CH/B/y8xhmgRRbw2JRspT654Mutxr4ms1e+I/mjpmmMNxkBLE=; 7:MbGA90vIsRJQHlMUHoJyqREJZmqsCT0daWKi6qTU0ED6DTzGM+g37WYWTTOE6t3uLQqtdibsTXej3sorrpuNdkS8o/dtCxpnFakDetT6r5gsX6tkWmdo6TlNx+GE1z0L4+dw6QH7rTpVBeYK27MbhQCi7DecZ95lG8P63uBdviBediwdGja52Re+GI/FOqGSG498oSta2rp5rjdWRNQv9DdnGd8wMLpVM5X6Yy1pZyALIZidwxhJqFMWIWuESNrA SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2017 10:29:17.1947 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ba1dec6d-f462-4df8-82ba-08d54926daef X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB2368 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There's no user of it in kernel now and it basically functions the same as the generic syscon-poweroff.c to which we have already switched. So let's remove it. Cc: Robin Gong Cc: Shawn Guo Signed-off-by: Dong Aisheng Acked-by: Rob Herring Reviewed-by: Fabio Estevam --- .../bindings/power/reset/imx-snvs-poweroff.txt | 23 -------- drivers/power/reset/Kconfig | 9 --- drivers/power/reset/Makefile | 1 - drivers/power/reset/imx-snvs-poweroff.c | 66 ---------------------- 4 files changed, 99 deletions(-) delete mode 100644 Documentation/devicetree/bindings/power/reset/imx-snvs-poweroff.txt delete mode 100644 drivers/power/reset/imx-snvs-poweroff.c diff --git a/Documentation/devicetree/bindings/power/reset/imx-snvs-poweroff.txt b/Documentation/devicetree/bindings/power/reset/imx-snvs-poweroff.txt deleted file mode 100644 index 1b81fcd..0000000 --- a/Documentation/devicetree/bindings/power/reset/imx-snvs-poweroff.txt +++ /dev/null @@ -1,23 +0,0 @@ -i.mx6 Poweroff Driver - -SNVS_LPCR in SNVS module can power off the whole system by pull -PMIC_ON_REQ low if PMIC_ON_REQ is connected with external PMIC. -If you don't want to use PMIC_ON_REQ as power on/off control, -please set status='disabled' to disable this driver. - -Required Properties: --compatible: "fsl,sec-v4.0-poweroff" --reg: Specifies the physical address of the SNVS_LPCR register - -Example: - snvs@20cc000 { - compatible = "fsl,sec-v4.0-mon", "simple-bus"; - #address-cells = <1>; - #size-cells = <1>; - ranges = <0 0x020cc000 0x4000>; - ..... - snvs_poweroff: snvs-poweroff@38 { - compatible = "fsl,sec-v4.0-poweroff"; - reg = <0x38 0x4>; - }; - } diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig index ca0de1a..a102e74 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -98,15 +98,6 @@ config POWER_RESET_HISI help Reboot support for Hisilicon boards. -config POWER_RESET_IMX - bool "IMX6 power-off driver" - depends on POWER_RESET && SOC_IMX6 - help - This driver support power off external PMIC by PMIC_ON_REQ on i.mx6 - boards.If you want to use other pin to control external power,please - say N here or disable in dts to make sure pm_power_off never be - overwrote wrongly by this driver. - config POWER_RESET_MSM bool "Qualcomm MSM power-off driver" depends on ARCH_QCOM diff --git a/drivers/power/reset/Makefile b/drivers/power/reset/Makefile index aeb65ed..dcc92f5 100644 --- a/drivers/power/reset/Makefile +++ b/drivers/power/reset/Makefile @@ -10,7 +10,6 @@ obj-$(CONFIG_POWER_RESET_GEMINI_POWEROFF) += gemini-poweroff.o obj-$(CONFIG_POWER_RESET_GPIO) += gpio-poweroff.o obj-$(CONFIG_POWER_RESET_GPIO_RESTART) += gpio-restart.o obj-$(CONFIG_POWER_RESET_HISI) += hisi-reboot.o -obj-$(CONFIG_POWER_RESET_IMX) += imx-snvs-poweroff.o obj-$(CONFIG_POWER_RESET_MSM) += msm-poweroff.o obj-$(CONFIG_POWER_RESET_PIIX4_POWEROFF) += piix4-poweroff.o obj-$(CONFIG_POWER_RESET_LTC2952) += ltc2952-poweroff.o diff --git a/drivers/power/reset/imx-snvs-poweroff.c b/drivers/power/reset/imx-snvs-poweroff.c deleted file mode 100644 index ad6ce50..0000000 --- a/drivers/power/reset/imx-snvs-poweroff.c +++ /dev/null @@ -1,66 +0,0 @@ -/* Power off driver for i.mx6 - * Copyright (c) 2014, FREESCALE CORPORATION. All rights reserved. - * - * based on msm-poweroff.c - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - */ - -#include -#include -#include -#include -#include -#include -#include -#include - -static void __iomem *snvs_base; - -static void do_imx_poweroff(void) -{ - u32 value = readl(snvs_base); - - /* set TOP and DP_EN bit */ - writel(value | 0x60, snvs_base); -} - -static int imx_poweroff_probe(struct platform_device *pdev) -{ - snvs_base = of_iomap(pdev->dev.of_node, 0); - if (!snvs_base) { - dev_err(&pdev->dev, "failed to get memory\n"); - return -ENODEV; - } - - pm_power_off = do_imx_poweroff; - return 0; -} - -static const struct of_device_id of_imx_poweroff_match[] = { - { .compatible = "fsl,sec-v4.0-poweroff", }, - {}, -}; -MODULE_DEVICE_TABLE(of, of_imx_poweroff_match); - -static struct platform_driver imx_poweroff_driver = { - .probe = imx_poweroff_probe, - .driver = { - .name = "imx-snvs-poweroff", - .of_match_table = of_match_ptr(of_imx_poweroff_match), - }, -}; - -static int __init imx_poweroff_init(void) -{ - return platform_driver_register(&imx_poweroff_driver); -} -device_initcall(imx_poweroff_init);