mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bjorn Andersson <andersson@kernel.org>
To: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
	devicetree@vger.kernel.org, agross@kernel.org,
	linux-arm-msm@vger.kernel.org, daniel.lezcano@linaro.org,
	robh@kernel.org, rafael@kernel.org, bhupesh.linux@gmail.com
Subject: Re: [PATCH 2/4] thermal: qcom: Add Kconfig entry & compilation support for qmi cooling driver
Date: Tue, 13 Sep 2022 13:53:36 -0500	[thread overview]
Message-ID: <20220913185336.zbe3633yulm65og6@builder.lan> (raw)
In-Reply-To: <20220912085049.3517140-3-bhupesh.sharma@linaro.org>

On Mon, Sep 12, 2022 at 02:20:47PM +0530, Bhupesh Sharma wrote:
> Add Kconfig entry & compilation support for Qualcomm qmi cooling driver.
> 

There's no reason for introducing this in a separate patch...

> Cc: daniel.lezcano@linaro.org
> Cc: rafael@kernel.org
> Cc: andersson@kernel.org
> Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
> ---
>  drivers/thermal/qcom/Kconfig              |  4 ++++
>  drivers/thermal/qcom/Makefile             |  2 ++
>  drivers/thermal/qcom/qmi_cooling/Kconfig  | 14 ++++++++++++++
>  drivers/thermal/qcom/qmi_cooling/Makefile |  3 +++
>  4 files changed, 23 insertions(+)
>  create mode 100644 drivers/thermal/qcom/qmi_cooling/Kconfig
>  create mode 100644 drivers/thermal/qcom/qmi_cooling/Makefile
> 
> diff --git a/drivers/thermal/qcom/Kconfig b/drivers/thermal/qcom/Kconfig
> index ccfd090273c1..d383b2cf4c7f 100644
> --- a/drivers/thermal/qcom/Kconfig
> +++ b/drivers/thermal/qcom/Kconfig
> @@ -53,3 +53,7 @@ config QCOM_LMH
>  	  input from temperature and current sensors.  On many newer Qualcomm SoCs
>  	  LMh is configured in the firmware and this feature need not be enabled.
>  	  However, on certain SoCs like sdm845 LMh has to be configured from kernel.
> +
> +menu "Qualcomm QMI cooling drivers"
> +source "drivers/thermal/qcom/qmi_cooling/Kconfig"

...except for the fact that I missed that you put the new driver in a
new directory, with new Kconfig menu etc.

Please just name your files appropriately and put them in
drivers/thermal/qcom directly.

Regards,
Bjorn

> +endmenu
> diff --git a/drivers/thermal/qcom/Makefile b/drivers/thermal/qcom/Makefile
> index 0fa2512042e7..61114129827a 100644
> --- a/drivers/thermal/qcom/Makefile
> +++ b/drivers/thermal/qcom/Makefile
> @@ -1,4 +1,6 @@
>  # SPDX-License-Identifier: GPL-2.0-only
> +obj-$(CONFIG_QCOM_QMI_COOLING)	+= qmi_cooling/
> +
>  obj-$(CONFIG_QCOM_TSENS)	+= qcom_tsens.o
>  
>  qcom_tsens-y			+= tsens.o tsens-v2.o tsens-v1.o tsens-v0_1.o \
> diff --git a/drivers/thermal/qcom/qmi_cooling/Kconfig b/drivers/thermal/qcom/qmi_cooling/Kconfig
> new file mode 100644
> index 000000000000..96488181cd5f
> --- /dev/null
> +++ b/drivers/thermal/qcom/qmi_cooling/Kconfig
> @@ -0,0 +1,14 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +
> +config QCOM_QMI_COOLING
> +	tristate "Qualcomm QMI cooling drivers"
> +	depends on QCOM_RPROC_COMMON
> +	depends on ARCH_QCOM || COMPILE_TEST
> +	select QCOM_QMI_HELPERS
> +	help
> +	   This enables the remote subsystem cooling devices. These cooling
> +	   devices will be used by Qualcomm chipset to place various remote
> +	   subsystem mitigations like remote processor passive mitigation,
> +	   remote subsystem voltage restriction at low temperatures etc.
> +	   The QMI cooling device will interface with remote subsystem
> +	   using Qualcomm remoteproc interface.
> diff --git a/drivers/thermal/qcom/qmi_cooling/Makefile b/drivers/thermal/qcom/qmi_cooling/Makefile
> new file mode 100644
> index 000000000000..ea6cb3c8adb0
> --- /dev/null
> +++ b/drivers/thermal/qcom/qmi_cooling/Makefile
> @@ -0,0 +1,3 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +obj-$(CONFIG_QCOM_QMI_COOLING)	+= qcom_cooling.o
> +qcom_cooling-y			+= qcom_tmd_services.o qcom_qmi_cooling.o
> -- 
> 2.37.1
> 

  reply	other threads:[~2022-09-13 18:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-12  8:50 [PATCH 0/4] thermal: Introduce Qualcomm Cooling Driver suppport Bhupesh Sharma
2022-09-12  8:50 ` [PATCH 1/4] thermal: qcom: qmi_cooling: Add skeletal qmi cooling driver Bhupesh Sharma
2022-09-12 21:23   ` Jeff Johnson
2022-09-13 15:39     ` Bjorn Andersson
2022-09-13 18:42   ` Bjorn Andersson
2022-09-12  8:50 ` [PATCH 2/4] thermal: qcom: Add Kconfig entry & compilation support for " Bhupesh Sharma
2022-09-13 18:53   ` Bjorn Andersson [this message]
2022-09-12  8:50 ` [PATCH 3/4] dt-bindings: thermal: Add qcom,qmi-tmd-device and qcom,tmd-device yaml bindings Bhupesh Sharma
2022-09-12 15:38   ` Rob Herring
2022-09-12 15:58   ` Rob Herring
2022-09-13 19:10   ` Bjorn Andersson
2022-10-28 16:58   ` Krzysztof Kozlowski
2022-09-12  8:50 ` [PATCH 4/4] MAINTAINERS: Add entry for Qualcomm Cooling Driver Bhupesh Sharma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220913185336.zbe3633yulm65og6@builder.lan \
    --to=andersson@kernel.org \
    --cc=agross@kernel.org \
    --cc=bhupesh.linux@gmail.com \
    --cc=bhupesh.sharma@linaro.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®