Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2711342ybl; Thu, 29 Aug 2019 11:49:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrQsUV9CiRQNZXDjeA7sqFVehqCao1SGZjWQ+Ja4i3UAw4bEIlqqrLS2aC8EmPVgBIah4b X-Received: by 2002:a17:902:142:: with SMTP id 60mr11603198plb.155.1567104542006; Thu, 29 Aug 2019 11:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567104541; cv=none; d=google.com; s=arc-20160816; b=DjcPrHUnGbkaRHF70comSoXwHf9cE7gkh4rUKSE+fGsd0KoGaj5DLui8einbSdTY8i oO3t7iFq6NwycKgEwKkdlXkPDM2igi32WRo8MTlDEWlnK72J4ZnZfLE8RdjvsEJle5Lq ggd+h6HtCvneZEUEvxeiBtVz2UsWjotbjV/riFoZwl1JUs0H7yzAX3pfkNm6AB6+1VTk QgsZcFt0B2franSQJ2QGCtfPaE5NqRlEgEt3lpgMqLuRyfVv6IetfRQ8LT5jKrNjRixP LsmerYYBIf5TL6Iw+xwXWkwtwB3p90Z8TWNrVoITNDm18JcuxKsdkkAKP4tBbcHfnfVD pHtQ== 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=Zlinihn6dGV7kwTyHxMX8vab8C839JvijrdBxim5+mE=; b=LavuRgcOtu/V/gpKN1MDhjBi5AsQwtpaqKbL8xswMEcSPCiSss5O0wQr4pamRGXG8R Qnu+RVHt7lLpkGKzo5Pm8i+y2nztzf/xUSiYUFsZuLZq0KpWvGVnAbhGl1WzyqOGI6yh 30ydz33k+8MGLpoSufJwMZfn3Ex9JBMCGcEiYGyTLtlXW2cNDYRG5nxYg+O6zOMEQdKh AySGLdt/LOdTjkPaYdbNBCv1Crwayyb68blXDWW8O5HMwrpDYyap5ZvaICGvW7/d/jIP 0cy9edH69JawW9Ae1A6+YCGATvTuHAg3D6EiwWaDvGOUvySk6jBKMTriSqBVcxgFxi7m 6WoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ov21A1G4; dkim=pass header.i=@codeaurora.org header.s=default header.b="E/u4IlOj"; 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 a123si3609252pfd.114.2019.08.29.11.48.46; Thu, 29 Aug 2019 11:49:01 -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=ov21A1G4; dkim=pass header.i=@codeaurora.org header.s=default header.b="E/u4IlOj"; 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 S1728552AbfH2Sre (ORCPT + 99 others); Thu, 29 Aug 2019 14:47:34 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35714 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727073AbfH2Sre (ORCPT ); Thu, 29 Aug 2019 14:47:34 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E556A694B2; Thu, 29 Aug 2019 18:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1567104453; bh=aZZpAgEtM8Id45U6CuX5S0qyC0RSjoNEmA5BfPWcAGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ov21A1G42E7QKGF9E4OUvXkh3mhX1MPH0SYwpdYsL2djJExm/+HczxiBWNsKcaSEU YJ3SYl8950Esrr2pVzADwlmyK3E20csr/ih4xF4XdTTx/A+isJywHRbEpbx3Zc4zgI FKMVlyFWRBbBBg+/2/hNKsmTxAnzDjMeHwc+Zwmg= 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,SPF_NONE 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 D47C0687FA; Thu, 29 Aug 2019 18:12:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1567102333; bh=aZZpAgEtM8Id45U6CuX5S0qyC0RSjoNEmA5BfPWcAGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E/u4IlOjRFXMG+Q6scsxflg2M9dogTX+2cs3a2prPwC7a0sHKvKASBxYqzgWs6ZZB oGy5VLDwJSqyPoPTWzb5cpt1CpgAfctgiPb/lsz8NMJ7S9urhyTwulshdDw4fvgllX votNpEZk5O1ZeemKz1gEq+LPOAkv5s+F6+zgQOH0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D47C0687FA 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, linus.walleij@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, mkshah@codeaurora.org, linux-gpio@vger.kernel.org, rnayak@codeaurora.org, Lina Iyer Subject: [PATCH RFC 01/14] irqdomain: add bus token DOMAIN_BUS_WAKEUP Date: Thu, 29 Aug 2019 12:11:50 -0600 Message-Id: <20190829181203.2660-2-ilina@codeaurora.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190829181203.2660-1-ilina@codeaurora.org> References: <20190829181203.2660-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 --- include/linux/irqdomain.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index 07ec8b390161..cc846abeff28 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -83,6 +83,7 @@ enum irq_domain_bus_token { DOMAIN_BUS_IPI, DOMAIN_BUS_FSL_MC_MSI, DOMAIN_BUS_TI_SCI_INTA_MSI, + DOMAIN_BUS_WAKEUP, }; /** -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project