Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2655565ybp; Sat, 5 Oct 2019 17:16:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5UkdT5fnQYFydjvWd59REZpk3xFi5CVIbhfacGzLUlXG923hhgTzPIJHociWFl+nUnIw7 X-Received: by 2002:aa7:d386:: with SMTP id x6mr22375804edq.264.1570321000159; Sat, 05 Oct 2019 17:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570321000; cv=none; d=google.com; s=arc-20160816; b=TNiG4XKAW1idT61pNpizly+++LvbTYhTZNglztnpEc5jPBGSiK7bX5aK7QI84bzb0g /oWNX6kD2GVwYFwF7K0XCoVM4UkA9uOfX7XApg0rVou9xPtLAMg6ZZpOaD2UuDq8P2Ml ewUZW3TQX/l/8Of7KFL9pKyRWhrXnj2Gtvo0YDmQQAeU+ETtxt3kQmmTQpSagB7nrVeG H3MceFG7THSIUCTJRHdy/EPqpUohmXAKUaShYSWg9Q9WCmxmqSjO+LyoU4/e6LC07L8Q uyXNKSQXXF7BEuhTg9GCBc+YMzg7g14CPWYM2Kb48GwDn3TV4ue7By54Y1HWXwXoWHxr 8IxA== 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:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=+/oO5mExpdmBQpEMZOy4k4kOdcpKXU38wnPGDT51Lzs=; b=cx89ePrcVmp1e0LdsEDw36Q3NZkVAr2t/DDm4fNpcEhvF95o9Tn7vhT0QL1PWGHPWt M7zERX+p/moKsYW18QRsbqz25U/y09Z8/QVZfPbkbWglAqvysas0fsEQeYAtkk9CJ1+r yw+IOBJ+zjUqtBBnKD5UXO7iAZ3kA5ehqF1r5/+gNAPVxD81R2oIu1aWsQs/vR3FWMl6 PQUAwK7bdYJK3dmXyc5CeBAf5UzujLvPs8bQdwk03spPD5MNt5RrkyIQSN9qVablbHOz epTKch2KgitKdOxP9FhrAvLBHwJu23ODYp9rx9xYX49n8yHYUV9zygyDIiXzOUHcPfp1 MS9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=si0hLKwZ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e31si6630081ede.199.2019.10.05.17.16.16; Sat, 05 Oct 2019 17:16:40 -0700 (PDT) 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; dkim=fail header.i=@crapouillou.net header.s=mail header.b=si0hLKwZ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726910AbfJFAN6 (ORCPT + 99 others); Sat, 5 Oct 2019 20:13:58 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:41520 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbfJFAN6 (ORCPT ); Sat, 5 Oct 2019 20:13:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1570320835; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+/oO5mExpdmBQpEMZOy4k4kOdcpKXU38wnPGDT51Lzs=; b=si0hLKwZqYyO19XjTE1TZPo31nrOfRy6NDghoWyNG7sPQ6eX/gK+sjq2F4CoS5yME4Jbiz GSoZWzdZiF/6fo5hZwN29cjK11IRH9B4Cpyhy+4KoyVY8C9xETZhCnQHHwPA/97lny1vd/ bDXreVkj5kBPk4u/fdpt1odH5RpLBwI= Date: Sun, 06 Oct 2019 02:13:49 +0200 From: Paul Cercueil Subject: Re: [PATCH 1/5 v5] irqchip: ingenic: Drop redundant irq_suspend / irq_resume functions To: Zhou Yanjie Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, paul.burton@mips.com, gregkh@linuxfoundation.org, jason@lakedaemon.net, syq@debian.org, marc.zyngier@arm.com, rfontana@redhat.com, armijn@tjaldur.nl, allison@lohutok.net Message-Id: <1570320829.3.2@crapouillou.net> In-Reply-To: <1570015525-27018-2-git-send-email-zhouyanjie@zoho.com> References: <1548517123-60058-1-git-send-email-zhouyanjie@zoho.com> <1570015525-27018-1-git-send-email-zhouyanjie@zoho.com> <1570015525-27018-2-git-send-email-zhouyanjie@zoho.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Zhou, Le mer., oct. 2, 2019 at 19:25, Zhou Yanjie a=20 =E9crit : > From: Paul Cercueil >=20 > The same behaviour can be obtained by using the=20 > IRQCHIP_MASK_ON_SUSPEND > flag on the IRQ chip. >=20 > Signed-off-by: Paul Cercueil If you sumbit a patchset that contains someone else's patches you need=20 to add your Signed-off-by too. > --- > 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 >=20 > diff --git a/drivers/irqchip/irq-ingenic.c=20 > 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=20 > *data) > return IRQ_HANDLED; > } >=20 > -static void intc_irq_set_mask(struct irq_chip_generic *gc, uint32_t=20 > mask) > -{ > - struct irq_chip_regs *regs =3D &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 =3D 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 =3D irq_data_get_irq_chip_data(data); > - intc_irq_set_mask(gc, gc->mask_cache); > -} > - > static struct irqaction intc_cascade_action =3D { > .handler =3D intc_cascade, > .name =3D "SoC intc cascade interrupt", > @@ -127,8 +106,7 @@ static int __init ingenic_intc_of_init(struct=20 > device_node *node, > ct->chip.irq_mask =3D irq_gc_mask_disable_reg; > ct->chip.irq_mask_ack =3D irq_gc_mask_disable_reg; > ct->chip.irq_set_wake =3D irq_gc_set_wake; > - ct->chip.irq_suspend =3D ingenic_intc_irq_suspend; > - ct->chip.irq_resume =3D ingenic_intc_irq_resume; > + ct->chip.flags =3D IRQCHIP_MASK_ON_SUSPEND; >=20 > irq_setup_generic_chip(gc, IRQ_MSK(32), 0, 0, > IRQ_NOPROBE | IRQ_LEVEL); > diff --git a/include/linux/irqchip/ingenic.h=20 > 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 > -- > 2.7.4 >=20 >=20 =