From patchwork Wed Jun 21 11:59:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 9801689 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 88A05600C5 for ; Wed, 21 Jun 2017 12:06:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7693228595 for ; Wed, 21 Jun 2017 12:06:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A3AA285AF; Wed, 21 Jun 2017 12:06:02 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BE17C28595 for ; Wed, 21 Jun 2017 12:06:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=p6jWWuj+RYQ+wTvAtM7ig4G63lvJnGdGNuvclQZChL4=; b=JMTnzWaMz7fLVx Nol5wSo5uf3wHRGPZnBaiAuaVXCCmzcl3OSOq5fzwfHixNvbFd98trQt7EiAqSQNVJ1GP/KK/PKIs fXqsq7+8lEuYl3Z4s/NwkP74cCFu0Fr3gw4IqZlgLuovPSl1rymDwVonIHYZv8NrOmz6VMalvEUDW jDxcNnvdFUq78HQqsivXa8DKsKGc7UJasme64AVFx/ID9inlKj1uZ+nwKwEJUS/iKNt4ih9orNWrV goUUbGEhgcJuGIpO5ABKXD2ejzSBlHQJQSyiQyCffcfBGvPcA37Ap/Rza+2hnSXAhb3uB9NQxi00D enCBwxRgExXfISBmKkRw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dNeOW-0001Ua-RW; Wed, 21 Jun 2017 12:06:00 +0000 Received: from mail-bn3nam01on0067.outbound.protection.outlook.com ([104.47.33.67] helo=NAM01-BN3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNeKq-0006Ja-LW for linux-arm-kernel@lists.infradead.org; Wed, 21 Jun 2017 12:02:16 +0000 Received: from MWHPR03CA0028.namprd03.prod.outlook.com (10.174.173.145) by BY2PR0301MB0631.namprd03.prod.outlook.com (10.160.63.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Wed, 21 Jun 2017 12:01:49 +0000 Received: from BL2FFO11FD030.protection.gbl (2a01:111:f400:7c09::190) by MWHPR03CA0028.outlook.office365.com (2603:10b6:301:3b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Wed, 21 Jun 2017 12:01:49 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; gmail.com; dkim=none (message not signed) header.d=none; gmail.com; 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 BL2FFO11FD030.mail.protection.outlook.com (10.173.161.40) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1178.14 via Frontend Transport; Wed, 21 Jun 2017 12:01:48 +0000 Received: from b29396-OptiPlex-7040.ap.freescale.net (b29396-OptiPlex-7040.ap.freescale.net [10.192.242.182]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v5LC1Q1r009655; Wed, 21 Jun 2017 05:01:45 -0700 From: Dong Aisheng To: Subject: [PATCH V4 5/7] pinctrl: imx: remove gpio_request_enable and gpio_disable_free Date: Wed, 21 Jun 2017 19:59:53 +0800 Message-ID: <1498046395-30001-6-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498046395-30001-1-git-send-email-aisheng.dong@nxp.com> References: <1498046395-30001-1-git-send-email-aisheng.dong@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131425201089037027; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39850400002)(39400400002)(39410400002)(39860400002)(39840400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(54534003)(9170700003)(104016004)(105606002)(106466001)(2351001)(966005)(2906002)(498600001)(50986999)(2950100002)(6916009)(6666003)(76176999)(33646002)(77096006)(48376002)(50466002)(7416002)(8656002)(305945005)(5660300001)(53936002)(38730400002)(110136004)(54906002)(47776003)(6306002)(86362001)(5003940100001)(36756003)(189998001)(50226002)(8936002)(85426001)(356003)(81166006)(8676002)(4326008)(39060400002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0631; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD030; 1:DnUxIEOYIEjqXnPZsiUenCOkOZWrtYyI7srd9LfgoI2UtaKm+z5lMXhqURaNTcBAfvh4848p91k8QJgRFYQFdSYxxvW1l2JOPw7enOSn9o7ynJX6JG/fVJcyimOTHPbDiWNBjq9Io2Kidh6PgMNrIUA70otvJ6cdrv5K7BUFGNB8crH+HxjzG6/4iIdci4HN4pO7SjTUv7CAJgX0d74EtVPq0HcVSAJZpulLSY89jmqimI7G3EYsSVOgAjskglMxtRqnteXUitwj6HsUoo46IVh4VEX7gYdXcRym3OBAbZMLoQ0fLRLjdXJupkA2jWYxnz9qA+noUNtCgPvSsdOjIkGPB3QnoCeGrTyUPU5xR/nz8ek+MTCh32G1amckNgQtyN5UFgrLbBfgLcNFUMVb5Jyyqyv+bLhFSScAzyxjT9xZ/BZ34kfLOuH5SH8Rj7XLTBKJGKuMZTRkQaKnDRZf17nD2BsdC9QGC30udxEv6Xv4S9cxCZYaImr5W5vVHnav4Y4IhVLQc3k1/brXF2qbNlc4As9NbilfgR7BwmdgEy8xlfOnhC/WGTDJXQFCNewTX8b8FGJDSy/piop1dd1wDd0dM1CgHg2tz+IabDugvvE= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6bf67fd3-ddba-48ac-e182-08d4b89d4be6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BY2PR0301MB0631; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0631; 3:qnBSmP4RwEGVGdvMNYdMTlxss9O1Ec1Jn8lOyR+sxoRuJ9omGaE44DZlDF84ZIj2LO8bsBKlpa+hWxlfAbaShtELQTLocPR0DmLh/tm1vWi8Q7h7wjoD6sjzaHQJaJH65fByoFE+YejJ522lt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0jz0zCuj6raX0RdpJJ+04jxwZFtgbse5jrSVrrG/M0JHERRu0fyA7XH/JFcdRqAraSSFcE X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123561025)(20161123565025)(20161123556025)(20161123563025)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR0301MB0631; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR0301MB0631; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0631; 4:onbsHpO1Zuf2yi2JwgH61nUYSGmT93YBIwbNLuAs?= =?us-ascii?Q?ZtZKH47de2CW45pNZ+mBxKujwN6t3x6w6SYpeZuKClJVjr6sUTkzeiQ2dWoZ?= =?us-ascii?Q?pDYd2MeDfyILUoYAr2Q8hl0HvmxlNngNSEP8QwrIzin4nTVC5zUbG4o9tNi4?= =?us-ascii?Q?jha5wAKLoc5oYzKKYM5l/m77x8n8XnXPr4+BeJc8gMxW+BTnbz/l4RvC+DVg?= =?us-ascii?Q?mRygTjSVq+ATFqPM3csWeVZYd/L+rw04sfrygbeLX0Uy8JjG/05Y76o4CI1d?= =?us-ascii?Q?FObJBHT5CLaIlPCcPDefGOfiCOupsy9BLt2t0lcu2vw+s1qVAQ1L0zpjZYey?= =?us-ascii?Q?ojxWfQAZQQrGdDY40ehoC+UcZWcfniJvpOj9oGhKja7hjnrPnX3Lf4vis7r0?= =?us-ascii?Q?KbqrqeyuDlHYt6BaXrajm/xHHU48fTh8LhSgCXMbaLZ9YCG/GaOYAYbMlYGP?= =?us-ascii?Q?zYnXi0oWhBWYluwYKrEGUfH91lzGj5BznUVUjBf59316jqPyvhshhxpi7Ro1?= =?us-ascii?Q?GIFKAhSVSL+LHdZSzyG4Owe/R6spIJosxlpcOkos/Neaww+wdzWiZxMf9Z5V?= =?us-ascii?Q?aBiUVQHfXNiM+P1SpTGgZpzgMdG/nb2FX3BS6iXQZlYicFumNTxYR/A7xRNe?= =?us-ascii?Q?I450651CS+niQ9CkQtA0fHQTk19n+nouOPJnq95NLWs1iXCWNNn12e0fH1g0?= =?us-ascii?Q?bep9k7MsmSxeAq8TwYCSyUG5qD2aAnY32WBd1FFN2rRK1Vdvdy2rKsXMXFm2?= =?us-ascii?Q?Mn7vmW8bZkveuS0sUgg0063lPy3fz/OFuirFgfWk+ay6+wJ6IIsTEs0C7AKu?= =?us-ascii?Q?YUfUL1R4mDLDQ6jc26b4B957+smitMkHVpnJDKSvFNaWlVn8Muqi3b8d4GHj?= =?us-ascii?Q?zqyTQaLeYGYwAZJRl/2fKNnGFCHgGLXphIomHLj2JaOna6EXvMIX5rhpuQ5y?= =?us-ascii?Q?HI5RjAcpu099Lqpdw7s6coFoGnBrPEDaOSfiCiLChT68BujHVsY7Gzs2n254?= =?us-ascii?Q?U9E+zxYSSz26oAYT3NsP23BtSsmM0EPjgd0g+JpUfeOJ6lfpEF8Dnb+D4HXK?= =?us-ascii?Q?bwGComAidBaJLPn0JR0S8wOsedDgOKHvcBA5YSCuBjNjBegAazgGkLhCgLgT?= =?us-ascii?Q?ul2VGjeQ946CM4kyhZnR4vyh+oRxAY3mdrjJrCV5e8omENfBfvj8hBt1dwXO?= =?us-ascii?Q?1uNREc+JUJNeTthGHzXxIBlG9Sb1S/GqzddeA0xV+Fy5yC1ffZpUvwNkhwRa?= =?us-ascii?Q?bV5oEakossJh7amRqhQ=3D?= X-Forefront-PRVS: 0345CFD558 X-Microsoft-Exchange-Diagnostics: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OjTIxkri9JaTYeFq3VEwz4/rlVU8?= =?us-ascii?Q?q8ixYQsVuSZ12zT5R+uBefrythXz1slDLEeMza2u3dMNLXtL/XykzEVTjQtY?= =?us-ascii?Q?lafOE5oSJsVGa11D+jMBwdmreKyZKNtAFJ8dJh82xC2aYg2XkuzZhRJ5WVxG?= =?us-ascii?Q?PHGqmgT8J/3SYljdNDK+L+NbDBbnZfxRO8sLPYoDvBF3gdSckvfZSsc1teXf?= =?us-ascii?Q?I3E/+NZSkUNQCktjzPdi0GuPw/J2+BeycqpC1N4EPsJxpNHNsl2rupYgzGp5?= =?us-ascii?Q?O2y+Or2zGXqlkBb3iNF0juKOg7xZxqOq1HKTaX9wih14DtMKNP9GLOCwVPxZ?= =?us-ascii?Q?J65yjdi2r4+s+a2r7P1Yt0LusKOWPQF5LjZ6TGvSy8GXvAPB1Knv/1JNOmAo?= =?us-ascii?Q?I9Ha2vJHzDB9weYHA/d2+H0wNIa8j6lm17KySbawIwPIfGWt8kEeG1Ipbv2F?= =?us-ascii?Q?aa/4cKL33HERvghBSbe3oMugBaSnQgpkIokDQPQWPmigE?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0631; 6:pC85/+p35R+zFfpdNmPLLlj/7onrVsJY4nlhy8AX?= =?us-ascii?Q?nXx4k9YruvvpnM8R3jyEcmCPNaeKORvhvlCPDBD97XSd3jFQjX65PQw6l/FS?= =?us-ascii?Q?UHeFzE3CVNQpoSIfqdVnMpCbAgp8Br6fmB5na+XypLTv+HSbZZ1BsOqMODdc?= =?us-ascii?Q?7/eUQgVq21gEczly3DOI3QuEssxYmVMHmO9gPOYADho4UuXszsTgZsDvhvXa?= =?us-ascii?Q?2XAfHHGLN4vCDXkam86/WgSTHuTJMiaa3yNlEcZb0ag/KNvlkq4vTrslKyDk?= =?us-ascii?Q?1HGSvxbmm4nYcu2Edmowt6mZX4cUA0By64tVBj+xEIW1xIkO8JA9JvLY223G?= =?us-ascii?Q?+iw3Sf1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/IMdnLbz9r872w+KssG0/BhUaJHMdfLYHc8ctC+I6MIflXLpLkmta/cZvoVgss8iwf9AJel5jpw8huF9H4gRW+LAegfZ1vsLYJDpGa3S5knUWVt/Tr7Uf65c1cMuaC6HCF9wsDnW/jTWWAE37B2WdIh0o/CF4wZegkDNnAZ0a8PQPO4isyNU1Qypkb6++d4uJ9xQ= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2017 12:01:48.7165 (UTC) 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: BY2PR0301MB0631 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170621_050212_982166_665A8B7D X-CRM114-Status: GOOD ( 13.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dong Aisheng , Alexandre Courbot , fugang.duan@nxp.com, ping.bai@nxp.com, linus.walleij@linaro.org, stefan@agner.ch, kernel@pengutronix.de, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP gpio_request_enable/disable_free actually are not quite necessary as standard IMX pinctrl binding already sets GPIO mux from device tree, e.g. VF610_PAD_PTB20__GPIO_42 or MX7D_PAD_SD2_CD_B__GPIO5_IO9 No need to do it again in gpio_request_enable. And according to Stefan: "For all GPIO I checked in upstream device trees we assign a pinctrl to the same node, so in all cases gpio_request_enable/disable is really unnecessary." So it should be safe to simply remove it. Cc: Stefan Agner Cc: Linus Walleij Cc: Alexandre Courbot Cc: Shawn Guo Cc: Fugang Duan Cc: Bai Ping Signed-off-by: Dong Aisheng Acked-by: Stefan Agner --- ChangeLog: * New patch. Instead of fixing gpio_request_enable/disable, we decided to remove it after dicussion with Stefan (see blow). https://www.spinics.net/lists/arm-kernel/msg583154.html --- drivers/pinctrl/freescale/pinctrl-imx.c | 69 --------------------------------- 1 file changed, 69 deletions(-) diff --git a/drivers/pinctrl/freescale/pinctrl-imx.c b/drivers/pinctrl/freescale/pinctrl-imx.c index fc1ba3c..505fe79 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx.c +++ b/drivers/pinctrl/freescale/pinctrl-imx.c @@ -255,73 +255,6 @@ static int imx_pmx_set(struct pinctrl_dev *pctldev, unsigned selector, return 0; } -static int imx_pmx_gpio_request_enable(struct pinctrl_dev *pctldev, - struct pinctrl_gpio_range *range, unsigned offset) -{ - struct imx_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); - struct imx_pinctrl_soc_info *info = ipctl->info; - const struct imx_pin_reg *pin_reg; - struct group_desc *grp; - struct imx_pin *imx_pin; - unsigned int pin, group; - u32 reg; - - /* Currently implementation only for shared mux/conf register */ - if (!(info->flags & SHARE_MUX_CONF_REG)) - return 0; - - pin_reg = &info->pin_regs[offset]; - if (pin_reg->mux_reg == -1) - return -EINVAL; - - /* Find the pinctrl config with GPIO mux mode for the requested pin */ - for (group = 0; group < pctldev->num_groups; group++) { - grp = pinctrl_generic_get_group(pctldev, group); - if (!grp) - continue; - for (pin = 0; pin < grp->num_pins; pin++) { - imx_pin = &((struct imx_pin *)(grp->data))[pin]; - if (imx_pin->pin == offset && !imx_pin->mux_mode) - goto mux_pin; - } - } - - return -EINVAL; - -mux_pin: - reg = readl(ipctl->base + pin_reg->mux_reg); - reg &= ~info->mux_mask; - reg |= imx_pin->config; - writel(reg, ipctl->base + pin_reg->mux_reg); - - return 0; -} - -static void imx_pmx_gpio_disable_free(struct pinctrl_dev *pctldev, - struct pinctrl_gpio_range *range, unsigned offset) -{ - struct imx_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); - struct imx_pinctrl_soc_info *info = ipctl->info; - const struct imx_pin_reg *pin_reg; - u32 reg; - - /* - * Only Vybrid has the input/output buffer enable flags (IBE/OBE) - * They are part of the shared mux/conf register. - */ - if (!(info->flags & SHARE_MUX_CONF_REG)) - return; - - pin_reg = &info->pin_regs[offset]; - if (pin_reg->mux_reg == -1) - return; - - /* Clear IBE/OBE/PUE to disable the pin (Hi-Z) */ - reg = readl(ipctl->base + pin_reg->mux_reg); - reg &= ~0x7; - writel(reg, ipctl->base + pin_reg->mux_reg); -} - static int imx_pmx_gpio_set_direction(struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, unsigned offset, bool input) { @@ -357,8 +290,6 @@ static const struct pinmux_ops imx_pmx_ops = { .get_function_name = pinmux_generic_get_function_name, .get_function_groups = pinmux_generic_get_function_groups, .set_mux = imx_pmx_set, - .gpio_request_enable = imx_pmx_gpio_request_enable, - .gpio_disable_free = imx_pmx_gpio_disable_free, .gpio_set_direction = imx_pmx_gpio_set_direction, };