From patchwork Mon Jul 23 17:53:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 10540709 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 156459093 for ; Mon, 23 Jul 2018 18:02:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0040826AE3 for ; Mon, 23 Jul 2018 18:02:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E80AD26C9B; Mon, 23 Jul 2018 18:02:39 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 E25FC26BE9 for ; Mon, 23 Jul 2018 18:02:38 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=d7KKjnwTGvwJ1fv0F8lPNY/+oQqP/EV1aENjweHsceQ=; b=prTuw6BGKKXkRdJQpQGQ4lH7Hd 7AVrr//WhzK2+Ggb17eTlyzcw9vxIahG4692dV2tr17fQ2JKLAZrpCwOcflPBITyNmLEA4L1Iv0k9 mYRIKY5TXAkfiArP90AqQZxwW7jWIZFEA1d3ImaYxGJb9MDEOry7fhIbnfMuhKuvit2RkK6RCQSKz Ty6glZfnuRDvu+AVIn7CVH6lfvJT3yynl3Uk1v6fNuP8PLaBBIEC1BSEMymhoRZr/DWWsTrJ53S8r Ll9WSzUbcOQIhnzBqYVdigelwl20ErOfqIYDqkcwtAK5XJFGGmY22GOachsZmESkGpucx/r7VE66h XJy9y5zQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhfAK-00040w-ML; Mon, 23 Jul 2018 18:02:36 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhfAI-0003tm-K2 for linux-arm-kernel@bombadil.infradead.org; Mon, 23 Jul 2018 18:02:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=d4Zx072FL00521hbX1P/94E7CXv/eiDeW5l2EjqR3ok=; b=kDVM/fR7XlqD4GNYZrRMIKtdd pda+43KRbzFKygAPe07h5J6E0et34YEi7mZdC3ixMUYFi5rlwC87LCBwcNpXH3Z2WiWslSqzCc2zk MDmprgXFY4zvQqJwzCjmHxG+Qv/kBO96wgllBFu9HJ6ICR0HE0Y8YRRjIDJvwYMTzbL25L8l0XTS3 wKmuAzch1/impsH8YCXt8R1AdayQUKGklhym/6R0Hv3eKOevZEDHe/82sC3pw+wVdvkhBQ9XLAOFb t1pc8hlNp+3ozYn9t/H3+0SojV+iOh2szI57wzcLvh0o7l7a0SG6sldVVxCb0yq9uveTAs41Jzuof D7uXowVqg==; Received: from mail.kernel.org ([198.145.29.99]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhf2L-0006Qa-2A for linux-arm-kernel@lists.infradead.org; Mon, 23 Jul 2018 17:54:22 +0000 Received: from localhost.localdomain (xdsl-188-155-58-14.adslplus.ch [188.155.58.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CA41B20856; Mon, 23 Jul 2018 17:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1532368447; bh=gu3kQHpc99s4e3nkH77WToBoWiUC3GjSZsgjs191fr4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pFjz6NISWNOjU9T0KMb3aeH2Q45go7xQvKWI5eS/il25Jx8APKPl8/LIEvb2aNLY6 iuS7/+k1y6ba5DNtjoO8BsMBnfgnf9BnIeCS3lLHUmVZF7HAVs6nkJ+70bNDiU9CxM d0shr1zJ2ESTFu53nesu+omIWP4dC+2E+nCSKvak= From: Krzysztof Kozlowski To: Tomasz Figa , Krzysztof Kozlowski , Sylwester Nawrocki , Linus Walleij , Rob Herring , Mark Rutland , Kukjin Kim , Russell King , Kyungmin Park , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFT v2 10/10] pinctrl: samsung: Remove legacy API for handling external wakeup interrupts mask Date: Mon, 23 Jul 2018 19:53:02 +0200 Message-Id: <20180723175302.22535-11-krzk@kernel.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180723175302.22535-1-krzk@kernel.org> References: <20180723175302.22535-1-krzk@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180723_185421_230174_E297C6EA X-CRM114-Status: GOOD ( 15.34 ) 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: Sylwester Nawrocki , Chanwoo Choi , Pankaj Dubey , Alim Akhtar , =?utf-8?q?Pawe=C5=82_Chmiel?= MIME-Version: 1.0 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 Remove the legacy, ugly API of exposing the static value of external wakeup interrupts mask, because all arch-machine users where converted to use generic implementation from pinctrl driver. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa --- drivers/pinctrl/samsung/pinctrl-exynos.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/pinctrl/samsung/pinctrl-exynos.c b/drivers/pinctrl/samsung/pinctrl-exynos.c index 40ef14956876..eec174a65c6f 100644 --- a/drivers/pinctrl/samsung/pinctrl-exynos.c +++ b/drivers/pinctrl/samsung/pinctrl-exynos.c @@ -325,13 +325,6 @@ int exynos_eint_gpio_init(struct samsung_pinctrl_drv_data *d) return ret; } -static u32 exynos_eint_wake_mask = 0xffffffff; - -u32 exynos_get_eint_wake_mask(void) -{ - return exynos_eint_wake_mask; -} - static int exynos_wkup_irq_set_wake(struct irq_data *irqd, unsigned int on) { struct irq_chip *chip = irq_data_get_irq_chip(irqd); @@ -342,10 +335,9 @@ static int exynos_wkup_irq_set_wake(struct irq_data *irqd, unsigned int on) pr_info("wake %s for irq %d\n", on ? "enabled" : "disabled", irqd->irq); if (!on) - exynos_eint_wake_mask |= bit; + our_chip->eint_wake_mask_value |= bit; else - exynos_eint_wake_mask &= ~bit; - our_chip->eint_wake_mask_value = exynos_eint_wake_mask; + our_chip->eint_wake_mask_value &= ~bit; return 0; }