From patchwork Thu Jan 2 22:05:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 234799 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BEEFCC3276C for ; Thu, 2 Jan 2020 22:13:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 89FB221D7D for ; Thu, 2 Jan 2020 22:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003181; bh=9ywlydh4xSjuZ+e4L3AQDlf5+DYPZ7PPPnw0Rikh5+0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=VphIbYVwGdEve7mqG7Q24ChliJHV9hEtf2X8edbuRf2G1WZktj1m6miKRwXUVDeg5 eqq+UtrzoUQTRFZ1Yy/dSxY3eIrfO/8NEhHRM/J2UEfBl/WRJnXMlnp1Vbsbd1b+bs e+g3Ityy16ksbYLeJKfCAOzKwbSUTgqOkUm8TeNQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727595AbgABWNA (ORCPT ); Thu, 2 Jan 2020 17:13:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:52526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727593AbgABWNA (ORCPT ); Thu, 2 Jan 2020 17:13:00 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 50BE321D7D; Thu, 2 Jan 2020 22:12:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003179; bh=9ywlydh4xSjuZ+e4L3AQDlf5+DYPZ7PPPnw0Rikh5+0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rtkDaEFprzrIutvgGafryaXVkp7Qir51WsvQ2bltwuLmyHIU9bhEC7frJMOSpf4iM OHfUgCezZabg/0QS0vxk6Am5p2AEpmLynooVfvjKDJR1K18KN1BU9Hfs4MUyqCH68t E/BOZoypXmHf+JCyFQOyoNlBkF1QGGHb0ByIMVos= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Fainelli , Marc Zyngier , Sasha Levin Subject: [PATCH 5.4 052/191] irqchip/irq-bcm7038-l1: Enable parent IRQ if necessary Date: Thu, 2 Jan 2020 23:05:34 +0100 Message-Id: <20200102215835.474444287@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102215829.911231638@linuxfoundation.org> References: <20200102215829.911231638@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Florian Fainelli [ Upstream commit 27eebb60357ed5aa6659442f92907c0f7368d6ae ] If the 'brcm,irq-can-wake' property is specified, make sure we also enable the corresponding parent interrupt we are attached to. Signed-off-by: Florian Fainelli Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20191024201415.23454-4-f.fainelli@gmail.com Signed-off-by: Sasha Levin --- drivers/irqchip/irq-bcm7038-l1.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c index fc75c61233aa..58bec2126966 100644 --- a/drivers/irqchip/irq-bcm7038-l1.c +++ b/drivers/irqchip/irq-bcm7038-l1.c @@ -281,6 +281,10 @@ static int __init bcm7038_l1_init_one(struct device_node *dn, pr_err("failed to map parent interrupt %d\n", parent_irq); return -EINVAL; } + + if (of_property_read_bool(dn, "brcm,irq-can-wake")) + enable_irq_wake(parent_irq); + irq_set_chained_handler_and_data(parent_irq, bcm7038_l1_irq_handle, intc);