From patchwork Thu Mar 5 05:42:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 184176 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp5754992ile; Wed, 4 Mar 2020 21:42:51 -0800 (PST) X-Received: by 2002:a65:6495:: with SMTP id e21mr4101236pgv.420.1583386971427; Wed, 04 Mar 2020 21:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583386971; cv=none; d=google.com; s=arc-20160816; b=IKYBGPh4m9XFCOLFx52NkjTS8YHYZdVdc8qx9tIUByXsduh/39hojF+ftrbGGwtsWL BqIe0z00J7oY+ryMNaQPCq2rUQlIq8RVv5SXW3Jp+LmFCpOD9MGms0BZj4IwomYFLtR8 GJIYfg+wV6AxLs/wb9tX5GRwGYeq6pYda8b5q4FVbV2rS1gLeLuAzzW/W+ifKSN1tg9Q kvIMHqcrzOvXWEa6PeYiUJ68fTFa0epRABYv6Ua7rsLle6/3Qvp+dftwAskzw8LnYbxa qmri8IGnJvpKs6iv6rA/V101MGiaOs1PyBt8TOd3gUtfLToBIGyjsH+OoK/Xzb+0F5iy Yj7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=cNQGrNZI2YLBUBgRppVQ1AFH/YzUKaKdzB/7ZzNdnn8=; b=mVQtPDIvxQkZdhZf3yxEAVdsveeDlJTlCEN62J1ZQZZEBvgm4XIh2/H7ZzEACklOIb tcMhi92qH3QCbC8s5lu2nRPlHW3rW39gz3N3P77ptoM2JBI5yS3Dp409dS8tssd5Updb Ue7zW6qJGbcnuauDZvmk3ZUJNcNep9KT6cPd9L7++eX3G4ihMGQnQsEUA7EyYh77i6cI ZLXuFmL2JjvXWnYFv6ygdoneXUJeR1nW7O4MDOiifHpLZPERIQK1PucaV6Jvvny0lbj3 O1IllD9PNnST5iVvMLskvuFJQVm5U9a0QfvWDODQEZg9WJVEDAGmPMTqGhfuVCPRgWpD ZwEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=neFlY3Az; 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 u5sor5087521pfm.55.2020.03.04.21.42.51 for (Google Transport Security); Wed, 04 Mar 2020 21:42:51 -0800 (PST) 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=neFlY3Az; 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; bh=cNQGrNZI2YLBUBgRppVQ1AFH/YzUKaKdzB/7ZzNdnn8=; b=neFlY3AzXQwk38I3fCwFvt5ea+6QcafBvcuXUQgf6wn1h9Fmksg+lwGVKtbXUdFpbD iFrEvVLJ/nqm6IVqw2M5/CBrwEwFT94PjdZvxzC4JVTewsKmQokKrRj2IesC0+TfNwxZ D2c7SVFaLJaNIbTfn/sTDXldlYxLgmUzHjZhrpNjINbtV+y6ydgeH3ht+VB7S5wiDGIh VoKXTeRH9KSswYCSw7P7clX+pqRm+m+MKtHDg65bPZ0FItepMfaNvZzlthJfF/vtn6i5 kEm0pKmcN8BTcDjq8ABJ6Ts6CXGRI7C4hYuG6l0X9Y/orblbcgQ0GPzMEzCw+Z9DvHHp DBRA== 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; bh=cNQGrNZI2YLBUBgRppVQ1AFH/YzUKaKdzB/7ZzNdnn8=; b=hSYbnNzF5F/YjNVhBp+3/JTv1J1ByIHQoK8g1nVOkYC1T3kmZgLX90sc3OpYVcDxff /6NXlbDIWUHTU+MQHDfo1oPNOpw5kv3+rZYBeCtgm4xcMnDdPPV2ukGfWqSmqGxptcIR Y+mUP0ZRENM11+mRVQdAOmYqggHjKCrG/25/btCV+JyXXKTe3qr13BWLJIA0x/RRoNBa Plkfd6VRHoTXrA0qjVJ4Zx1amoHmhSjIUUQNC35VkkMqqQAEAwcfG49s7W9p9DwOkB3v C4pUD49mJsVcRIyoV3nkWZEGZ+fMr3juRz9BCm28Nhd2R7M+a3XnCMYiyKs5lrwgae/l YscQ== X-Gm-Message-State: ANhLgQ3rZUVyqxZC2wObAziEu+EvJ0XcIiNGmlAdjtKcMk5nY9Xsvvh8 bBCGy7R6tDwxYTzkk6EUECHsKOz8 X-Google-Smtp-Source: ADFU+vvzjkS9TGRcblpeqpN0ZPT+dotszbngZ5ty0l0O8K/HOOu6mUTWyw5dOp04GzZet7pPJd+gNA== X-Received: by 2002:a62:37c7:: with SMTP id e190mr6745679pfa.165.1583386970893; Wed, 04 Mar 2020 21:42:50 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id w17sm25177400pfg.33.2020.03.04.21.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2020 21:42:50 -0800 (PST) From: John Stultz To: lkml Cc: John Stultz , Todd Kjos , Saravana Kannan , Andy Gross , Bjorn Andersson , linux-arm-msm@vger.kernel.org Subject: [RFC][PATCH] soc: qcom: rpmpd: Allow RPMPD driver to be loaded as a module Date: Thu, 5 Mar 2020 05:42:44 +0000 Message-Id: <20200305054244.128950-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 Allow the rpmpd driver to be loaded as a module. Cc: Todd Kjos Cc: Saravana Kannan Cc: Andy Gross Cc: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org Signed-off-by: John Stultz --- drivers/soc/qcom/Kconfig | 4 ++-- drivers/soc/qcom/rpmpd.c | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index d0a73e76d563..af774555b9d2 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -123,8 +123,8 @@ config QCOM_RPMHPD for the voltage rail. config QCOM_RPMPD - bool "Qualcomm RPM Power domain driver" - depends on QCOM_SMD_RPM=y + tristate "Qualcomm RPM Power domain driver" + depends on QCOM_SMD_RPM help QCOM RPM Power domain driver to support power-domains with performance states. The driver communicates a performance state diff --git a/drivers/soc/qcom/rpmpd.c b/drivers/soc/qcom/rpmpd.c index 2b1834c5609a..9c0834913f3f 100644 --- a/drivers/soc/qcom/rpmpd.c +++ b/drivers/soc/qcom/rpmpd.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -226,6 +227,7 @@ static const struct of_device_id rpmpd_match_table[] = { { .compatible = "qcom,qcs404-rpmpd", .data = &qcs404_desc }, { } }; +MODULE_DEVICE_TABLE(of, rpmpd_match_table); static int rpmpd_send_enable(struct rpmpd *pd, bool enable) { @@ -421,4 +423,5 @@ static int __init rpmpd_init(void) { return platform_driver_register(&rpmpd_driver); } -core_initcall(rpmpd_init); +module_init(rpmpd_init); +MODULE_LICENSE("GPL");