From: kernel test robot <lkp@intel.com>
To: Luo Jie <quic_luoj@quicinc.com>,
Bjorn Andersson <andersson@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-arm-msm@vger.kernel.org,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, quic_kkumarcs@quicinc.com,
quic_suruchia@quicinc.com, quic_pavir@quicinc.com,
quic_linchen@quicinc.com, quic_leiwei@quicinc.com,
Luo Jie <quic_luoj@quicinc.com>
Subject: Re: [PATCH 2/4] clk: qcom: Add common PLL clock controller driver for IPQ SoC
Date: Sun, 11 Aug 2024 07:53:45 +0800 [thread overview]
Message-ID: <202408110756.rSXn1ZRu-lkp@intel.com> (raw)
In-Reply-To: <20240808-qcom_ipq_cmnpll-v1-2-b0631dcbf785@quicinc.com>
Hi Luo,
kernel test robot noticed the following build errors:
[auto build test ERROR on 222a3380f92b8791d4eeedf7cd750513ff428adf]
url: https://github.com/intel-lab-lkp/linux/commits/Luo-Jie/dt-bindings-clock-qcom-Add-common-PLL-clock-controller-for-IPQ-SoC/20240808-221059
base: 222a3380f92b8791d4eeedf7cd750513ff428adf
patch link: https://lore.kernel.org/r/20240808-qcom_ipq_cmnpll-v1-2-b0631dcbf785%40quicinc.com
patch subject: [PATCH 2/4] clk: qcom: Add common PLL clock controller driver for IPQ SoC
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20240811/202408110756.rSXn1ZRu-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240811/202408110756.rSXn1ZRu-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408110756.rSXn1ZRu-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/clk/qcom/clk-ipq-cmn-pll.c: In function 'ipq_cmn_pll_config':
>> drivers/clk/qcom/clk-ipq-cmn-pll.c:96:24: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
96 | val |= FIELD_PREP(CMN_PLL_REFCLK_INDEX, 3);
| ^~~~~~~~~~
vim +/FIELD_PREP +96 drivers/clk/qcom/clk-ipq-cmn-pll.c
77
78 static int ipq_cmn_pll_config(struct device *dev, unsigned long parent_rate)
79 {
80 void __iomem *base;
81 u32 val;
82
83 base = devm_of_iomap(dev, dev->of_node, 0, NULL);
84 if (IS_ERR(base))
85 return PTR_ERR(base);
86
87 val = readl(base + CMN_PLL_REFCLK_CONFIG);
88 val &= ~(CMN_PLL_REFCLK_EXTERNAL | CMN_PLL_REFCLK_INDEX);
89
90 /*
91 * Configure the reference input clock selection as per the given rate.
92 * The output clock rates are always of fixed value.
93 */
94 switch (parent_rate) {
95 case 25000000:
> 96 val |= FIELD_PREP(CMN_PLL_REFCLK_INDEX, 3);
97 break;
98 case 31250000:
99 val |= FIELD_PREP(CMN_PLL_REFCLK_INDEX, 4);
100 break;
101 case 40000000:
102 val |= FIELD_PREP(CMN_PLL_REFCLK_INDEX, 6);
103 break;
104 case 48000000:
105 val |= FIELD_PREP(CMN_PLL_REFCLK_INDEX, 7);
106 break;
107 case 50000000:
108 val |= FIELD_PREP(CMN_PLL_REFCLK_INDEX, 8);
109 break;
110 case 96000000:
111 val |= FIELD_PREP(CMN_PLL_REFCLK_INDEX, 7);
112 val &= ~CMN_PLL_REFCLK_DIV;
113 val |= FIELD_PREP(CMN_PLL_REFCLK_DIV, 2);
114 break;
115 default:
116 return -EINVAL;
117 }
118
119 writel(val, base + CMN_PLL_REFCLK_CONFIG);
120
121 /* Update the source clock rate selection. Only 96 MHZ uses 0. */
122 val = readl(base + CMN_PLL_REFCLK_SRC_SELECTION);
123 val &= ~CMN_PLL_REFCLK_SRC_DIV;
124 if (parent_rate != 96000000)
125 val |= FIELD_PREP(CMN_PLL_REFCLK_SRC_DIV, 1);
126
127 writel(val, base + CMN_PLL_REFCLK_SRC_SELECTION);
128
129 /*
130 * Reset the common PLL block by asserting/de-asserting for 100 ms
131 * each, to ensure the updated configurations take effect.
132 */
133 val = readl(base + CMN_PLL_POWER_ON_AND_RESET);
134 val &= ~CMN_ANA_EN_SW_RSTN;
135 writel(val, base);
136 msleep(100);
137
138 val |= CMN_ANA_EN_SW_RSTN;
139 writel(val, base + CMN_PLL_POWER_ON_AND_RESET);
140 msleep(100);
141
142 return 0;
143 }
144
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-08-10 23:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-08 14:03 [PATCH 0/4] Add common PLL clock controller driver for IPQ9574 Luo Jie
2024-08-08 14:03 ` [PATCH 1/4] dt-bindings: clock: qcom: Add common PLL clock controller for IPQ SoC Luo Jie
2024-08-08 14:38 ` Krzysztof Kozlowski
2024-08-09 13:01 ` Jie Luo
2024-08-10 11:30 ` Krzysztof Kozlowski
2024-08-14 15:13 ` Jie Luo
2024-08-08 14:03 ` [PATCH 2/4] clk: qcom: Add common PLL clock controller driver " Luo Jie
2024-08-10 23:53 ` kernel test robot [this message]
2024-08-08 14:03 ` [PATCH 3/4] arm64: defconfig: Enable Qualcomm IPQ common PLL clock controller Luo Jie
2024-08-08 14:41 ` Krzysztof Kozlowski
2024-08-09 11:36 ` Jie Luo
2024-08-09 13:34 ` Andrew Lunn
2024-08-13 12:07 ` Jie Luo
2024-08-08 14:03 ` [PATCH 4/4] arm64: dts: qcom: Add common PLL node for IPQ9574 SoC Luo Jie
2024-08-08 14:45 ` Krzysztof Kozlowski
2024-08-09 11:23 ` Jie Luo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202408110756.rSXn1ZRu-lkp@intel.com \
--to=lkp@intel.com \
--cc=andersson@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=quic_kkumarcs@quicinc.com \
--cc=quic_leiwei@quicinc.com \
--cc=quic_linchen@quicinc.com \
--cc=quic_luoj@quicinc.com \
--cc=quic_pavir@quicinc.com \
--cc=quic_suruchia@quicinc.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox