Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17893210ybl; Thu, 2 Jan 2020 14:14:24 -0800 (PST) X-Google-Smtp-Source: APXvYqw0R6geoV6A76DCwZFJbC4NelzLu2EEUleFW3uyJAxPilgVk8OZBciPIZagK6ckoRXI3UBZ X-Received: by 2002:a9d:2dca:: with SMTP id g68mr87162301otb.150.1578003264668; Thu, 02 Jan 2020 14:14:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003264; cv=none; d=google.com; s=arc-20160816; b=xxjN2AvEOkDf1IVz6GOXPFkfe8XIGvNT6fjnjtbjCSPqU/V0xHs6Lc4yHfURdR2zZ9 AJqkwab1UpK23pK8hZ41CnIWp8ApnV4McdLaIgc3cZif37rJ1Z5SzqzUd1FmPRnrPwXm aPDal6YIv49yyrNgKHpRmsrNegJqofGo6JCHiJf1kqOxn9F3/+EuiApR2kFrnZpHVZI7 +e5YElvIk1noM9pFlq+xRibkMquuaG8/KEEjQUGqmMjw9Tu2aoZcrpuaVa14rfRnG5sN oSCZtqwJPBCg2HBQZCGflMDTpLNp/9vyIH0AUkg3bTtu0K3Xz3HkOTNvSuuul88wPS0N FHwA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vYotinFuKOGw1M1OsPgwjqAoFHe7TI76x1nXXET/V68=; b=z4SpKRBcyfKdX9F3xGxPwwxxB6oHbu4c730gv9CNL6r2d45A1D2sUJa4SA/MXXvufj 42RuZ6ZvlJolOaY/1LVUTIX5rWcbjDbPN26CiGHfzFDgdwrE46y3ZAsW+l7fQTCM9AF7 AeJhV8NQqATb0brPIbDQg7F7g0tNHHEBmRGt3UGf2n/kFBMUmDlQu5hj+iU0hDlfdk8x YXfSjF/zv4gCHxIb4/OaMriDImqjHt7Gacj0w4lUvFpefq0cDvpWLsvKo64/WoHkfTUJ bd8tndPfz1Y1eE1eZjg5BJJJ+MPx7wC21CRpxnTtVv/8EtshqYjv5QMdLtOD0VK/Jkvw d0WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rtkDaEFp; 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 p25si29675854oto.191.2020.01.02.14.14.12; Thu, 02 Jan 2020 14:14:24 -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; dkim=pass header.i=@kernel.org header.s=default header.b=rtkDaEFp; 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 S1727604AbgABWNC (ORCPT + 99 others); Thu, 2 Jan 2020 17:13:02 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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); -- 2.20.1