From patchwork Sat Jul 18 00:06:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 11671505 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A2AD36C1 for ; Sat, 18 Jul 2020 00:08:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7A01D20691 for ; Sat, 18 Jul 2020 00:08:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="18+W5Rzo"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="nkLT+MDk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7A01D20691 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:From:Subject:Mime-Version:Message-Id:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=XTyGEavfj2mIDFTgdUagU1R1g3+QPATSY7HUFLNaTGM=; b=18+W5RzopOGigcKdyyol7L/Nm8 8Qgp0VBI3CIUn1vyXGNiDEUG20R/hxAXNBn3XLHPrNpWXH0eDjEyYS7KFp4hX7QouhPAO5AIyTOe3 b/N7rdauFaIciaPvkKU0K3GG4YfKY0IKCFXlnxhImvSkc7+qQRempiiRELYYa+fhvuh4NiFuWJb5v VBUbxoyhsE5JcioIhR7T57eTDwRmJ3fNLNSuAZpNp8LR66EhuR81z/g/L8W9SwQSNxM/pMOGVTJvK sfTZJt3gUW2edCmcwcy2F/vTEnYzXO9Nxr3hS+GAERrkePXhaX+9JK3bWEbvpxd34ZP1DYeRnof54 TjulMEBA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwaNL-0001sl-4I; Sat, 18 Jul 2020 00:06:47 +0000 Received: from mail-qv1-xf49.google.com ([2607:f8b0:4864:20::f49]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwaNH-0001qa-Lh for linux-arm-kernel@lists.infradead.org; Sat, 18 Jul 2020 00:06:44 +0000 Received: by mail-qv1-xf49.google.com with SMTP id ee9so6556739qvb.6 for ; Fri, 17 Jul 2020 17:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=rJVmt4ZwvRTHWXzLKcOClrGZS1hFJIY01F+5WZok3xc=; b=nkLT+MDkiiaXW4XaRtaceajqWSG1GinaUs7iUYNAPyVF3I16mAM60i0gGxIDbAsMQt fYL3Y4hkLQ4zrCRLIrRhLXNAFIUzqqbNLcna5BgT/oUTLTWlK2CVCP26dSTIHxdBJ9ha 0ACj5SjZiHCYVw2sKDNWSf9UjvBfXMIAVREz2NDrkfitTNAXQDqByq4edHfoQysDKFnn XC4oT1Yu/8OuXz/+K6DazZZVmvoiE3s04R4QsiTeyT81Px5iQFL5NBAfHgZE3j/NJjdP d7FBIRkJbXCCOJ0U9kQsUWd45y3rWC+omYqme3AiSCb14sHnlJK5v/B+S1aTOcNzOgv3 Q7Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=rJVmt4ZwvRTHWXzLKcOClrGZS1hFJIY01F+5WZok3xc=; b=KIW6V3+sUM2iuvaY9L11HjilhvB0eTnYZoX4ekoMbrzuyf1UNsgQGPQTV8T84113EP m3nJjaik51wgWXC2B8m+0SGSMDY+L5rjhlOgch+orKMe35bmPeZyJHRohwVTGDm8TvyZ 8Z71e5X3K/rYflJlj7g9Zgp0r5LA8Kdd/PbyRWmiOdU/j3/CyZp7WU4fHPatS9ZgqSo9 VZ/9yQVnbtITX2qfRnT86G7Sh7FRH5FgO9ERbgA6AiRKVL0tB+X1e1QHPCWtly19u1YL ClVaI049YUNcX3jke4yEMwhzQ2v5CP26tAWagn2gWL4vy8JSqJVj2JOWH1EmmBefgNwm 4zog== X-Gm-Message-State: AOAM530Sbr8dtQ2be48EgbHS7Bi4WMxkBdihIZC8yz4gPGquEIJUWTvH TLGXjWpxDRmO2Au2uuO0/+Ua2hT+JXR4TzA= X-Google-Smtp-Source: ABdhPJz83yKT96CBvwXwQbOgr6og9PaNdHb27iy5PN2zqKCaFfX0K9leKlkCDg5IteBpKBZ/nYJFfwCY8C2fVsE= X-Received: by 2002:a05:6214:3ec:: with SMTP id cf12mr11680570qvb.251.1595030800209; Fri, 17 Jul 2020 17:06:40 -0700 (PDT) Date: Fri, 17 Jul 2020 17:06:33 -0700 Message-Id: <20200718000637.3632841-1-saravanak@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.28.0.rc0.105.gf9edc3c819-goog Subject: [PATCH v3 0/4] irqchip: Add IRQCHIP_PLATFORM_DRIVER helper macros From: Saravana Kannan To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Matthias Brugger , Andy Gross , Bjorn Andersson X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200717_200643_816768_C9F39EA3 X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.7 (-------) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-7.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:f49 listed in] [list.dnswl.org] -7.5 USER_IN_DEF_DKIM_WL From: address is in the default DKIM white-list -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 DKIMWL_WL_MED DKIMwl.org - Medium sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: CC Hwang , Saravana Kannan , linux-arm-msm@vger.kernel.org, Hanks Chen , Loda Chou , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, John Stultz , kernel-team@android.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Made a series out of the previous v2 patch + some example uses of the macros. Not sure if the MTK changes work (just compile tested), but saw that Hanks was trying to make those drivers into tristate. So I assume they'll work as platform drivers. Please wait for MTK Ack before picking up patches 3 and 4. v1-v2: - Instead of redifining IRQCHIP_DECLARE, created new macros. - Added more checks in the probe helper function to ensure topological probe ordering when fw_devlink is not "on". v2->v3: - Added comments - Changed IRQCHIP_PLATFORM_DRIVER_BEGIN macro parameters Saravana Kannan (4): irqchip: Add IRQCHIP_PLATFORM_DRIVER_BEGIN/END and IRQCHIP_MATCH helper macros irqchip/qcom-pdc: Switch to using IRQCHIP_PLATFORM_DRIVER helper macros irqchip/mtk-sysirq: Convert to a platform driver irqchip/mtk-cirq: Convert to a platform driver drivers/irqchip/irq-mtk-cirq.c | 4 +++- drivers/irqchip/irq-mtk-sysirq.c | 4 +++- drivers/irqchip/irqchip.c | 29 +++++++++++++++++++++++++++++ drivers/irqchip/qcom-pdc.c | 26 +++----------------------- include/linux/irqchip.h | 23 +++++++++++++++++++++++ 5 files changed, 61 insertions(+), 25 deletions(-)