mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] soc: qcom: Select REMAP_MMIO for ICC_BWMON driver
@ 2022-11-29  7:20 Manivannan Sadhasivam
  2022-11-29  7:40 ` Krzysztof Kozlowski
  2022-12-06 18:19 ` Bjorn Andersson
  0 siblings, 2 replies; 3+ messages in thread
From: Manivannan Sadhasivam @ 2022-11-29  7:20 UTC (permalink / raw)
  To: krzysztof.kozlowski, andersson
  Cc: konrad.dybcio, linux-arm-msm, linux-kernel,
	Manivannan Sadhasivam, stable

ICC_BWMON driver uses REGMAP_MMIO for accessing the hardware registers.
So select the dependency in Kconfig. Without this, there will be errors
while building the driver with COMPILE_TEST only:

ERROR: modpost: "__devm_regmap_init_mmio_clk" [drivers/soc/qcom/icc-bwmon.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:126: Module.symvers] Error 1
make: *** [Makefile:1944: modpost] Error 2

Cc: <stable@vger.kernel.org> # 6.0
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fixes: b9c2ae6cac40 ("soc: qcom: icc-bwmon: Add bandwidth monitoring driver")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 drivers/soc/qcom/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
index 024e420f1bb7..75bfdb6f9705 100644
--- a/drivers/soc/qcom/Kconfig
+++ b/drivers/soc/qcom/Kconfig
@@ -236,6 +236,7 @@ config QCOM_ICC_BWMON
 	tristate "QCOM Interconnect Bandwidth Monitor driver"
 	depends on ARCH_QCOM || COMPILE_TEST
 	select PM_OPP
+	select REGMAP_MMIO
 	help
 	  Sets up driver monitoring bandwidth on various interconnects and
 	  based on that voting for interconnect bandwidth, adjusting their
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] soc: qcom: Select REMAP_MMIO for ICC_BWMON driver
  2022-11-29  7:20 [PATCH] soc: qcom: Select REMAP_MMIO for ICC_BWMON driver Manivannan Sadhasivam
@ 2022-11-29  7:40 ` Krzysztof Kozlowski
  2022-12-06 18:19 ` Bjorn Andersson
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-29  7:40 UTC (permalink / raw)
  To: Manivannan Sadhasivam, andersson
  Cc: konrad.dybcio, linux-arm-msm, linux-kernel, stable

On 29/11/2022 08:20, Manivannan Sadhasivam wrote:
> ICC_BWMON driver uses REGMAP_MMIO for accessing the hardware registers.
> So select the dependency in Kconfig. Without this, there will be errors
> while building the driver with COMPILE_TEST only:
> 

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] soc: qcom: Select REMAP_MMIO for ICC_BWMON driver
  2022-11-29  7:20 [PATCH] soc: qcom: Select REMAP_MMIO for ICC_BWMON driver Manivannan Sadhasivam
  2022-11-29  7:40 ` Krzysztof Kozlowski
@ 2022-12-06 18:19 ` Bjorn Andersson
  1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2022-12-06 18:19 UTC (permalink / raw)
  To: krzysztof.kozlowski, Manivannan Sadhasivam
  Cc: konrad.dybcio, linux-arm-msm, linux-kernel, stable

On Tue, 29 Nov 2022 12:50:22 +0530, Manivannan Sadhasivam wrote:
> ICC_BWMON driver uses REGMAP_MMIO for accessing the hardware registers.
> So select the dependency in Kconfig. Without this, there will be errors
> while building the driver with COMPILE_TEST only:
> 
> ERROR: modpost: "__devm_regmap_init_mmio_clk" [drivers/soc/qcom/icc-bwmon.ko] undefined!
> make[1]: *** [scripts/Makefile.modpost:126: Module.symvers] Error 1
> make: *** [Makefile:1944: modpost] Error 2
> 
> [...]

Applied, thanks!

[1/1] soc: qcom: Select REMAP_MMIO for ICC_BWMON driver
      commit: a84160fbf4f2c8c5ffa588e19ea8f92eabd7ad17

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-06 18:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-29  7:20 [PATCH] soc: qcom: Select REMAP_MMIO for ICC_BWMON driver Manivannan Sadhasivam
2022-11-29  7:40 ` Krzysztof Kozlowski
2022-12-06 18:19 ` Bjorn Andersson

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®