From patchwork Tue May 18 21:19:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 441248 Delivered-To: patches@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp623226jac; Tue, 18 May 2021 14:19:27 -0700 (PDT) X-Received: by 2002:a17:90b:689:: with SMTP id m9mr7332632pjz.102.1621372767347; Tue, 18 May 2021 14:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621372767; cv=none; d=google.com; s=arc-20160816; b=N3F5wCoR2Krn1TPOnMc9ymP8vmKVzNg1ludv8G+YFN5oo7jVoNyEC8TMQT2HkExzTa 9Wa3+7HyxWsgTaPbPBXBhf+mL/mcXRyAW1U7iRjri5fp/n89mN5EnlTTuxy5dUpWVpr5 cRndqktK9FLi16Zxup7PGIzk7io37GXO9AGO/kIkT38qQmRFOXvNR2+nuagEe2AyitPk mxa/JimRc6sx+XagWCTfnIKLIgxbkJtpC+Ec3TGKRpdnTFeCQ63JgqY1jJifuWcn+Erv RNXVQcopSexoZJ4EPLkaDs+ozr+luJwXCkpcgamXzM/MdYCOWZmotuilo/ouunNd2qjw gFSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=x0WkbtRSug5KygkEOcSY00slsWucZ8pGUhHWfcZvJLw=; b=c/yLt/wvxweuzQzaJOPNEkLpOicWHS+LozypCKu9P1b1fQGgF3rWSYfCEE9keFKg6T I7qjJvg43juW/vGFAVCu1/H90V2Pg3SoxWAdNwbLcgm8/EQjuZyKYdE/JuyCH3jrLfRb rdSmbnAG5V/LFDtJ6HtGZbCnFPE4MbIDsy6tQ0u3Ce2MBhVkBDJe62XzWVUiB7mDRE5n MBb+hLLH0C4594kZVtf9n9AXqtJHsL24Ue6Jg0DJMt3pfeL/zgOPBaGruPWup1N5YqD1 2hsZg/833wBDfB1FcreOpsrnzU+EmvskP8N7iikkt442iql/1+SH/nsxWw0Iak6rcfSY Y8QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XoJTI+h6; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id m18sor9109329pgd.7.2021.05.18.14.19.27 for (Google Transport Security); Tue, 18 May 2021 14:19:27 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XoJTI+h6; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x0WkbtRSug5KygkEOcSY00slsWucZ8pGUhHWfcZvJLw=; b=XoJTI+h6COw5nb4jNXCTBjTFUxOWTdZPBsDhW1Vf5td+5titolSU5hwv0P5QyvJ36G +86v7ei0+4gD2Gm6e36pye7sr3DWPDnoF+3e57cxlVxRb/ij4tTdNGoGQcoHR0VmQmFB tTRcMD7Qxn4jPS6/sUFRfoDJc2iYEUEGZboioaT5lVKyiMrACIGwlYDlCzlynSbEEvMc bGKqmeGo/ICR02ASBae5INu4+FrYCZ4tw1xSz2W8DZtry+lL/4gCZBAqb8CAaRD+feb7 /asuJN5NVOjHTir3u8XDI0jW0ewNgV8zxqTKWm+RCha+SxkufsoiuCeD9LIfeLnDMaEE YjQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x0WkbtRSug5KygkEOcSY00slsWucZ8pGUhHWfcZvJLw=; b=QIsrjMP2uvUIr4FfGOyx91yhCT50WoFN3o1dMbeEfYOhGf6oby3KdLp1omSm8xmdEe 9bbZmYGVwFZWTPkqpMUUskZxMlyYB+IwDd5MyghqygZ9YAnfZ5qe941/ks2jlUHUoNaY eAh0AHAskBxhyskfxhpgFtZa8lrqewmNxPSFluLjwWgIOqdFPI6Fim70iWsjbnOR2KiC 4Gz9wf1YWKBlYL6ydu3JZvTVaoOiutlJTuzBEQs0yYMfqfasSEtPl+DEPWjIPRtNPiik 8+uHyEexCyxd2Je02tG6rEN4PAig3M31ItUkPiW+ac+YbUrKCsQGrhiuakY1pxwnG1lJ lVrg== X-Gm-Message-State: AOAM533hc4xwSOzSmLuE9gvws6UvgrEGv58nhVolSGU5U4HS9PHmXHQ9 3dAdMMmTETbGB5lJAsrIuueQb7tZ X-Google-Smtp-Source: ABdhPJxHzgg/sDP+AXuLGVUb+sszrOlNtS/1ESyTlJlqL+kEGm+M9oruAN8GSnqVJZjl79LXwnDIqg== X-Received: by 2002:a63:f40e:: with SMTP id g14mr7070371pgi.402.1621372766908; Tue, 18 May 2021 14:19:26 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id g89sm2587199pjg.30.2021.05.18.14.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 14:19:26 -0700 (PDT) From: John Stultz To: lkml Cc: Saravana Kannan , Andy Gross , Bjorn Andersson , Joerg Roedel , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Maulik Shah , Lina Iyer , Todd Kjos , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, iommu@lists.linux-foundation.org, linux-gpio@vger.kernel.org, John Stultz Subject: [PATCH 1/2] irqchip/qcom-pdc: Switch to IRQCHIP_PLATFORM_DRIVER and allow as a module Date: Tue, 18 May 2021 21:19:21 +0000 Message-Id: <20210518211922.3474368-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 From: Saravana Kannan This patch revives changes from Saravana Kannan to switch the qcom-pdc driver to use IRQCHIP_PLATFORM_DRIVER helper macros, and allows qcom-pdc driver to be loaded as a permanent module. Earlier attempts at this ran into trouble with loading dependencies, but with Saravana's fw_devlink=on set by default now we should avoid those. Cc: Andy Gross Cc: Bjorn Andersson Cc: Joerg Roedel Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Linus Walleij Cc: Maulik Shah Cc: Lina Iyer Cc: Saravana Kannan Cc: Todd Kjos Cc: Greg Kroah-Hartman Cc: linux-arm-msm@vger.kernel.org Cc: iommu@lists.linux-foundation.org Cc: linux-gpio@vger.kernel.org Signed-off-by: Saravana Kannan [jstultz: Folded in with my changes to allow the driver to be loadable as a permenent module] Signed-off-by: John Stultz --- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/qcom-pdc.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index b90e825df7e14..d4a0b4964ccc5 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -415,7 +415,7 @@ config GOLDFISH_PIC for Goldfish based virtual platforms. config QCOM_PDC - bool "QCOM PDC" + tristate "QCOM PDC" depends on ARCH_QCOM select IRQ_DOMAIN_HIERARCHY help diff --git a/drivers/irqchip/qcom-pdc.c b/drivers/irqchip/qcom-pdc.c index 5dc63c20b67ea..32d59202d408d 100644 --- a/drivers/irqchip/qcom-pdc.c +++ b/drivers/irqchip/qcom-pdc.c @@ -11,9 +11,11 @@ #include #include #include +#include #include #include #include +#include #include #include #include @@ -459,4 +461,8 @@ static int qcom_pdc_init(struct device_node *node, struct device_node *parent) return ret; } -IRQCHIP_DECLARE(qcom_pdc, "qcom,pdc", qcom_pdc_init); +IRQCHIP_PLATFORM_DRIVER_BEGIN(qcom_pdc) +IRQCHIP_MATCH("qcom,pdc", qcom_pdc_init) +IRQCHIP_PLATFORM_DRIVER_END(qcom_pdc) +MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Power Domain Controller"); +MODULE_LICENSE("GPL v2");