Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4189307yba; Tue, 7 May 2019 13:44:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/afUULgphoZ3jWWi7bSWEnZwHRIBKnazahNN7pVlaRgM46QYA4MtrsvPA2mnvc3gVXQcq X-Received: by 2002:a17:902:b20f:: with SMTP id t15mr43070052plr.341.1557261874167; Tue, 07 May 2019 13:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557261874; cv=none; d=google.com; s=arc-20160816; b=MEPcqNzKCL5CS3J0OU/0DRKUS1Q48rZFcdTZFZkg6/HZbVV3xONczRfhwE7s1FopWb +d1gPqvAuOhqHOF1iaPrwFRwUuEBOZtfmNBPI75R7zJZcHw3yur76zdQ/bOyIEsC1fnJ NPk1qYeY2C6VwwGwIpnu/8kYVCkCBLgVYLNUpUHpAplnR243e1KKGhxnQWNNOLOXhbAM j+CEY2zu0aykaqpFKNWlDznhV2ZwrStNMDzH+DkUkOB5Epit8EXmgff3yF4ohG2tsGej zATbfGfELVhYarIVhTcMT+xy7QAV1XPmXh3gLUMlnodCj2e5mPuF0kS76gkUCDNWNzjv bo1Q== 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=1AebI+43Aa2JCO//Qq1aDp5AHzUYj/wZY/ahw/w+Fac=; b=EUcLdfWVVfwZW05I5uVT1pjFnz13d+qgzostgOAWmFAxpn5ltCdJfwJ0dYteb6gqLU wdMz+mrSBhxDtBCVX8ipYztZowBHqLQl/mwqSh4z4zaO5t2Zmyb3Y4FZXS+RrzfB4WNT J+jIU6FtHD8HOfweARIHFoT261pFDiURW0nJkZDTCardS61G2Torew+jcYdpkXg/cMt7 pFpbS/2tPwf2qLtqouEX6szdhyA8xBuJv+/A0jdREprVuNlIFTIRvLk6skH5b996D3Mj /vUzHAuJDM+Ohwr/qKawWb24r8X0RwTYHs4qz4D3U7pZoQqgOnMtDuEbZkwEqi0VKARA vi6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="fzF5U/uk"; dkim=pass header.i=@codeaurora.org header.s=default header.b="fzF5U/uk"; 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 78si20240660pfr.138.2019.05.07.13.44.18; Tue, 07 May 2019 13:44:34 -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="fzF5U/uk"; dkim=pass header.i=@codeaurora.org header.s=default header.b="fzF5U/uk"; 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 S1727287AbfEGUlm (ORCPT + 99 others); Tue, 7 May 2019 16:41:42 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:52914 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbfEGUky (ORCPT ); Tue, 7 May 2019 16:40:54 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E144461154; Tue, 7 May 2019 20:40:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1557261653; bh=/5F8HTO9iokGlCSR/1R6LYbndmC6HaerDlTRHeo0W9Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fzF5U/ukwM5O2da73I+4UGIzWqC4gckWJHSxIkmdV6f8YM2PSNA2nPC4pNjPMJBfn R2XOHEIl8IAWAEf2eOfEQgxhMEm2cholA1/lYXD0A4US9bTzDSvBaUaTiyPv/iviaN I3Zs26VLBNdAXF6kh8+GTw3mT0DeBB2NWRqTQWb0= 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 6189260E3E; Tue, 7 May 2019 20:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1557261653; bh=/5F8HTO9iokGlCSR/1R6LYbndmC6HaerDlTRHeo0W9Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fzF5U/ukwM5O2da73I+4UGIzWqC4gckWJHSxIkmdV6f8YM2PSNA2nPC4pNjPMJBfn R2XOHEIl8IAWAEf2eOfEQgxhMEm2cholA1/lYXD0A4US9bTzDSvBaUaTiyPv/iviaN I3Zs26VLBNdAXF6kh8+GTw3mT0DeBB2NWRqTQWb0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6189260E3E 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, rplsssn@codeaurora.org, linux-arm-msm@vger.kernel.org, thierry.reding@gmail.com, bjorn.andersson@linaro.org, dianders@chromium.org, Lina Iyer Subject: [PATCH v5 03/11] irqdomain: add bus token DOMAIN_BUS_WAKEUP Date: Tue, 7 May 2019 14:37:41 -0600 Message-Id: <20190507203749.3384-4-ilina@codeaurora.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190507203749.3384-1-ilina@codeaurora.org> References: <20190507203749.3384-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 61706b430907..4eaf17dfd2f8 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