From patchwork Mon Sep 14 21:04:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 303949 Delivered-To: patches@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp1955215ilg; Mon, 14 Sep 2020 14:04:35 -0700 (PDT) X-Received: by 2002:a63:ff01:: with SMTP id k1mr12478004pgi.141.1600117475700; Mon, 14 Sep 2020 14:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600117475; cv=none; d=google.com; s=arc-20160816; b=oofnV7QiJWzMGj26qPky+0q6qdi96XaMMG0triDiX/YwlZvTEJz7QQuR3SrWRZ5bdV hlpHAaaxWz9lM0WEVcslEnwnqo3mAG9gawgCtpJdCxVM3GM0uKuG0iamPNLPj2ioN220 fbQYWsKhm4hmGD/hiU6Ai9+LcoYR4c8MS+oVewdQSzPfBHxAyWqYoZTbak2tq+RQq6Dt wzc6AzxKc7vHfA6TAu/Dfk8bsRzEeZ2IHUsbZgXNrixdHqqHgDUuL/R8GrC5xd2D0nhX vbRHXFrE4Fa2QFSRfA3K24ABRIGKxQNCdHzHM1ZqQdzxGCsDB8dVrcu8XwDmkkhHSQA7 BdtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=B+yZcshbsoNrjw9/GyoZ6sfB8u3DeY+uiG54+fPG2CA=; b=0/xgf9AQCwp8eA4O5M28FJYasdOtjukMfu17RhhrPFHOh/aQc322v4OKOHWx0JyCso BHxJefneydTEyDOxUtpHWzYwZJfaoFxfcVmkiCVC8sXWdMks2MxIFTg/XR/OSTrIw9CJ ViV01YC7ndeg/6IYAUgGKwdS0O0yuAh6/1xpHAcByjk+IIeJfA6C+eNDFryLo56+qpG4 5eunotcGnpZ7657j+VHOSe8g39sOENPVhhMZqmwxkyOMT48S0P905cng5kVcaWds6fWo pTJnSFx+M0UdJ6iPzOmOtylDdY69mdljbatOgZTNLBfBzC/uLSTIGWHuovhadNOYY7bD 7p6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QIZLLxWu; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 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-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id bg9sor4726060pjb.5.2020.09.14.14.04.35 for (Google Transport Security); Mon, 14 Sep 2020 14:04:35 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QIZLLxWu; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 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:in-reply-to:references; bh=B+yZcshbsoNrjw9/GyoZ6sfB8u3DeY+uiG54+fPG2CA=; b=QIZLLxWuhPfcEVva2nJ767qbObasCjM9V8Jb31/dgJYJjdusHNi8YJsv5gLnNFQ7Yc rLHu37Wddk1sIpLHa0uP3I2h9zA71vHPOqj0TBgvBDuJtNcIpUFN3mpmixq4QM8rTCJd 5RQ6lPaeIlVGNC4K+e1WheYhHnFTvAshW+15lTv/zvbez9g3zYXzhh8MmXmOP/82L8EE Kf9PqYHd0cb8gb3Y/GDOZ4tGCV6XOqLSlkPmMblYk+Rl4KQkPGqxbCFqXTzaLci5PVLj WJx4XXmmmHz8fepTSyu12BiVF7duEd/kPijfysMl56mAUi9m8XaYBKLjFDMSCx0duFR3 9e9A== 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:in-reply-to :references; bh=B+yZcshbsoNrjw9/GyoZ6sfB8u3DeY+uiG54+fPG2CA=; b=Qk9hMkuAc+de+xl5QU9SZBs906aL8xVink1Q91LVbTjxBX5c25329BH5BAAeih5N/S 2zgQYNJzWKXVXJ5rwrHpKXrD1b4CZCASJ2gjQPzjrY2R5yxTPbHgzNxx3WNirK5AKwaM ng05C8I17ZROlvB8Ww2yM74FJpasKXzL2KLRjuAtHbtjLfawytnqP+2MNLEmwTFY1dHn ZDCbQAgR2b8VmHWWS+fxU5RrnEov+J2+SzLH2AELs+QhwXvATLqR83cBI5nKOmf06TJ/ kZen29oyiEOhBIeGdWxHNyFL8qfVAu+4++Qd3zQHqK8LGmQShFe3rIxwW5Qw0MoItmNW GtMg== X-Gm-Message-State: AOAM533RMzRCsm9RHUmyXJWP5G3C6r2ifBUsonNpD9ng9tPg1CTOt7VA 8/lLiUSKkbfLG7kCx5j29FjS+eBx X-Google-Smtp-Source: ABdhPJw4meDLhT1GWDTqYGlWuh5s5sZygb+syXL21fk3JYEchsaLbg8+bnuLLk7x6vlu2XvHtk24cQ== X-Received: by 2002:a17:90a:e513:: with SMTP id t19mr1080297pjy.137.1600117475340; Mon, 14 Sep 2020 14:04:35 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id n9sm11222480pfu.163.2020.09.14.14.04.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 14:04:34 -0700 (PDT) From: John Stultz To: linux-kernel@vger.kernel.org Cc: John Stultz , Andy Gross , Bjorn Andersson , Joerg Roedel , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij , Maulik Shah , Lina Iyer , Saravana Kannan , Todd Kjos , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, iommu@lists.linux-foundation.org, linux-gpio@vger.kernel.org Subject: [PATCH] irqchip/qcom-pdc: Allow QCOM_PDC to be loadable as a permanent module Date: Mon, 14 Sep 2020 21:04:23 +0000 Message-Id: <20200914210423.67579-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200912125148.1271481-7-maz@kernel.org> References: <20200912125148.1271481-7-maz@kernel.org> Allows qcom-pdc driver to be loaded as a permanent module. An earlier version of this patch was merged in a larger patchset but was reverted entirely when issues were found with other drivers, so now that Marc has provided a better solution in his Hybrid probing patch set, I wanted to re-submit this change. 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: John Stultz --- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/qcom-pdc.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index bfc9719dbcdc..bb70b7177f94 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -425,7 +425,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 8543fa23da10..59eb3c8473b0 100644 --- a/drivers/irqchip/qcom-pdc.c +++ b/drivers/irqchip/qcom-pdc.c @@ -433,3 +433,5 @@ static int qcom_pdc_init(struct device_node *node, struct device_node *parent) IRQCHIP_HYBRID_DRIVER_BEGIN(qcom_pdc) IRQCHIP_MATCH("qcom,pdc", qcom_pdc_init) IRQCHIP_HYBRID_DRIVER_END(qcom_pdc) +MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Power Domain Controller"); +MODULE_LICENSE("GPL v2");