Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1341039ybe; Fri, 13 Sep 2019 15:06:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzthvHc2qIoX9sN1W5v86i+DhpkGGVmtFTb+UKeCxF0ZwTdRg36B9sMgOgB7sRUopSnbcS1 X-Received: by 2002:a17:906:3187:: with SMTP id 7mr10942959ejy.238.1568412381104; Fri, 13 Sep 2019 15:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568412381; cv=none; d=google.com; s=arc-20160816; b=en8ZgS7PrE50SasrwjqwXNTypLS6I5ne0D+S//ATC6P7X50Ce1FYerNA001hNn9FJE dRIvCvQ2YENubUjLcSjbj+RHMQ1UNarnHKQJ9Hs3Y4ekBNlEjQddb4hIZ/yybptAvPCf QGLXFLOE63zJNmAOOQ8giROI97ePTL0dFnLkwuEKzjPPfUAD2Oau/atIbTWDFoY185ny W8vi0WYzVA5UPr2we9fqWJU1gVAibfYH5OSKLqZHvXzRD25s/QYjuxE9d1Yx++Iy82+t OVzihr4BqMM82ojviaQqRTevNKfK3kWz5OU/vexDz9vvlbfhjIo7lPNLs/01wN2jaYIl HMjw== 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; bh=1gRIz/+JDHU6bZAck2SveCi2usmKhNFwmFJ0pr5itko=; b=EnqqZn0xSgTWk9PdAzQZhMW6r4FUI33FW8aclgKugmRcCxFHAMniLg2Kp5G2ZvESg1 PIpvyFPIX6igYp14T0G4qVFDW6q20nHsRG26+9UI8ltbDUYRqhyklIw4/NpF+5sRvHN7 7NrGvk94HYi5qAFp2RlNHDPpu6k+36HR4x/kCf6wJBtps9iG5uF8tqHYoM7m7an5uTI7 ZmaRLrbohbyIUCKWjjdgQ0Xw0lG3Nw2hBQE/Ekka3nn/7uZezzy9QtgVbwhssAGi1eKq HdLjELLOh6s9XkXrDpkC9k0ZxoeFUCQEyAzToxcm8W5ermbVAQNFF48Zo86TqVmy4Di1 xT7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Qm+YCF3O; dkim=pass header.i=@codeaurora.org header.s=default header.b=GFIEJjp8; 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 o24si14981512ejb.296.2019.09.13.15.05.57; Fri, 13 Sep 2019 15:06:21 -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=Qm+YCF3O; dkim=pass header.i=@codeaurora.org header.s=default header.b=GFIEJjp8; 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 S2390225AbfIMV7q (ORCPT + 99 others); Fri, 13 Sep 2019 17:59:46 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:59412 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfIMV7o (ORCPT ); Fri, 13 Sep 2019 17:59:44 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CE3616044E; Fri, 13 Sep 2019 21:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1568411983; bh=r9VU5NwhhErW5lihrBpuQhz4eshG9uEvbjR5J9Nhdt8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qm+YCF3O1Adn77QKMX8qd0IODgk1ZQDBXznpdHZ0x2htiOfXvFzUXbpwgJhBAFq3I 8EJ2XmypNXXYfvqfaxeBYCHQCM4ECjl1+NFYpL78zCU8OZGNQknY/uUoRchILtH3wX XDD8IwOFexv9i7To4T7fp8mIxg6OqEsShtRIYmhk= 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 6129A602C3; Fri, 13 Sep 2019 21:59:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1568411982; bh=r9VU5NwhhErW5lihrBpuQhz4eshG9uEvbjR5J9Nhdt8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GFIEJjp8j+bneKliC31btEKLSZwnGe3eXjbJG3hIXNXMpuVLMcFCMlsBejou94j7z SC6QgsqyH1PKyrV/OIXoj/5jsyvz1skcQTfpnFrdZgylFwAQv5iKvdpgnS6P6pvoNf ERVF9zxlbeUcIPxhfNP+5qRB+Hk5tVfr3UB5DZk0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6129A602C3 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, maz@kernel.org, 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, Lina Iyer Subject: [PATCH RFC v2 01/14] irqdomain: add bus token DOMAIN_BUS_WAKEUP Date: Fri, 13 Sep 2019 15:59:09 -0600 Message-Id: <1568411962-1022-2-git-send-email-ilina@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1568411962-1022-1-git-send-email-ilina@codeaurora.org> References: <1568411962-1022-1-git-send-email-ilina@codeaurora.org> 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 07ec8b3..cc846ab 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