Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17945475ybl; Thu, 2 Jan 2020 15:20:13 -0800 (PST) X-Google-Smtp-Source: APXvYqytGGT/wyTSeO5/qL31q7ib3d7H20syi9Qui3m+nLweefGggqAOd7ZQr2760bWyB/fMPs/E X-Received: by 2002:aca:cc57:: with SMTP id c84mr3293267oig.58.1578007213616; Thu, 02 Jan 2020 15:20:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578007213; cv=none; d=google.com; s=arc-20160816; b=sXu32AXKLlo4Vk27u9L9MniIitIt8MW5PbR4fuz+hLw9s1tlbyFWXkc0tub2fCKm3K qh35dSrLLk+H2MIAFvF0AdY2iEXdWiK+YNOLKMqBWljvdPtvXD8ro2LsJ6sbc0Du0EtN HZn3DWXbUp5KXRx6z/3fh4zoSjousXBuB6Mj+FGiRgof5XzhVMAVYdZOy/LVJJdhhDoJ aJf8FGLVqigU5dH/aIfAfESUOnMwwDf4vcuc9Va2VrnNfImXfgIr1pFrJhd9qGpBum+Y p5/HSiDYbhAvB4B2SuGDGf/G6iB5E+dWG4Hq0ji/pTzLM22Pmo9Co15XvGLf724wjgHa msPQ== 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=muGPKhRipjE+2rxvAstBRwZBPvZ5ueuMIXM9daQabRE=; b=JoujgTcFNc6cvDDyKzjDqdbr+79pR2o1U1wex80nEmMEJoGgLYaW4wULq032kSIm7W EHEu+xgkHyJejlgtk0SYg/Jf9NXNBlc4q05bDsQDEu+eVxSsiNSGzwU3aP/difGaExB5 Yp9Xxt9HibM1+O7v0Wj2D2ZJ1xYssRM0dH5/ilTDulGFT8y6255ImvrE12ZHo3vm2K3y 1HvJ+NdF9fN50k/RW0NLIdJtmRFcqpq9wLJKU4IR+HGfT6ynfES0L0+E+7+1dUlHT/si dqGtv4Xb1KimvHOuNsbadpkuuTefEzZwZlluemazY6wivAW9iBXe0eFkRuDSvJ7VAWdr uOgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Esyh0iVL; 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 6si17752324oin.93.2020.01.02.15.20.00; Thu, 02 Jan 2020 15:20:13 -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=Esyh0iVL; 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 S1726103AbgABWh6 (ORCPT + 99 others); Thu, 2 Jan 2020 17:37:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:51098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731158AbgABWhz (ORCPT ); Thu, 2 Jan 2020 17:37:55 -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 168F920866; Thu, 2 Jan 2020 22:37:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578004674; bh=8oXUsVQTPdDazer0WFOtTtj/U+Sht5tkLl6KvmafhOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Esyh0iVLF84jfVp90Fgv6igufBYRoA+TSN2LKAGZWVOFQUbvxpY+kqlqaLHjL6XS/ hAw0dRQzZ+RlB68hUM3J3AkOOALs7dE3gb/s0kmKJXhtOwn2o3EWi0XvNGwitsfe3O dEMCE0O/SYE4aSn5zYUPYv6M+7OHH5e61CdJf3zk= 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 4.4 105/137] irqchip/irq-bcm7038-l1: Enable parent IRQ if necessary Date: Thu, 2 Jan 2020 23:07:58 +0100 Message-Id: <20200102220601.213007846@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102220546.618583146@linuxfoundation.org> References: <20200102220546.618583146@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 6fb34bf0f352..34e13623f29d 100644 --- a/drivers/irqchip/irq-bcm7038-l1.c +++ b/drivers/irqchip/irq-bcm7038-l1.c @@ -283,6 +283,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