Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1122409imm; Fri, 17 Aug 2018 12:13:09 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw3YzptIrtqrpYmjqWER/HdA255HLQH+KMXQmFxkfbw4esLFg5MkE9HJC5IErJjbBYZrgxT X-Received: by 2002:a17:902:8481:: with SMTP id c1-v6mr34950414plo.177.1534533189298; Fri, 17 Aug 2018 12:13:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534533189; cv=none; d=google.com; s=arc-20160816; b=Hyfp7VbQPq2rFnw78twXkMeC4fRv2qhkWkQkF8XW2dwoIE5AkrlUwnsHwbi3xl8Yqj 9An0JNRknf+YmTnHQFIB0X0qmtooSe5rv8/pTEk1jAenemhN7piTi1SiSZ52PDiMiDHa 9gcAUCU4brqWCRn60PHNqP3Kc0vcID8ChZ7rzY0R1jZ59dJ7jBmJc6epgE2q+CcnEyOg gvsDqLXlCtzVEy/miOa8BkoEMeg49ZXx5N6QIxSCA1E87UDQmXIMLklfCT8ACZd+ZXjn Z3XF1iOg2SNCcqLwciIJ6aL9lXWJFw+29PZWjx2i7bQt9AUI/ux6ht0lUi40EM0ThbXx ux/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=i+/tOpUKd1+nEwAbVQ/QGJCK+z+NVgg6BSgXUfVAkRc=; b=LeaKjZW8aYHe4akhpURnv+yH2f+JaYs3OQEdpKkN87Q7vU7VlBAsJXWtRu7vBuk1aD uhUQlOLNeCfblUU2WlKA/h4gMx+0XfBJW2MZgTF+5kwRPm2acjPwPoNBKUJoIpgpEVG4 xBxCf2IxGbpIWXImU8EkiF4sEEcf9MLJL7E7eIkTVGWNBT5DeppRU/4ZAD92+/k3R2gs yJV2qQqGLkXgw5qotTMrwmjjuf7+vftds+slgtiCOCZ37Z3QuXg2qCqRL5Ty/7zICt1y G07/ITt8WfmEn7tI8lGUWNysv9rmJl8AYZPUJPstaJ2nV72AJ63dfodKpUi6BFGipUe7 EU6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=KIpjLjmi; dkim=pass header.i=@codeaurora.org header.s=default header.b=X19HZdfI; 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 f15-v6si2976407pli.194.2018.08.17.12.12.54; Fri, 17 Aug 2018 12:13:09 -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=pass header.i=@codeaurora.org header.s=default header.b=KIpjLjmi; dkim=pass header.i=@codeaurora.org header.s=default header.b=X19HZdfI; 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 S1728364AbeHQWQN (ORCPT + 99 others); Fri, 17 Aug 2018 18:16:13 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36804 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728216AbeHQWPP (ORCPT ); Fri, 17 Aug 2018 18:15:15 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0E08C625B6; Fri, 17 Aug 2018 19:10:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1534533042; bh=A1m7dwJP0HaSMmBsNDShWpIcs+BVZ/gRO/YlBTgCbDg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KIpjLjmi7wR9F3MZpiyDv+3K7R93Ogj4ezML9aS1afdMtTMj8o3vpG2MDzpRY1SVt EhzgkMsCyLwdn/TtuGpAGDI3qFq8X7CGgbBucjYn7WuBymVMogllEuoc23WuLGYDqZ oEa6RhiFcG6X51U2j3iH31HmthdECZXUtRQjGBIY= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id B3D8B62572; Fri, 17 Aug 2018 19:10:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1534533041; bh=A1m7dwJP0HaSMmBsNDShWpIcs+BVZ/gRO/YlBTgCbDg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X19HZdfIbp0jq8yV3XQ2kmdRBE2XfXkJVG4DDKzGIDKsq3et6xJhoUjjU5f6KQqPa 6UxU2ZFHADtHvC9waAZYaOQDHkuSe27nA6G2QiJ7k4caH8iaad55cB7ldP/3IF6Yf+ JTMcTaluoEQh59fyMqGwuTEMiU65W3lp251jeqiU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B3D8B62572 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org From: Lina Iyer To: marc.zyngier@arm.com, bjorn.andersson@linaro.org, sboyd@kernel.org, evgreen@chromium.org, linus.walleij@linaro.org Cc: rplsssn@codeaurora.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, rnayak@codeaurora.org, devicetree@vger.kernel.org, andy.gross@linaro.org, dianders@chromium.org Subject: [PATCH RESEND v1 5/5] irqchip/gic-v3: Allow interrupt to be configured as wake-up sources Date: Fri, 17 Aug 2018 13:10:26 -0600 Message-Id: <20180817191026.32245-6-ilina@codeaurora.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180817191026.32245-1-ilina@codeaurora.org> References: <20180817191026.32245-1-ilina@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marc Zyngier Although GICv3 doesn't directly offers support for wake-up interrupts and relies on external HW for this, it shouldn't prevent the driver for such HW from doing it work. Let's set the required flags on the irq_chip structures. Reported-by: Lina Iyer Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 76ea56d779a1..2d71c79bc698 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -861,7 +861,9 @@ static struct irq_chip gic_chip = { .irq_set_affinity = gic_set_affinity, .irq_get_irqchip_state = gic_irq_get_irqchip_state, .irq_set_irqchip_state = gic_irq_set_irqchip_state, - .flags = IRQCHIP_SET_TYPE_MASKED, + .flags = IRQCHIP_SET_TYPE_MASKED | + IRQCHIP_SKIP_SET_WAKE | + IRQCHIP_MASK_ON_SUSPEND, }; static struct irq_chip gic_eoimode1_chip = { @@ -874,7 +876,9 @@ static struct irq_chip gic_eoimode1_chip = { .irq_get_irqchip_state = gic_irq_get_irqchip_state, .irq_set_irqchip_state = gic_irq_set_irqchip_state, .irq_set_vcpu_affinity = gic_irq_set_vcpu_affinity, - .flags = IRQCHIP_SET_TYPE_MASKED, + .flags = IRQCHIP_SET_TYPE_MASKED | + IRQCHIP_SKIP_SET_WAKE | + IRQCHIP_MASK_ON_SUSPEND, }; #define GIC_ID_NR (1U << gic_data.rdists.id_bits) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project