Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1632286
| From | Jon Mason <jon.mason@broadcom.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal driver |
| Date | 2017-04-27 19:50 +0200 |
| Message-ID | <tAVIe-3OA-13@gated-at.bofh.it> (permalink) |
| References | <tAfzk-14W-35@gated-at.bofh.it> <tAfIZ-18d-13@gated-at.bofh.it> <tAUCu-3ai-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Apr 27, 2017 at 12:37 PM, Eduardo Valentin <edubezval@gmail.com> wrote: > Hey Jason, It's Jon :) > > On Tue, Apr 25, 2017 at 04:49:10PM -0400, Jon Mason wrote: >> Change the iProc Kconfig to select THERMAL and THERMAL_OF, which allows >> the ns-thermal driver to be selected via menuconfig. Also, change the >> ns-thermal driver to work on any iProc based SoC. Finally, tweak the >> Kconfig description to mention support for NSP and make the default on >> for iProc based platforms. > > > Thanks for the patch, but.. >> >> Signed-off-by: Jon Mason <jon.mason@broadcom.com> >> --- >> arch/arm/mach-bcm/Kconfig | 2 ++ >> drivers/thermal/broadcom/Kconfig | 9 +++++---- >> 2 files changed, 7 insertions(+), 4 deletions(-) >> >> diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig >> index a0e66d8..da2bfeb 100644 >> --- a/arch/arm/mach-bcm/Kconfig >> +++ b/arch/arm/mach-bcm/Kconfig >> @@ -19,6 +19,8 @@ config ARCH_BCM_IPROC >> select GPIOLIB >> select ARM_AMBA >> select PINCTRL >> + select THERMAL >> + select THERMAL_OF >> help >> This enables support for systems based on Broadcom IPROC architected SoCs. >> The IPROC complex contains one or more ARM CPUs along with common > > It would be better if this is split and sent through your arch tree, to > avoid conflicts. I could also pick it if you get an ack from one of your > maintainers. Still, first option is preferable. Sure, I'll be happy to split this off. I should've thought to split it up before sending. Thanks for the suggestion. > >> diff --git a/drivers/thermal/broadcom/Kconfig b/drivers/thermal/broadcom/Kconfig >> index f0dea8a..26d706c 100644 >> --- a/drivers/thermal/broadcom/Kconfig >> +++ b/drivers/thermal/broadcom/Kconfig >> @@ -1,8 +1,9 @@ >> config BCM_NS_THERMAL >> tristate "Northstar thermal driver" >> depends on ARCH_BCM_IPROC || COMPILE_TEST >> + default ARCH_BCM_IPROC > > Not sure if this is really what you wanted. Based on your commit log > message, you meant the following, perhaps? > > + default y if ARCH_BCM_IPROC IIUC, my original default works, as we have used it frequently in other places in the kernel. grep -rI "default ARCH_BCM_IPROC" * | wc -l 15 However, if the above is preferred (or the other 15 massively broken), I'll be happy to do it that way. >> help >> - Northstar is a family of SoCs that includes e.g. BCM4708, BCM47081, >> - BCM4709 and BCM47094. It contains DMU (Device Management Unit) block >> - with a thermal sensor that allows checking CPU temperature. This >> - driver provides support for it. >> + Support for the Northstar and Northstar Plus family of SoCs (e.g. >> + BCM4708, BCM4709, BCM5301x, BCM95852X, etc). It contains DMU (Device > > Did we look BCM47094 somehow on this patch? Naa, just trying to be more concise, while adding the NSP products to the list.. BCM47094 is a type of BCM4709. So, it is still there :) > >> + Management Unit) block with a thermal sensor that allows checking CPU >> + temperature. >> -- >> 2.7.4 >>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] thermal: broadcom: Add NSP Thermal Support Jon Mason <jon.mason@broadcom.com> - 2017-04-25 22:50 +0200
[PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal driver Jon Mason <jon.mason@broadcom.com> - 2017-04-25 23:00 +0200
Re: [PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal driver Eduardo Valentin <edubezval@gmail.com> - 2017-04-27 18:40 +0200
Re: [PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal driver Jon Mason <jon.mason@broadcom.com> - 2017-04-27 19:50 +0200
Re: [PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal driver Eduardo Valentin <edubezval@gmail.com> - 2017-04-28 15:10 +0200
Re: [PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal driver Jon Mason <jon.mason@broadcom.com> - 2017-04-28 20:10 +0200
[PATCH 2/2] ARM: dts: NSP: Add Thermal Support Jon Mason <jon.mason@broadcom.com> - 2017-04-25 23:00 +0200
Re: [PATCH 2/2] ARM: dts: NSP: Add Thermal Support Eduardo Valentin <edubezval@gmail.com> - 2017-04-27 18:40 +0200
csiph-web