Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp110185pxa; Wed, 26 Aug 2020 18:59:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAHIHw4DMGaZYJUdGLBwsJeM+q3/B2KVJKqFwy7GkHHCxSiN6WiotR+yh5gr35YgJiC/ho X-Received: by 2002:a17:906:158a:: with SMTP id k10mr5649479ejd.174.1598493595792; Wed, 26 Aug 2020 18:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598493595; cv=none; d=google.com; s=arc-20160816; b=EXeQWG2fBmtGnevbc6J41SDW+AUZJzcDAnHldKI1MiiFyjgV8yJXU/CxcmUtMWbAAt QwjRcGS2mjd47tUViNvrK9lihxNetEmdWnRH+wOHlwNZciGPIAXEnkj79aFMAuH99XMT ezbw2rfFmUz8JrEjkeVdBtFiV2YW6f3GrRKXjPaM7L7fgMTJB0s7kJNY/bmdXZwU6hb9 mc/8XldL8hXQgqrCRN8DXBFP37rFQpYWaO2vznj4b8HyU2kwyCR6cdP2lVpM7VTlnHZ8 S+MAus+oR3qHFHiPRieqGWada6Ho+GSf8CAe5o3Httpzz3U6t8eXwCfSEooVW5BQPfIg ajvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0gucHHi4ZHmdafDVfQXe+GXJ/XgXdpwzf5ZqQu5NL/k=; b=I59IgFyOj7rFxDjwGmz3hjgIyhjxPws/3fepTipzqmAoche9xqnKHHiRFKro3DtQGu iHiYNP4mLST0whn8/zcywL9YExkXLB9mwVbFW9Z/l1Wxww8HqQUrk/f6kE0ciC5MK6m+ Vf9IbiNvoYu2aUtvcoEc+4G++kMPbomSLdij2PyMaGjeyLOv4IOxRewFB16ajpV02KcY Qth7snvi4uM/PyFUQlVALyX79ZvywuizAJCikmgagwXWUFcyumsYVMTt/AkKNyxhWAKn wtdOAA0NJTFTpDrvly/I1bm1DhtwQaQDKlqCRT5zHLQn8bg4NHTbB98E7l6azNAmxsxw zqbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YbsZjk6v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pg3si390013ejb.388.2020.08.26.18.59.33; Wed, 26 Aug 2020 18:59:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YbsZjk6v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727124AbgH0B6t (ORCPT + 99 others); Wed, 26 Aug 2020 21:58:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727053AbgH0B63 (ORCPT ); Wed, 26 Aug 2020 21:58:29 -0400 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DB78C061364 for ; Wed, 26 Aug 2020 18:58:28 -0700 (PDT) Received: by mail-oi1-x244.google.com with SMTP id u24so3325346oic.7 for ; Wed, 26 Aug 2020 18:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0gucHHi4ZHmdafDVfQXe+GXJ/XgXdpwzf5ZqQu5NL/k=; b=YbsZjk6v9g9Xa9eZaY0SvPFg6XfNVVF3igAoxgS6YrqjRJOWWmDUcMGFqPqg1DH8QI 63RMGT/RdmKbLmQSo3npyAcapZJCrEb8BSwdBOcfDzZ6g/L5CPTqWIzCimTTUSsYY01a rBxdfZc9wFI731j4Ef1onoyunl8aw7pCIFLetDWbh8QbeH/svPSFZMeiv/rl25xTR5Hn zKSzYmnNhfZiDMhH8ygB8CAg3sW4/Z43OFBkHRaeGfCDVJY+9uyR/d64I/3jh0ncf5nL I7tY2Lr7rHbtXx3kgi2KScHPcaQKcw3i5JB+Di6/zyOqkx1YZqpxBqbVQFWHj2+Y59qJ paiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0gucHHi4ZHmdafDVfQXe+GXJ/XgXdpwzf5ZqQu5NL/k=; b=fSQYvRVqAGMvzE/vWJRJ/0PApD8CErxgKz1DfSogOooTBAKnh5RHVasxliDRVVvFxi NaDMMg1vduAhX1/hIfzANYTAowN/y2t2zq0/HS41DXGpT0Y0RpQyKpM1b+TznBbsJSne K6/5ZSxV94x3Oeci2amkMiR3p4v/0HqY8fA52TsLlHft48hg79PLSAfsoyAqcYXV7tD8 L4cCuhSdZlcJj+/nFO8GwQ9XtcxXE1W8KuZCiZGzcV1hIaWxk9j4nxt4/m6l9MkAkDe7 KKA6WhWzIhL9P/eS0XXpEsy1J3IcUkJJlZL6l5AVmxcSaGaz6aNVmX9TXbN9K5YEEGpJ qaRA== X-Gm-Message-State: AOAM532Iy3+hQ/vAmwJ42X3we68/gvsyKcPkPsASwvCC+V0ZEll7IMkF QLG1eG6f3AR5HT0VWMUK2mz+0w== X-Received: by 2002:aca:5bc6:: with SMTP id p189mr5356770oib.130.1598493507642; Wed, 26 Aug 2020 18:58:27 -0700 (PDT) Received: from yoga ([2605:6000:e5cb:c100:8898:14ff:fe6d:34e]) by smtp.gmail.com with ESMTPSA id l6sm185018otd.20.2020.08.26.18.58.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 18:58:26 -0700 (PDT) Date: Wed, 26 Aug 2020 20:58:24 -0500 From: Bjorn Andersson To: Maulik Shah Cc: andy.gross@linaro.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, ulf.hansson@linaro.org, swboyd@chromium.org, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, John Stultz , Todd Kjos , Saravana Kannan , Andy Gross Subject: Re: [PATCH v2 2/2] soc: qcom: rpmh: Allow RPMH driver to be loaded as a module Message-ID: <20200827015824.GH3715@yoga> References: <1598354482-15491-1-git-send-email-mkshah@codeaurora.org> <1598354482-15491-3-git-send-email-mkshah@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1598354482-15491-3-git-send-email-mkshah@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 25 Aug 06:21 CDT 2020, Maulik Shah wrote: > From: John Stultz > > This patch allow the rpmh driver to be loaded as a permenent > module. Meaning it can be loaded from a module, but then cannot > be unloaded. > > Ideally, it would include a remove hook and related logic, but > the rpmh driver is fairly core to the system, so once its loaded > with almost anything else to get the system to go, the dependencies > are not likely to ever also be removed. > > So making it a permanent module at least improves things slightly > over requiring it to be a built in driver. > > Cc: Todd Kjos > Cc: Saravana Kannan > Cc: Andy Gross > Cc: Bjorn Andersson > Cc: Rajendra Nayak > Cc: linux-arm-msm@vger.kernel.org > Signed-off-by: John Stultz > Signed-off-by: Bjorn Andersson > [mkshah: Fix typos in commit message, send after removing _rcuidle trace] > Signed-off-by: Maulik Shah Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/soc/qcom/Kconfig | 2 +- > drivers/soc/qcom/rpmh-rsc.c | 5 +++++ > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig > index 3dc3e3d..892bdc7 100644 > --- a/drivers/soc/qcom/Kconfig > +++ b/drivers/soc/qcom/Kconfig > @@ -92,7 +92,7 @@ config QCOM_RMTFS_MEM > Say y here if you intend to boot the modem remoteproc. > > config QCOM_RPMH > - bool "Qualcomm RPM-Hardened (RPMH) Communication" > + tristate "Qualcomm RPM-Hardened (RPMH) Communication" > depends on ARCH_QCOM || COMPILE_TEST > help > Support for communication with the hardened-RPM blocks in > diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c > index fabe390d..5fce87c 100644 > --- a/drivers/soc/qcom/rpmh-rsc.c > +++ b/drivers/soc/qcom/rpmh-rsc.c > @@ -13,6 +13,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -1025,6 +1026,7 @@ static const struct of_device_id rpmh_drv_match[] = { > { .compatible = "qcom,rpmh-rsc", }, > { } > }; > +MODULE_DEVICE_TABLE(of, rpmh_drv_match); > > static struct platform_driver rpmh_driver = { > .probe = rpmh_rsc_probe, > @@ -1040,3 +1042,6 @@ static int __init rpmh_driver_init(void) > return platform_driver_register(&rpmh_driver); > } > arch_initcall(rpmh_driver_init); > + > +MODULE_DESCRIPTION("Qualcomm Technologies, Inc. RPMh Driver"); > +MODULE_LICENSE("GPL v2"); > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >