Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3305151imc; Wed, 13 Mar 2019 14:20:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJm4YCJT8Ftf1kk3Peib+Qsi2y9e2+aP3kWJRFXWxa05dXkbeolYvZFhN8fh8gJOh9boRd X-Received: by 2002:a63:e206:: with SMTP id q6mr41165894pgh.87.1552512056354; Wed, 13 Mar 2019 14:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552512056; cv=none; d=google.com; s=arc-20160816; b=mKoinJfp91+HQfofQSROj0yYgRRDBTfSuL9A+/B62gUVHFtamAgtAw5l/EOBaZzOrZ A1Pm7NfpXg/pEmU37PDGHtuDcGTeqFV8Mtf2i0W8/QcRjzF2BOw0cra8GPIbOKXFCHs6 KaVmIvAw/lEbwkC2Ou/t0kRzWjlie19/PSxBWzL/u9Rvjy7/hW8Vs6u6oataeSRafvIB Jhkb0dU26VfyP3yfAcmMyzQQyoUv5DL4EtwK2oKeGZZLYl/v3WmcG/O09bYTaa1htroP P/EtVQQN8v/RuUivLLUfKSp1xXr01KmPlGpxjCfYvzabPXQnUNYEG+AfsJPYA3F1uNZZ H4fg== 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:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=1B3y+uLz0GDvRkADPDwVub0O++8hAACjH7A5SfRjN0I=; b=toIkh3lXNC1s1mBwLdT5Dpx9Q1wlJdCR2cQRT+7Q9U4XufXd6wNGcxo5b+avqpMj45 gcnXpzOvFkRTjuruvbDbF35yS2De2evf0HF3eu2m+wYjakht+i2Z+c2O0Ec/FLHR6yrl QDKdsenEnG5cZ6PxUGiDRCXYz0WaZbOMBvxzMYW++WMHR2ZY+wLBX9NTgfzGwHu5imEq 2oRH+f6zUGFukb+pi82z/xtBG0Up/JL3pcGt+KHaDkFVLGC15mM2IVN+w6jVsqKEj4pF l7j2hled2pRLVzEczxC7dl9ADPPAa11pkJb83N5sC+5MHLXkSEoXpWQEImK+c1ZUm40K v4dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Qebbgh0D; dkim=pass header.i=@codeaurora.org header.s=default header.b=A1cKHuMY; 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 j8si11485613pfc.101.2019.03.13.14.20.40; Wed, 13 Mar 2019 14:20:56 -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=Qebbgh0D; dkim=pass header.i=@codeaurora.org header.s=default header.b=A1cKHuMY; 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 S1727528AbfCMVTC (ORCPT + 99 others); Wed, 13 Mar 2019 17:19:02 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46204 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727511AbfCMVTB (ORCPT ); Wed, 13 Mar 2019 17:19:01 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2BD2960F3E; Wed, 13 Mar 2019 21:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1552511940; bh=NdyWw51FdCiasrhn8aoVze0c7SrIXnQvQ7iSa1pp9Ss=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qebbgh0DDj2+NrRl9AKvvUZ3pZz8ktwQ+N0DE9gNzxPaPNvrxQVH9j9iNeu0NSDFa 3Hsv96w306DPP/g1pl5v2QQaEq+/QN7fQZcY5wp4up8iZKmIyJq6/eRwFFjql6n+f9 1tM3m+tV+Q5B/x2H1t8SjbYLmm9qF/MyI6caB3xM= 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.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED 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 0A15760A05; Wed, 13 Mar 2019 21:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1552511937; bh=NdyWw51FdCiasrhn8aoVze0c7SrIXnQvQ7iSa1pp9Ss=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A1cKHuMYShHBz/WLyE+7NuzV6iFFKD9b7HjlYZ5MK8QGhxBj0ScCWCNHwDDH3dCkd 3NOXpCzQ2njtC8wxpnl5nCX6dfF8lcFBGsCrTqqdsv9vQKjKcieGEpXYk3likNb3RX FBxaomoi9Cu8nQn8RHOAILSjHc/IpOXLqWTtt5L8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0A15760A05 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: swboyd@chromium.org, evgreen@chromium.org, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, rplsssn@codeaurora.org, linux-arm-msm@vger.kernel.org, thierry.reding@gmail.com, bjorn.andersson@linaro.org, dianders@chromium.org, linus.walleij@linaro.org, Lina Iyer Subject: [PATCH v4 02/10] irqdomain: add bus token DOMAIN_BUS_WAKEUP Date: Wed, 13 Mar 2019 15:18:36 -0600 Message-Id: <20190313211844.29416-3-ilina@codeaurora.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190313211844.29416-1-ilina@codeaurora.org> References: <20190313211844.29416-1-ilina@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A single controller can handle normal interrupts and wake-up interrupts independently, with a different numbering space. It is thus crucial to allow the driver for such a controller discriminate between the two. A simple way to do so is to tag the wake-up irqdomain with a "bus token" that indicates the wake-up domain. This slightly abuses the notion of bus, but also radically simplifies the design of such a driver. Between two evils, we choose the least damaging. Suggested-by: Stephen Boyd Signed-off-by: Lina Iyer --- Changes in v4: - Update commit text --- include/linux/irqdomain.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index 35965f41d7be..05055bc992ab 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -82,6 +82,7 @@ enum irq_domain_bus_token { DOMAIN_BUS_NEXUS, DOMAIN_BUS_IPI, DOMAIN_BUS_FSL_MC_MSI, + DOMAIN_BUS_WAKEUP, }; /** -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project