Add support for AST2700 clk driver
Ryan Chen
reviewerv8 cover Add support for AST2700 clk driver
This patch series is add clk driver for AST2700.
AST2700 is the 8th generation of Integrated Remote Management Processor introduced by ASPEED Technology Inc. Which is Board Management controller (BMC) SoC family. AST2700 have two SoC connected, one is SoC0, another is SoC1, it has it's own scu, this driver inlcude SCU0 and SCU1 driver.
v8:
-aspeed,ast2700-scu.h: remove no use soc0 clock, add new clock -clk-ast2700.c: remove include <linux/auxiliary_bus.h>, include <linux/clk-provider.h>, include <linux/of_address.h> -clk-ast2700.c: add include <linux/mod_devicetable.h> -clk-ast2700.c: modify include <soc/aspeed/reset-aspeed.h> order before dt-bindings-clk-ast2700.c: modify define to be tabbed out space -clk-ast2700.c: add union struct for each clk type
union {
struct ast2700_clk_fixed_factor_data factor;
struct ast2700_clk_fixed_rate_data rate;
struct ast2700_clk_gate_data gate;
struct ast2700_clk_div_data div;
struct ast2700_clk_pll_data pll;
struct ast2700_clk_mux_data mux;
} data;-clk-ast2700.c: modify clk_data = device_get_match_data(dev); -clk-ast2700.c: modify builtin_platform_driver_probe to arch_initcall(clk_ast2700_init)-clk-ast2700.c: ast2700_clk_hw_register_hpll explain: scu010[4:2], scu010[4:2] = 010, hpll force 1.8Ghz
scu010[4:2] = 011, hpll force 1.7Ghz
scu010[4:2] = 110, hpll force 1.2Ghz
scu010[4:2] = 111, hpll force 800Mhz
others depend on hpll parameter register setting.
v7:-reset-aspeed.h: fix declare static inline aspeed_reset_controller_register if the function is not used.
v6:
-patch-2: add reset-aspeed.h
-reset-aspeed: add include cleanup.h for guard() -reset-aspeed: change ids name clk_aspeed to reset_aspeed -reset-aspeed: move aspeed_reset_controller_register, aspeed_reset_adev_release, aspeed_reset_unregister_adev from clk-ast2700.c -reset-aspeed: drop base check, since it check in clk-ast2700.c -clk-ast2700: sync each gate name from *clk to *clk-gate name. -clk-ast2700: add CLK_GATE_ASPEED to diff clk_hw_register_gate and ast2700_clk_hw_register_gate.
v5:
-patch-2 Kconfig: add select AUXILIARY_BUS
-reset-aspeed: #define to_aspeed_reset(p) turn into static inline function. -reset-aspeed: modify spin_lock_irqsave to guard(spinlock_irqsave) -reset-aspeed: remove unnecessary parentheses.
-clk-ast2700: use <linux/units.h> and refrain from define clk
v4:
-yaml: keep size-cells=<1>.
-merge clk,reset dt binding header with yaml the same patch. -rename clk,reset dt binding header to aspeed,ast2700-scu.h -reset-aspeed: update tables tabs sapces to consistent spaces. -reset-aspeed: remove no use dev_set_drvdata.
-clk-ast2700: modify reset_name to const int scu in struct clk_data. -clk-ast2700: use scu number in clk_data generate reset_name for reset
driver register.
-clk-ast2700: fix pll number mix up scu0,scu1. -clk-ast2700: update dt-binding clock include file.
v3:
-yaml: v2 missing send yaml patch, v3 add. -yaml: drop 64bits address example.
-yaml: add discription about soc0 and soc1 -dt-bindings: remove (), *_NUMS, reserved. -dt-bindings: remove dulipated define number. -dt-bindings: merge clk and reset to be one patch. -reset-aspeed: add auxiliary device for reset driver. -clk-ast2700: modify reset to be auxiliary add. -clk-ast2700: modify to be platform driver. -clk-ast2700: modify each clk to const clk array.
v2:
-yaml: drop 64bits address example.
-yaml: add discription about soc0 and soc1
-dt-bindings: remove (), *_NUMS, reserved.
-dt-bindings: remove dulipated define number
-clk-ast2700: drop WARN_ON, weird comment.
Ryan Chen (3):
dt-binding: clock: ast2700: modify soc0/1 clock define
reset: aspeed: register AST2700 reset auxiliary bus device
clk: aspeed: add AST2700 clock driver
drivers/clk/Kconfig | 8 + drivers/clk/Makefile | 1 + drivers/clk/clk-ast2700.c | 1153 +++++++++++++++++ drivers/reset/Kconfig | 7 + drivers/reset/Makefile | 1 + drivers/reset/reset-aspeed.c | 302 +++++ .../dt-bindings/clock/aspeed,ast2700-scu.h | 7 +- include/soc/aspeed/reset-aspeed.h | 21 + 8 files changed, 1497 insertions(+), 3 deletions(-) create mode 100644 drivers/clk/clk-ast2700.c create mode 100644 drivers/reset/reset-aspeed.c create mode 100644 include/soc/aspeed/reset-aspeed.h
Signature · 1 line
2.34.1
Ryan Chen
reviewerPATCH v8 1/3 dt-binding: clock: ast2700: modify soc0/1 clock define
remove soc0 clock:
SOC0_CLK_UART_DIV13
SOC0_CLK_HPLL_DIV_AHB
SOC0_CLK_MPLL_DIV_AHB
add soc0 clock:
SOC0_CLK_AHBMUX
SOC0_CLK_MPHYSRC
SOC0_CLK_U2PHY_REFCLKSRC
add soc1 clock:
SOC1_CLK_I3C
--- include/dt-bindings/clock/aspeed,ast2700-scu.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
include/dt-bindings/clock/aspeed,ast2700-scu.h +4 -3
@@ -13,18 +13,17 @@#define SCU0_CLK_24M 1#define SCU0_CLK_192M 2#define SCU0_CLK_UART 3 -#define SCU0_CLK_UART_DIV13 3#define SCU0_CLK_PSP 4#define SCU0_CLK_HPLL 5#define SCU0_CLK_HPLL_DIV2 6#define SCU0_CLK_HPLL_DIV4 7 -#define SCU0_CLK_HPLL_DIV_AHB 8 +#define SCU0_CLK_AHBMUX 8#define SCU0_CLK_DPLL 9#define SCU0_CLK_MPLL 10#define SCU0_CLK_MPLL_DIV2 11#define SCU0_CLK_MPLL_DIV4 12#define SCU0_CLK_MPLL_DIV8 13 -#define SCU0_CLK_MPLL_DIV_AHB 14 +#define SCU0_CLK_MPHYSRC 14#define SCU0_CLK_D0 15#define SCU0_CLK_D1 16#define SCU0_CLK_CRT0 17
@@ -68,6 +67,7 @@#define SCU0_CLK_GATE_UFSCLK 53#define SCU0_CLK_GATE_EMMCCLK 54#define SCU0_CLK_GATE_RVAS1CLK 55 +#define SCU0_CLK_U2PHY_REFCLKSRC 56/* SOC1 clk */ #define SCU1_CLKIN 0
@@ -160,4 +160,5 @@#define SCU1_CLK_GATE_PORTDUSB2CLK 85#define SCU1_CLK_GATE_LTPI1TXCLK 86 +#define SCU1_CLK_I3C 87#endif
Signature · 1 line
2.34.1
Re: [PATCH v8 1/3] dt-binding: clock: ast2700: modify soc0/1 clock define
Quoted 1 line · Ryan Chen
remove soc0 clock:
Why? Your commit msg must explain why. What is obvious from the diff, isn't it?
Quoted 20 lines
SOC0_CLK_UART_DIV13
SOC0_CLK_HPLL_DIV_AHB
SOC0_CLK_MPLL_DIV_AHB
add soc0 clock:
SOC0_CLK_AHBMUX
SOC0_CLK_MPHYSRC
SOC0_CLK_U2PHY_REFCLKSRC
add soc1 clock:
SOC1_CLK_I3CSigned-off-by Ryan Chen <[email protected]>--- include/dt-bindings/clock/aspeed,ast2700-scu.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)include/dt-bindings/clock/aspeed,ast2700-scu.h +0
-0
include/dt-bindings/clock/aspeed,ast2700-scu.h line 16
Quoted 4 lines
include/dt-bindings/clock/aspeed,ast2700-scu.h +0
-1@@ -13,18 +13,17 @@#define SCU0_CLK_24M 1#define SCU0_CLK_192M 2#define SCU0_CLK_UART 3 -#define SCU0_CLK_UART_DIV13 3
NAK, ABI break without any explanation.
include/dt-bindings/clock/aspeed,ast2700-scu.h line 20
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-scu.h +1
-1#define SCU0_CLK_PSP 4#define SCU0_CLK_HPLL 5#define SCU0_CLK_HPLL_DIV2 6#define SCU0_CLK_HPLL_DIV4 7 -#define SCU0_CLK_HPLL_DIV_AHB 8 +#define SCU0_CLK_AHBMUX 8
NAK, ABI break without any explanation.
Best regards,
Krzysztof
Ryan Chen
reviewerRE: [PATCH v8 1/3] dt-binding: clock: ast2700: modify soc0/1 clock define
Quoted 14 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, February 11, 2025 4:18 PM
To: Ryan Chen <[email protected]>
Cc: Michael Turquette <[email protected]>; Stephen Boyd <[email protected]>; Philipp Zabel <[email protected]>; Joel Stanley <[email protected]>; Andrew Jeffery <[email protected]>; [email protected]; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH v8 1/3] dt-binding: clock: ast2700: modify soc0/1 clock define
Quoted 5 lines
Quoted 1 line · Ryan Chen
remove soc0 clock:
Why? Your commit msg must explain why. What is obvious from the diff, isn't it?
Thank you for your feedback. I will add explanation in next commit patch.
Quoted 16 lines
Quoted 16 lines
SOC0_CLK_UART_DIV13
SOC0_CLK_HPLL_DIV_AHB
SOC0_CLK_MPLL_DIV_AHB
add soc0 clock:
SOC0_CLK_AHBMUX
SOC0_CLK_MPHYSRC
SOC0_CLK_U2PHY_REFCLKSRC
add soc1 clock:
SOC1_CLK_I3CSigned-off-by Ryan Chen <[email protected]>--- include/dt-bindings/clock/aspeed,ast2700-scu.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Quoted 12 lines
include/dt-bindings/clock/aspeed,ast2700-scu.h line 16
Quoted 10 lines
include/dt-bindings/clock/aspeed,ast2700-scu.h +0
-1@@ -13,18 +13,17 @@#define SCU0_CLK_24M 1#define SCU0_CLK_192M 2#define SCU0_CLK_UART 3 -#define SCU0_CLK_UART_DIV13 3NAK, ABI break without any explanation.
The SCU0_CLK_UART_DIV13 was originally defined as a separate clock identifier, reviewing the AST2700 clock driver implement, I realized it is no longer necessary. The clk-ast2700.c driver I have **integrated the SOC0 UART clock (soc0_uartclk) with ast2700_clk_uart_div_table**.
The UART clock source will get from ast2700_clk_uart_div_table, that will div from source 24M div13 or div1.
Quoted 9 lines
include/dt-bindings/clock/aspeed,ast2700-scu.h line 20
Quoted 7 lines
include/dt-bindings/clock/aspeed,ast2700-scu.h +1
-1#define SCU0_CLK_PSP 4#define SCU0_CLK_HPLL 5#define SCU0_CLK_HPLL_DIV2 6#define SCU0_CLK_HPLL_DIV4 7 -#define SCU0_CLK_HPLL_DIV_AHB 8 +#define SCU0_CLK_AHBMUX 8NAK, ABI break without any explanation.
V6 clock-ast2700.c CLK_AHB implement mpll_div_ahb / hpll_div_ahb to be ahb clock source. mpll-> mpll_div_ahb
-> clk_ahb
hpll-> hpll_div_ahb
V8 clock-ast2700.c I implement by SCU0_CLK_AHBMUX for more understand clock source divide tree. Add define SCU0_CLK_AHBMUX replace SCU0_CLK_HPLL_DIV_AHB
mpll->
ahb_mux -> div_table -> clk_ahb
hpll->
new addSOC0_CLK_MPHYSRC: UFS MPHY clock source. SOC0_CLK_U2PHY_REFCLKSRC : USB2.0 phy clock reference sourceSOC1_CLK_I3C: I3C clock source.
Quoted 3 lines
Best regards,
Krzysztof
Re: [PATCH v8 1/3] dt-binding: clock: ast2700: modify soc0/1 clock define
Quoted 49 lines · Ryan Chen
Quoted 14 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, February 11, 2025 4:18 PM
To: Ryan Chen <[email protected]>
Cc: Michael Turquette <[email protected]>; Stephen Boyd <[email protected]>; Philipp Zabel <[email protected]>; Joel Stanley <[email protected]>; Andrew Jeffery <[email protected]>; [email protected]; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH v8 1/3] dt-binding: clock: ast2700: modify soc0/1 clock defineQuoted 5 lines
Quoted 1 line · Ryan Chen
remove soc0 clock:
Why? Your commit msg must explain why. What is obvious from the diff, isn't it?
Thank you for your feedback. I will add explanation in next commit patch.
Quoted 16 lines
Quoted 16 lines
SOC0_CLK_UART_DIV13
SOC0_CLK_HPLL_DIV_AHB
SOC0_CLK_MPLL_DIV_AHB
add soc0 clock:
SOC0_CLK_AHBMUX
SOC0_CLK_MPHYSRC
SOC0_CLK_U2PHY_REFCLKSRC
add soc1 clock:
SOC1_CLK_I3CSigned-off-by Ryan Chen <[email protected]>--- include/dt-bindings/clock/aspeed,ast2700-scu.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)Quoted 12 lines
include/dt-bindings/clock/aspeed,ast2700-scu.h line 16
Quoted 10 lines
include/dt-bindings/clock/aspeed,ast2700-scu.h +0
-1@@ -13,18 +13,17 @@#define SCU0_CLK_24M 1#define SCU0_CLK_192M 2#define SCU0_CLK_UART 3 -#define SCU0_CLK_UART_DIV13 3NAK, ABI break without any explanation.
Quoted 3 lines
The
SCU0_CLK_UART_DIV13was originally defined as a separate clock identifier, reviewing the AST2700 clock driver implement, I realized it is no longer necessary. Theclk-ast2700.cdriver I have **integrated the SOC0 UART clock (soc0_uartclk) withast2700_clk_uart_div_table**.
The UART clock source will get fromast2700_clk_uart_div_table, that will div from source 24M div13 or div1.
Wrap your replies correctly.
So all this means you exported clocks which are not clocks? How are ABI consumers behaving now?
Anyway, any ABI impact must be clearly justified in commit msg.
Best regards,
Krzysztof
Ryan Chen
reviewerRE: [PATCH v8 1/3] dt-binding: clock: ast2700: modify soc0/1 clock define
Quoted 57 lines
Subject: Re: [PATCH v8 1/3] dt-binding: clock: ast2700: modify soc0/1 clock define
Quoted 49 lines · Ryan Chen
Quoted 14 lines
-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, February 11, 2025 4:18 PM
To: Ryan Chen <[email protected]>
Cc: Michael Turquette <[email protected]>; Stephen Boyd <[email protected]>; Philipp Zabel <[email protected]>; Joel Stanley <[email protected]>; Andrew Jeffery <[email protected]>; [email protected]; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH v8 1/3] dt-binding: clock: ast2700: modify soc0/1 clock defineQuoted 5 lines
Quoted 1 line · Ryan Chen
remove soc0 clock:
Why? Your commit msg must explain why. What is obvious from the diff, isn't it?
Thank you for your feedback. I will add explanation in next commit patch.
Quoted 16 lines
Quoted 16 lines
SOC0_CLK_UART_DIV13
SOC0_CLK_HPLL_DIV_AHB
SOC0_CLK_MPLL_DIV_AHB
add soc0 clock:
SOC0_CLK_AHBMUX
SOC0_CLK_MPHYSRC
SOC0_CLK_U2PHY_REFCLKSRC
add soc1 clock:
SOC1_CLK_I3CSigned-off-by Ryan Chen <[email protected]>--- include/dt-bindings/clock/aspeed,ast2700-scu.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)Quoted 12 lines
include/dt-bindings/clock/aspeed,ast2700-scu.h line 16
Quoted 10 lines
include/dt-bindings/clock/aspeed,ast2700-scu.h +0
-1@@ -13,18 +13,17 @@#define SCU0_CLK_24M 1#define SCU0_CLK_192M 2#define SCU0_CLK_UART 3 -#define SCU0_CLK_UART_DIV13 3NAK, ABI break without any explanation.
Quoted 1 line
The
SCU0_CLK_UART_DIV13was originally defined as a separate clockidentifier, reviewing the AST2700 clock driver implement, I realized it is no longer necessary.
Quoted 1 line
The
clk-ast2700.cdriver I have **integrated the SOC0 UART clock
Quoted 8 lines
(
soc0_uartclk) withast2700_clk_uart_div_table**.Quoted 1 line
The UART clock source will get from
ast2700_clk_uart_div_table, that will divfrom source 24M div13 or div1.
Wrap your replies correctly.
So all this means you exported clocks which are not clocks? How are ABI consumers behaving now?
In my original through will be separate clock identifier one is uart clk, another is uart clk_div13. uart_clk src
-> uart clk
uart clk_src div 13
and I real implement in v6, not use in clk-ast2700.c.
But I keep the SCU0_CLK_UART_DIV13 in dt-binding define, not remove it when submit. The SCU0_CLK_UART_DIV13 is redundant.>
uart clk src -> uart_div_table -> uart clk
Quoted 2 lines
Anyway, any ABI impact must be clearly justified in commit msg.
Thanks for your feedback
I will add the commit message by following.
-Remove redundant SCU0_CLK_UART_DIV13. SCU0_CLK_UART_DIV13 is not use at clk-ast2700.c
The clock source tree is uart clk src -> uart_div_table -> uart clk
-Change SCU0_CLK_HPLL_DIV_AHB to SCU0_CLK_AHBMUX
Modify clock tree implement in clk-ast2700.c.
old clock-ast2700.c CLK_AHB implement mpll_div_ahb / hpll_div_ahb to be ahb clock source. mpll-> mpll_div_ahb
-> clk_ahb
hpll-> hpll_div_ahb
new clock-ast2700.c implement by SCU0_CLK_AHBMUX for more understand clock source divide tree. Add define SCU0_CLK_AHBMUX replace SCU0_CLK_HPLL_DIV_AHB
mpll->
ahb_mux -> div_table -> clk_ahb
hpll->
-new add clockSOC0_CLK_MPHYSRC: UFS MPHY clock source. SOC0_CLK_U2PHY_REFCLKSRC : USB2.0 phy clock reference sourceSOC1_CLK_I3C: I3C clock source.
Quoted 4 lines
Best regards,
Krzysztof
Ryan Chen
reviewerPATCH v8 2/3 reset: aspeed: register AST2700 reset auxiliary bus device
In reply to Ryan ChenThe AST2700 reset driver is registered as an auxiliary device due to reset and clock controller share the same register region.
--- drivers/reset/Kconfig | 7 + drivers/reset/Makefile | 1 + drivers/reset/reset-aspeed.c | 302 ++++++++++++++++++++++++++++++ include/soc/aspeed/reset-aspeed.h | 21 +++ 4 files changed, 331 insertions(+) create mode 100644 drivers/reset/reset-aspeed.c create mode 100644 include/soc/aspeed/reset-aspeed.h
drivers/reset/Kconfig +7 -0
@@ -22,6 +22,13 @@ config RESET_A10SR This option enables support for the external reset functions for peripheral PHYs on the Altera Arria10 System Resource Chip. +config RESET_ASPEED + tristate "ASPEED Reset Driver" + depends on ARCH_ASPEED || COMPILE_TEST + select AUXILIARY_BUS + help + This enables the reset controller driver for AST2700. + config RESET_ATH79 bool "AR71xx Reset Driver" if COMPILE_TEST default ATH79
drivers/reset/Makefile +1 -0
@@ -6,6 +6,7 @@ obj-y += starfive/ obj-y += sti/ obj-y += tegra/ obj-$(CONFIG_RESET_A10SR) += reset-a10sr.o +obj-$(CONFIG_RESET_ASPEED) += reset-aspeed.o obj-$(CONFIG_RESET_ATH79) += reset-ath79.o obj-$(CONFIG_RESET_AXS10X) += reset-axs10x.o obj-$(CONFIG_RESET_BCM6345) += reset-bcm6345.o
drivers/reset/reset-aspeed.c new file +302 -0
302 lines not on this page · raw message
include/soc/aspeed/reset-aspeed.h new file +21 -0
@@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Copyright (c) 2024 ASPEED Technology Inc. +* Author: Ryan Chen <[email protected]> +*/ + +#ifndef __RESET_ASPEED_H__ +#define __RESET_ASPEED_H__ + +#if IS_ENABLED (CONFIG_RESET_ASPEED ) +int aspeed_reset_controller_register (struct device *clk_dev,void __iomem *base, +const char *adev_name); +#else +static inline int aspeed_reset_controller_register (struct device *clk_dev,void __iomem *base, +const char *adev_name) +{ +return -ENODEV ; +} +#endif /* if IS_ENABLED(CONFIG_RESET_ASPEED) */ + +#endif /* __RESET_ASPEED_H__ */
Signature · 1 line
2.34.1
Ryan Chen
reviewerPATCH v8 3/3 clk: aspeed: add AST2700 clock driver
In reply to Ryan ChenAdd AST2700 clock controller driver and also use axiliary device framework register the reset controller driver. Due to clock and reset using the same register region.
--- drivers/clk/Kconfig | 8 + drivers/clk/Makefile | 1 + drivers/clk/clk-ast2700.c | 1153 +++++++++++++++++++++++++++++++++++++ 3 files changed, 1162 insertions(+) create mode 100644 drivers/clk/clk-ast2700.c
drivers/clk/Kconfig +8 -0
@@ -288,6 +288,14 @@ config COMMON_CLK_ASPEED The G4 and G5 series, including the ast2400 and ast2500, are supported by this driver. +config COMMON_CLK_AST2700 + bool "Clock driver for AST2700 SoC" + depends on ARCH_ASPEED || COMPILE_TEST + help + This driver provides support for clock on AST2700 SoC. + The driver is responsible for managing the various clocks required + by the peripherals and cores within the AST2700. + config COMMON_CLK_S2MPS11 tristate "Clock driver for S2MPS1X/S5M8767 MFD" depends on MFD_SEC_CORE || COMPILE_TEST
drivers/clk/Makefile +1 -0
@@ -63,6 +63,7 @@ obj-$(CONFIG_COMMON_CLK_FSL_SAI) += clk-fsl-sai.o obj-$(CONFIG_COMMON_CLK_GEMINI) += clk-gemini.o obj-$(CONFIG_COMMON_CLK_ASPEED) += clk-aspeed.o obj-$(CONFIG_MACH_ASPEED_G6) += clk-ast2600.o +obj-$(CONFIG_COMMON_CLK_AST2700) += clk-ast2700.o obj-$(CONFIG_ARCH_HIGHBANK) += clk-highbank.o obj-$(CONFIG_CLK_HSDK) += clk-hsdk-pll.o obj-$(CONFIG_COMMON_CLK_K210) += clk-k210.o
drivers/clk/clk-ast2700.c new file +1153 -0
1,153 lines not on this page · raw message
Signature · 1 line
2.34.1
kernel test robot
build botRe: [PATCH v8 3/3] clk: aspeed: add AST2700 clock driver
kernel test robot noticed the following build warnings:
Hi Ryan,
kernel test robot noticed the following build warnings:
[auto build test WARNING on clk/clk-next]
[also build test WARNING on pza/reset/next linus/master v6.14-rc2 next-20250210] [cannot apply to pza/imx-drm/next]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Ryan-Chen/dt-binding-clock-ast2700-modify-soc0-1-clock-define/20250210-165421 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/20250210085004.1898895-4-ryan_chen%40aspeedtech.com patch subject: [PATCH v8 3/3] clk: aspeed: add AST2700 clock driver config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20250212/[email protected]/config) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250212/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
In file included from drivers/clk/clk-ast2700.c:11:
In file included from include/linux/platform_device.h:13:
In file included from include/linux/device.h:32:
In file included from include/linux/device/driver.h:21:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/s390/include/asm/elf.h:181:
In file included from arch/s390/include/asm/mmu_context.h:11:
In file included from arch/s390/include/asm/pgalloc.h:18:
In file included from include/linux/mm.h:2224:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/clk/clk-ast2700.c:209:37: warning: unused variable 'soc0_mpll_div8' [-Wunused-const-variable]
209 | static const struct clk_parent_data soc0_mpll_div8[] = {
| ^~~~~~~~~~~~~~
>> drivers/clk/clk-ast2700.c:237:37: warning: unused variable 'soc0_ahb' [-Wunused-const-variable]
237 | static const struct clk_parent_data soc0_ahb[] = {
| ^~~~~~~~
>> drivers/clk/clk-ast2700.c:337:37: warning: unused variable 'uart13clk' [-Wunused-const-variable]
337 | static const struct clk_parent_data uart13clk[] = {
| ^~~~~~~~~
>> drivers/clk/clk-ast2700.c:341:37: warning: unused variable 'uart14clk' [-Wunused-const-variable]
341 | static const struct clk_parent_data uart14clk[] = {
| ^~~~~~~~~
>> drivers/clk/clk-ast2700.c:345:37: warning: unused variable 'uart15clk' [-Wunused-const-variable]
345 | static const struct clk_parent_data uart15clk[] = {
| ^~~~~~~~~
>> drivers/clk/clk-ast2700.c:349:37: warning: unused variable 'uart16clk' [-Wunused-const-variable]
349 | static const struct clk_parent_data uart16clk[] = {
| ^~~~~~~~~
>> drivers/clk/clk-ast2700.c:353:37: warning: unused variable 'soc1_ahb' [-Wunused-const-variable]
353 | static const struct clk_parent_data soc1_ahb[] = {
| ^~~~~~~~
>> drivers/clk/clk-ast2700.c:369:37: warning: unused variable 'd_clk_sels' [-Wunused-const-variable]
369 | static const struct clk_parent_data d_clk_sels[] = {
| ^~~~~~~~~~11 warnings generated.
vim +/soc0_mpll_div8 +209 drivers/clk/clk-ast2700.c
208
> 209 static const struct clk_parent_data soc0_mpll_div8[] = {
210 { .fw_name = "soc0-mpll_div8", .name = "soc0-mpll_div8" },
211 };
212
213 static const struct clk_parent_data mphysrc[] = {
214 { .fw_name = "mphysrc", .name = "mphysrc" },
215 };
216
217 static const struct clk_parent_data u2phy_refclksrc[] = {
218 { .fw_name = "u2phy_refclksrc", .name = "u2phy_refclksrc" },
219 };
220
221 static const struct clk_parent_data soc0_hpll[] = {
222 { .fw_name = "soc0-hpll", .name = "soc0-hpll" },
223 };
224
225 static const struct clk_parent_data soc0_mpll[] = {
226 { .fw_name = "soc0-mpll", .name = "soc0-mpll" },
227 };
228
229 static const struct clk_parent_data axi0clk[] = {
230 { .fw_name = "axi0clk", .name = "axi0clk" },
231 };
232
233 static const struct clk_parent_data soc0_ahbmux[] = {
234 { .fw_name = "soc0-ahbmux", .name = "soc0-ahbmux" },
235 };
236
> 237 static const struct clk_parent_data soc0_ahb[] = {
238 { .fw_name = "soc0-ahb", .name = "soc0-ahb" },
239 };
240
241 static const struct clk_parent_data soc0_uartclk[] = {
242 { .fw_name = "soc0-uartclk", .name = "soc0-uartclk" },
243 };
244
245 static const struct clk_parent_data emmcclk[] = {
246 { .fw_name = "emmcclk", .name = "emmcclk" },
247 };
248
249 static const struct clk_parent_data emmcsrc_mux[] = {
250 { .fw_name = "emmcsrc-mux", .name = "emmcsrc-mux" },
251 };
252
253 static const struct clk_parent_data soc1_clkin[] = {
254 { .fw_name = "soc1-clkin", .name = "soc1-clkin" },
255 };
256
257 static const struct clk_parent_data soc1_hpll[] = {
258 { .fw_name = "soc1-hpll", .name = "soc1-hpll" },
259 };
260
261 static const struct clk_parent_data soc1_apll[] = {
262 { .fw_name = "soc1-apll", .name = "soc1-apll" },
263 };
264
265 static const struct clk_parent_data sdclk[] = {
266 { .fw_name = "sdclk", .name = "sdclk" },
267 };
268
269 static const struct clk_parent_data sdclk_mux[] = {
270 { .fw_name = "sdclk-mux", .name = "sdclk-mux" },
271 };
272
273 static const struct clk_parent_data huartxclk[] = {
274 { .fw_name = "huartxclk", .name = "huartxclk" },
275 };
276
277 static const struct clk_parent_data uxclk[] = {
278 { .fw_name = "uxclk", .name = "uxclk" },
279 };
280
281 static const struct clk_parent_data huxclk[] = {
282 { .fw_name = "huxclk", .name = "huxclk" },
283 };
284
285 static const struct clk_parent_data uart0clk[] = {
286 { .fw_name = "uart0clk", .name = "uart0clk" },
287 };
288
289 static const struct clk_parent_data uart1clk[] = {
290 { .fw_name = "uart1clk", .name = "uart1clk" },
291 };
292
293 static const struct clk_parent_data uart2clk[] = {
294 { .fw_name = "uart2clk", .name = "uart2clk" },
295 };
296
297 static const struct clk_parent_data uart3clk[] = {
298 { .fw_name = "uart3clk", .name = "uart3clk" },
299 };
300
301 static const struct clk_parent_data uart5clk[] = {
302 { .fw_name = "uart5clk", .name = "uart5clk" },
303 };
304
305 static const struct clk_parent_data uart4clk[] = {
306 { .fw_name = "uart4clk", .name = "uart4clk" },
307 };
308
309 static const struct clk_parent_data uart6clk[] = {
310 { .fw_name = "uart6clk", .name = "uart6clk" },
311 };
312
313 static const struct clk_parent_data uart7clk[] = {
314 { .fw_name = "uart7clk", .name = "uart7clk" },
315 };
316
317 static const struct clk_parent_data uart8clk[] = {
318 { .fw_name = "uart8clk", .name = "uart8clk" },
319 };
320
321 static const struct clk_parent_data uart9clk[] = {
322 { .fw_name = "uart9clk", .name = "uart9clk" },
323 };
324
325 static const struct clk_parent_data uart10clk[] = {
326 { .fw_name = "uart10clk", .name = "uart10clk" },
327 };
328
329 static const struct clk_parent_data uart11clk[] = {
330 { .fw_name = "uart11clk", .name = "uart11clk" },
331 };
332
333 static const struct clk_parent_data uart12clk[] = {
334 { .fw_name = "uart12clk", .name = "uart12clk" },
335 };
336
> 337 static const struct clk_parent_data uart13clk[] = {
338 { .fw_name = "uart13clk", .name = "uart13clk" },
339 };
340
> 341 static const struct clk_parent_data uart14clk[] = {
342 { .fw_name = "uart14clk", .name = "uart14clk" },
343 };
344
> 345 static const struct clk_parent_data uart15clk[] = {
346 { .fw_name = "uart15clk", .name = "uart15clk" },
347 };
348
> 349 static const struct clk_parent_data uart16clk[] = {
350 { .fw_name = "uart16clk", .name = "uart16clk" },
351 };
352
> 353 static const struct clk_parent_data soc1_ahb[] = {
354 { .fw_name = "soc1-ahb", .name = "soc1-ahb" },
355 };
356
357 static const struct clk_parent_data soc1_i3c[] = {
358 { .fw_name = "soc1-i3c", .name = "soc1-i3c" },
359 };
360
361 static const struct clk_parent_data canclk[] = {
362 { .fw_name = "canclk", .name = "canclk" },
363 };
364
365 static const struct clk_parent_data rmii[] = {
366 { .fw_name = "rmii", .name = "rmii" },
367 };
368
> 369 static const struct clk_parent_data d_clk_sels[] = { 370 { .fw_name = "soc0-hpll_div2", .name = "soc0-hpll_div2" },
371 { .fw_name = "soc0-mpll_div2", .name = "soc0-mpll_div2" },
372 };
373
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
kernel test robot
build botRe: [PATCH v8 3/3] clk: aspeed: add AST2700 clock driver
In reply to Ryan Chenkernel test robot noticed the following build warnings:
Hi Ryan,
kernel test robot noticed the following build warnings:
[auto build test WARNING on clk/clk-next]
[also build test WARNING on pza/reset/next linus/master v6.14-rc2 next-20250210] [cannot apply to pza/imx-drm/next]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Ryan-Chen/dt-binding-clock-ast2700-modify-soc0-1-clock-define/20250210-165421 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/20250210085004.1898895-4-ryan_chen%40aspeedtech.com patch subject: [PATCH v8 3/3] clk: aspeed: add AST2700 clock driver config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20250212/[email protected]/config) compiler: loongarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250212/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> drivers/clk/clk-ast2700.c:369:37: warning: 'd_clk_sels' defined but not used [-Wunused-const-variable=]
369 | static const struct clk_parent_data d_clk_sels[] = {
| ^~~~~~~~~~
>> drivers/clk/clk-ast2700.c:353:37: warning: 'soc1_ahb' defined but not used [-Wunused-const-variable=]
353 | static const struct clk_parent_data soc1_ahb[] = {
| ^~~~~~~~
>> drivers/clk/clk-ast2700.c:349:37: warning: 'uart16clk' defined but not used [-Wunused-const-variable=]
349 | static const struct clk_parent_data uart16clk[] = {
| ^~~~~~~~~
>> drivers/clk/clk-ast2700.c:345:37: warning: 'uart15clk' defined but not used [-Wunused-const-variable=]
345 | static const struct clk_parent_data uart15clk[] = {
| ^~~~~~~~~
>> drivers/clk/clk-ast2700.c:341:37: warning: 'uart14clk' defined but not used [-Wunused-const-variable=]
341 | static const struct clk_parent_data uart14clk[] = {
| ^~~~~~~~~
>> drivers/clk/clk-ast2700.c:337:37: warning: 'uart13clk' defined but not used [-Wunused-const-variable=]
337 | static const struct clk_parent_data uart13clk[] = {
| ^~~~~~~~~
>> drivers/clk/clk-ast2700.c:237:37: warning: 'soc0_ahb' defined but not used [-Wunused-const-variable=]
237 | static const struct clk_parent_data soc0_ahb[] = {
| ^~~~~~~~
>> drivers/clk/clk-ast2700.c:209:37: warning: 'soc0_mpll_div8' defined but not used [-Wunused-const-variable=]
209 | static const struct clk_parent_data soc0_mpll_div8[] = {
| ^~~~~~~~~~~~~~vim +/d_clk_sels +369 drivers/clk/clk-ast2700.c
208
> 209 static const struct clk_parent_data soc0_mpll_div8[] = {
210 { .fw_name = "soc0-mpll_div8", .name = "soc0-mpll_div8" },
211 };
212
213 static const struct clk_parent_data mphysrc[] = {
214 { .fw_name = "mphysrc", .name = "mphysrc" },
215 };
216
217 static const struct clk_parent_data u2phy_refclksrc[] = {
218 { .fw_name = "u2phy_refclksrc", .name = "u2phy_refclksrc" },
219 };
220
221 static const struct clk_parent_data soc0_hpll[] = {
222 { .fw_name = "soc0-hpll", .name = "soc0-hpll" },
223 };
224
225 static const struct clk_parent_data soc0_mpll[] = {
226 { .fw_name = "soc0-mpll", .name = "soc0-mpll" },
227 };
228
229 static const struct clk_parent_data axi0clk[] = {
230 { .fw_name = "axi0clk", .name = "axi0clk" },
231 };
232
233 static const struct clk_parent_data soc0_ahbmux[] = {
234 { .fw_name = "soc0-ahbmux", .name = "soc0-ahbmux" },
235 };
236
> 237 static const struct clk_parent_data soc0_ahb[] = {
238 { .fw_name = "soc0-ahb", .name = "soc0-ahb" },
239 };
240
241 static const struct clk_parent_data soc0_uartclk[] = {
242 { .fw_name = "soc0-uartclk", .name = "soc0-uartclk" },
243 };
244
245 static const struct clk_parent_data emmcclk[] = {
246 { .fw_name = "emmcclk", .name = "emmcclk" },
247 };
248
249 static const struct clk_parent_data emmcsrc_mux[] = {
250 { .fw_name = "emmcsrc-mux", .name = "emmcsrc-mux" },
251 };
252
253 static const struct clk_parent_data soc1_clkin[] = {
254 { .fw_name = "soc1-clkin", .name = "soc1-clkin" },
255 };
256
257 static const struct clk_parent_data soc1_hpll[] = {
258 { .fw_name = "soc1-hpll", .name = "soc1-hpll" },
259 };
260
261 static const struct clk_parent_data soc1_apll[] = {
262 { .fw_name = "soc1-apll", .name = "soc1-apll" },
263 };
264
265 static const struct clk_parent_data sdclk[] = {
266 { .fw_name = "sdclk", .name = "sdclk" },
267 };
268
269 static const struct clk_parent_data sdclk_mux[] = {
270 { .fw_name = "sdclk-mux", .name = "sdclk-mux" },
271 };
272
273 static const struct clk_parent_data huartxclk[] = {
274 { .fw_name = "huartxclk", .name = "huartxclk" },
275 };
276
277 static const struct clk_parent_data uxclk[] = {
278 { .fw_name = "uxclk", .name = "uxclk" },
279 };
280
281 static const struct clk_parent_data huxclk[] = {
282 { .fw_name = "huxclk", .name = "huxclk" },
283 };
284
285 static const struct clk_parent_data uart0clk[] = {
286 { .fw_name = "uart0clk", .name = "uart0clk" },
287 };
288
289 static const struct clk_parent_data uart1clk[] = {
290 { .fw_name = "uart1clk", .name = "uart1clk" },
291 };
292
293 static const struct clk_parent_data uart2clk[] = {
294 { .fw_name = "uart2clk", .name = "uart2clk" },
295 };
296
297 static const struct clk_parent_data uart3clk[] = {
298 { .fw_name = "uart3clk", .name = "uart3clk" },
299 };
300
301 static const struct clk_parent_data uart5clk[] = {
302 { .fw_name = "uart5clk", .name = "uart5clk" },
303 };
304
305 static const struct clk_parent_data uart4clk[] = {
306 { .fw_name = "uart4clk", .name = "uart4clk" },
307 };
308
309 static const struct clk_parent_data uart6clk[] = {
310 { .fw_name = "uart6clk", .name = "uart6clk" },
311 };
312
313 static const struct clk_parent_data uart7clk[] = {
314 { .fw_name = "uart7clk", .name = "uart7clk" },
315 };
316
317 static const struct clk_parent_data uart8clk[] = {
318 { .fw_name = "uart8clk", .name = "uart8clk" },
319 };
320
321 static const struct clk_parent_data uart9clk[] = {
322 { .fw_name = "uart9clk", .name = "uart9clk" },
323 };
324
325 static const struct clk_parent_data uart10clk[] = {
326 { .fw_name = "uart10clk", .name = "uart10clk" },
327 };
328
329 static const struct clk_parent_data uart11clk[] = {
330 { .fw_name = "uart11clk", .name = "uart11clk" },
331 };
332
333 static const struct clk_parent_data uart12clk[] = {
334 { .fw_name = "uart12clk", .name = "uart12clk" },
335 };
336
> 337 static const struct clk_parent_data uart13clk[] = {
338 { .fw_name = "uart13clk", .name = "uart13clk" },
339 };
340
> 341 static const struct clk_parent_data uart14clk[] = {
342 { .fw_name = "uart14clk", .name = "uart14clk" },
343 };
344
> 345 static const struct clk_parent_data uart15clk[] = {
346 { .fw_name = "uart15clk", .name = "uart15clk" },
347 };
348
> 349 static const struct clk_parent_data uart16clk[] = {
350 { .fw_name = "uart16clk", .name = "uart16clk" },
351 };
352
> 353 static const struct clk_parent_data soc1_ahb[] = {
354 { .fw_name = "soc1-ahb", .name = "soc1-ahb" },
355 };
356
357 static const struct clk_parent_data soc1_i3c[] = {
358 { .fw_name = "soc1-i3c", .name = "soc1-i3c" },
359 };
360
361 static const struct clk_parent_data canclk[] = {
362 { .fw_name = "canclk", .name = "canclk" },
363 };
364
365 static const struct clk_parent_data rmii[] = {
366 { .fw_name = "rmii", .name = "rmii" },
367 };
368
> 369 static const struct clk_parent_data d_clk_sels[] = { 370 { .fw_name = "soc0-hpll_div2", .name = "soc0-hpll_div2" },
371 { .fw_name = "soc0-mpll_div2", .name = "soc0-mpll_div2" },
372 };
373
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
kernel test robot
build botRe: [PATCH v8 3/3] clk: aspeed: add AST2700 clock driver
In reply to Ryan Chenkernel test robot noticed the following build errors:
Hi Ryan,
kernel test robot noticed the following build errors:
[auto build test ERROR on clk/clk-next]
[also build test ERROR on pza/reset/next linus/master v6.14-rc2] [cannot apply to pza/imx-drm/next]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Ryan-Chen/dt-binding-clock-ast2700-modify-soc0-1-clock-define/20250210-165421 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/20250210085004.1898895-4-ryan_chen%40aspeedtech.com patch subject: [PATCH v8 3/3] clk: aspeed: add AST2700 clock driver config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20250212/[email protected]/config) compiler: m68k-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250212/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
In file included from include/linux/swab.h:5,
from include/uapi/linux/byteorder/big_endian.h:14,
from include/linux/byteorder/big_endian.h:5,
from arch/m68k/include/uapi/asm/byteorder.h:5,
from include/asm-generic/bitops/le.h:6,
from arch/m68k/include/asm/bitops.h:566,
from include/linux/bitops.h:68,
from include/linux/of.h:15,
from include/linux/clk-provider.h:9,
from drivers/clk/clk-ast2700.c:7:
drivers/clk/clk-ast2700.c: In function 'ast2700_soc1_configure_i3c_clk':
>> drivers/clk/clk-ast2700.c:981:32: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
981 | FIELD_PREP(SCU1_CLK_I3C_DIV_MASK,
| ^~~~~~~~~~
include/uapi/linux/swab.h:118:38: note: in definition of macro '__swab32'
118 | (__u32)(__builtin_constant_p(x) ? \
| ^
include/linux/byteorder/generic.h:88:21: note: in expansion of macro '__cpu_to_le32'
88 | #define cpu_to_le32 __cpu_to_le32
| ^~~~~~~~~~~~~
arch/m68k/include/asm/io_mm.h:373:26: note: in expansion of macro 'out_le32'
373 | #define writel(val,addr) out_le32((addr),(val))
| ^~~~~~~~
drivers/clk/clk-ast2700.c:979:17: note: in expansion of macro 'writel'
979 | writel((readl(clk_ctrl->base + SCU1_CLK_SEL2) &
| ^~~~~~
drivers/clk/clk-ast2700.c: At top level:
drivers/clk/clk-ast2700.c:369:37: warning: 'd_clk_sels' defined but not used [-Wunused-const-variable=]
369 | static const struct clk_parent_data d_clk_sels[] = {
| ^~~~~~~~~~
drivers/clk/clk-ast2700.c:353:37: warning: 'soc1_ahb' defined but not used [-Wunused-const-variable=]
353 | static const struct clk_parent_data soc1_ahb[] = {
| ^~~~~~~~
drivers/clk/clk-ast2700.c:349:37: warning: 'uart16clk' defined but not used [-Wunused-const-variable=]
349 | static const struct clk_parent_data uart16clk[] = {
| ^~~~~~~~~
drivers/clk/clk-ast2700.c:345:37: warning: 'uart15clk' defined but not used [-Wunused-const-variable=]
345 | static const struct clk_parent_data uart15clk[] = {
| ^~~~~~~~~
drivers/clk/clk-ast2700.c:341:37: warning: 'uart14clk' defined but not used [-Wunused-const-variable=]
341 | static const struct clk_parent_data uart14clk[] = {
| ^~~~~~~~~
drivers/clk/clk-ast2700.c:337:37: warning: 'uart13clk' defined but not used [-Wunused-const-variable=]
337 | static const struct clk_parent_data uart13clk[] = {
| ^~~~~~~~~
drivers/clk/clk-ast2700.c:237:37: warning: 'soc0_ahb' defined but not used [-Wunused-const-variable=]
237 | static const struct clk_parent_data soc0_ahb[] = {
| ^~~~~~~~
drivers/clk/clk-ast2700.c:209:37: warning: 'soc0_mpll_div8' defined but not used [-Wunused-const-variable=]
209 | static const struct clk_parent_data soc0_mpll_div8[] = {
| ^~~~~~~~~~~~~~vim +/FIELD_PREP +981 drivers/clk/clk-ast2700.c
974
975 static void ast2700_soc1_configure_i3c_clk(struct ast2700_clk_ctrl *clk_ctrl)
976 {
977 if (readl(clk_ctrl->base + SCU1_REVISION_ID) & REVISION_ID)
978 /* I3C 250MHz = HPLL/4 */
979 writel((readl(clk_ctrl->base + SCU1_CLK_SEL2) &
980 ~SCU1_CLK_I3C_DIV_MASK) |
> 981 FIELD_PREP(SCU1_CLK_I3C_DIV_MASK,
982 SCU1_CLK_I3C_DIV(4)),
983 clk_ctrl->base + SCU1_CLK_SEL2);
984 }
985
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki