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: 11671499 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 BA5136C1 for ; Sat, 18 Jul 2020 00:07:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A2C1520691 for ; Sat, 18 Jul 2020 00:07:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="nkLT+MDk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728318AbgGRAGn (ORCPT ); Fri, 17 Jul 2020 20:06:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727946AbgGRAGn (ORCPT ); Fri, 17 Jul 2020 20:06:43 -0400 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0EA8C0619D3 for ; Fri, 17 Jul 2020 17:06:42 -0700 (PDT) Received: by mail-qv1-xf4a.google.com with SMTP id j4so6545246qvt.20 for ; Fri, 17 Jul 2020 17:06:42 -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=ekO0N4f4v/pQhBVtuLbJs7pHHEttqa8gflWXmiGdW0JqCRV3/CSefg4K6rGBNaelMV DuTRu8B6NIufWi018gW82HDvk3qZqYGxo2pk3V0kNE+c8uUKRxu3jMMbneP6Q7cBuxEq YB7d8qmobKsgMKTWXn/3PhF3GRsxJyTT9oLuOLfM0lb1uv59Yk3fcuc0Odqq/XFoJ/0+ 33n5zK02yIIwaFxdo/AqbbGV8ITaNojhh9CrNVPZvLK8XhXodAhE3pLWPe4XwNNQTMg4 i5XWoiKui8Qej3Wfv0yLTdWixH9lCxqDo0rL9wY4bdJVbQJFHAAba14mCEXyddICsVKW mTPA== X-Gm-Message-State: AOAM533oqb//Ey9DxGDpFGeNdMJMZvfmRprL2OtqQLq8qg//+TH55uq3 oVg6/PVdo9Z+QKTaFBFXYcazv6vdcyP7Kcc= 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 Cc: Saravana Kannan , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, John Stultz , Hanks Chen , CC Hwang , Loda Chou Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.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(-)