Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2100730ybc; Wed, 20 Nov 2019 08:56:01 -0800 (PST) X-Google-Smtp-Source: APXvYqz5Way6ixvkN8lKPCUIkOmWuGCqjRybVkxv/HDbdKKaasvF+wet0iLTwMb5Ol3zmMLyYXfy X-Received: by 2002:a17:906:3710:: with SMTP id d16mr6660181ejc.132.1574268961652; Wed, 20 Nov 2019 08:56:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574268961; cv=none; d=google.com; s=arc-20160816; b=wrF6H4WlPITYdlS7HolZ1zQ7+W3ienYBwEF8RjcCWQohfcTxRxl7Ajp68uqyfNZIAh yLbPPgsEuDH1EsEfE+M+JSIUh1WX/YKS0C+f+B8UP3D/rNHDuTyoh2HVKWn3PKgyfbFV 54gc9/CFBWmuSeYXQKL41KclxtBpWzx+C/i++H3k9xHJP2FFta7gjqrV+B3l5+O01jA/ Nx/mcugU94+Mz4U4DMhQ+RBwqb/gno32wBCtP61dkU7a7Yj6C0S4bhFr0rW4aIhIbD5R nNX39lC7MTdH0pmfBRzrHW8oW9SXRCPUEsdzmoRZMBov4PtVSRwuesExmAyZixR484fP n7Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=IGzVxatsAsSvnbYO8qVBhmbSUqRoW/MV0FtFmT2iChI=; b=meHl39nvetGA6ENPKlanzQUgvvKzVMVfEdt6Fx1sMafdVJpBpdtWFHlOGWoR4aZl7H o08IuduhZ2kkn7nanZ9y8PU6uFZbnfKtSpdtdH6Li+GhfDxnytzVew2XTEKxwzOnGT4M 2mEkhi3GaGYwHt27tKKvMTPUFRvd2e8ykTxfjEunbs6V0OjtkAj43bZPBG7VxUJevTdS 2Mp09opxkAj7WtXsKa/O+mtUyqiSvrPk3aqX4ITR4ZDMwpVDeBDXjbMIjlnMRUxYWBI/ 7T41ExKTcNo0TndtobaogRNh+lbRgrxCtXYcrRzpuifSQTgsWkEVHQ+8/yYS0pfzeycB JcUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5si16774917ejn.123.2019.11.20.08.55.37; Wed, 20 Nov 2019 08:56:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730179AbfKTNVL (ORCPT + 99 others); Wed, 20 Nov 2019 08:21:11 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:56688 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730146AbfKTNVK (ORCPT ); Wed, 20 Nov 2019 08:21:10 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iXPus-00077I-TO; Wed, 20 Nov 2019 14:21:07 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 03E361C1A0E; Wed, 20 Nov 2019 14:21:03 +0100 (CET) Date: Wed, 20 Nov 2019 13:21:02 -0000 From: "tip-bot2 for Paul Cercueil" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] irqchip: ingenic: Drop redundant irq_suspend / irq_resume functions Cc: Paul Cercueil , Marc Zyngier , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <1570015525-27018-2-git-send-email-zhouyanjie@zoho.com> References: <1570015525-27018-2-git-send-email-zhouyanjie@zoho.com> MIME-Version: 1.0 Message-ID: <157425606292.12247.1623250092467011574.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/core branch of tip: Commit-ID: 20b44b4de61f2887694981e8cae74fe1bf58f950 Gitweb: https://git.kernel.org/tip/20b44b4de61f2887694981e8cae74fe1bf58f950 Author: Paul Cercueil AuthorDate: Wed, 02 Oct 2019 19:25:21 +08:00 Committer: Marc Zyngier CommitterDate: Sun, 10 Nov 2019 18:55:29 irqchip: ingenic: Drop redundant irq_suspend / irq_resume functions The same behaviour can be obtained by using the IRQCHIP_MASK_ON_SUSPEND flag on the IRQ chip. Signed-off-by: Paul Cercueil Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/1570015525-27018-2-git-send-email-zhouyanjie@zoho.com --- drivers/irqchip/irq-ingenic.c | 24 +----------------------- include/linux/irqchip/ingenic.h | 14 -------------- 2 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 include/linux/irqchip/ingenic.h diff --git a/drivers/irqchip/irq-ingenic.c b/drivers/irqchip/irq-ingenic.c index f126255..06fa810 100644 --- a/drivers/irqchip/irq-ingenic.c +++ b/drivers/irqchip/irq-ingenic.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -50,26 +49,6 @@ static irqreturn_t intc_cascade(int irq, void *data) return IRQ_HANDLED; } -static void intc_irq_set_mask(struct irq_chip_generic *gc, uint32_t mask) -{ - struct irq_chip_regs *regs = &gc->chip_types->regs; - - writel(mask, gc->reg_base + regs->enable); - writel(~mask, gc->reg_base + regs->disable); -} - -void ingenic_intc_irq_suspend(struct irq_data *data) -{ - struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); - intc_irq_set_mask(gc, gc->wake_active); -} - -void ingenic_intc_irq_resume(struct irq_data *data) -{ - struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); - intc_irq_set_mask(gc, gc->mask_cache); -} - static struct irqaction intc_cascade_action = { .handler = intc_cascade, .name = "SoC intc cascade interrupt", @@ -127,8 +106,7 @@ static int __init ingenic_intc_of_init(struct device_node *node, ct->chip.irq_mask = irq_gc_mask_disable_reg; ct->chip.irq_mask_ack = irq_gc_mask_disable_reg; ct->chip.irq_set_wake = irq_gc_set_wake; - ct->chip.irq_suspend = ingenic_intc_irq_suspend; - ct->chip.irq_resume = ingenic_intc_irq_resume; + ct->chip.flags = IRQCHIP_MASK_ON_SUSPEND; irq_setup_generic_chip(gc, IRQ_MSK(32), 0, 0, IRQ_NOPROBE | IRQ_LEVEL); diff --git a/include/linux/irqchip/ingenic.h b/include/linux/irqchip/ingenic.h deleted file mode 100644 index 1465588..0000000 --- a/include/linux/irqchip/ingenic.h +++ /dev/null @@ -1,14 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* - * Copyright (C) 2010, Lars-Peter Clausen - */ - -#ifndef __LINUX_IRQCHIP_INGENIC_H__ -#define __LINUX_IRQCHIP_INGENIC_H__ - -#include - -extern void ingenic_intc_irq_suspend(struct irq_data *data); -extern void ingenic_intc_irq_resume(struct irq_data *data); - -#endif