Re: [PATCH 1/5] cpufreq: loongson3: Make this drvier depend on MACH_LOONGSON64
Huacai Chen <[email protected]>
| Newsgroups | dev.linux.lists.loongarch,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm,org.kernel.vger.stable |
|---|---|
| Message-ID | <CAAhV-H6c5Ys8uF41UDC9b6u_856D1QW-iDRwP+XzfXr93R83Qg@mail.gmail.com> |
Hi, Zhongqiu, On Thu, Aug 20, 2026 at 5:23 PM Zhongqiu Han <[email protected]> wrote: > > Hello Huacai, > Just share a few inline comments/questions below: > > On 8/18/2026 8:39 PM, Huacai Chen wrote: > > 32BIT Loongson machines don't have SMC and FreqCtrl registers, so make > > this drvier depend on MACH_LOONGSON64. > > Typo --> driver? Likewise the subject. Yes, thank you very much. > > > > > Cc: [email protected] > > Nit, it is better to add fixes tag? For example: > > ccf51454145b ("cpufreq: Add Loongson-3 CPUFreq driver support") OK, I will add it. > > > Signed-off-by: Huacai Chen <[email protected]> > > --- > > drivers/cpufreq/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig > > index db83f3365698..edc1299098d4 100644 > > --- a/drivers/cpufreq/Kconfig > > +++ b/drivers/cpufreq/Kconfig > > @@ -288,6 +288,7 @@ endif > > if LOONGARCH > > config LOONGSON3_CPUFREQ > > tristate "Loongson3 CPUFreq Driver" > > + depends on MACH_LOONGSON64 > > Small nit: > > Please feel free to correct me. > > There are two MACH_LOONGSON64 symbols in the tree: > arch/loongarch/Kconfig: config MACH_LOONGSON64 > def_bool 64BIT > > arch/mips/Kconfig: config MACH_LOONGSON64 > bool "Loongson 64-bit family of > machines" > select ... > > The one that actually applies here is the LoongArch one, i.e. this is > really just "depends on 64BIT". Since drivers/cpufreq/Kconfig is a > shared file that also contains an "if MIPS" block, please at least > is it better to mention it in the changelog which MACH_LOONGSON64 is > using, because the LoongArch one has no prompt and is therefore > invisible in menuconfig. Or just write "depends on 64BIT"? Hmmm, in theory MIPS-based Loongson3 can also use this driver, because it also has SMC and FreqCtrl registers. But we haven't tested MIPS. Anyway, I will improve the commit message, but keep the code as is. > > > > help > > This option adds a CPUFreq driver for Loongson processors which > > support software configurable cpu frequency. > > > -- > Thx and BRs, > Zhongqiu Han