[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <mhng-e3785c68-4fbc-49be-aaa1-40043bcc1cab@palmerdabbelt-glaptop1>
Date: Thu, 05 Nov 2020 10:54:03 -0800 (PST)
From: Palmer Dabbelt <palmer@...belt.com>
To: sboyd@...nel.org
CC: zong.li@...ive.com, aou@...s.berkeley.edu,
linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org, mturquette@...libre.com,
Paul Walmsley <paul.walmsley@...ive.com>, yash.shah@...ive.com,
zong.li@...ive.com
Subject: Re: [PATCH 2/4] clk: sifive: Use common name for prci configuration
On Wed, 04 Nov 2020 18:46:56 PST (-0800), sboyd@...nel.org wrote:
> Quoting Zong Li (2020-10-16 02:18:24)
>> Use generic name CLK_SIFIVE_PRCI instead of CLK_SIFIVE_FU540_PRCI. This
>> patch is prepared for fu740 support.
>>
>> Signed-off-by: Zong Li <zong.li@...ive.com>
>> ---
>
> Looks ok but needs an ack from riscv maintainers to go through clk
> tree. I was worried it would break defconfigs but it seems that the arch
> selects the config so this should be OK, right?
Ya, looks fine. TBH the whole Kconfig.socs thing was probably a mistake, but
at least in this case it makes things easy.
I was going to suggest spliting the Kconfigs out so there's a _FU540_PRCI and
an _FU740_PRCI, but looking at the code it doesn't really seem to buy us much
-- just that one offset table we could toss.
Reviewed-by: Palmer Dabbelt <palmerdabbelt@...gle.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@...gle.com>
>> arch/riscv/Kconfig.socs | 2 +-
>> drivers/clk/sifive/Kconfig | 6 +++---
>> drivers/clk/sifive/Makefile | 2 +-
>> 3 files changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs
>> index 8a55f6156661..3284d5c291be 100644
>> --- a/arch/riscv/Kconfig.socs
>> +++ b/arch/riscv/Kconfig.socs
>> @@ -5,7 +5,7 @@ config SOC_SIFIVE
>> select SERIAL_SIFIVE if TTY
>> select SERIAL_SIFIVE_CONSOLE if TTY
>> select CLK_SIFIVE
>> - select CLK_SIFIVE_FU540_PRCI
>> + select CLK_SIFIVE_PRCI
>> select SIFIVE_PLIC
>> help
>> This enables support for SiFive SoC platform hardware.
Powered by blists - more mailing lists