[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <gouyqo3dtlbwc2ipm5edxpnrfjsgojzqoyrccjflkiwwfkdpfo@mdja2sovtnxr>
Date: Sat, 28 Dec 2024 11:09:49 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Manikanta Mylavarapu <quic_mmanikan@...cinc.com>
Cc: andersson@...nel.org, linus.walleij@...aro.org, robh@...nel.org,
krzk+dt@...nel.org, conor+dt@...nel.org, konradybcio@...nel.org,
mturquette@...libre.com, sboyd@...nel.org, linux-arm-msm@...r.kernel.org,
linux-gpio@...r.kernel.org, devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-clk@...r.kernel.org, quic_varada@...cinc.com, quic_srichara@...cinc.com
Subject: Re: [PATCH v3 2/6] dt-bindings: clock: qcom: gcc-ipq5424: add spi4
clocks
On Fri, Dec 27, 2024 at 12:54:42PM +0530, Manikanta Mylavarapu wrote:
> SPI protocol runs on serial engine 4. Hence we need to
> rename the spi0 clocks to spi4 clocks.
No, you do not need. Why spi0 is incorrect?
>
> However, renaming spi0 to spi4 will result in the following
> compilation error's.
> drivers/clk/qcom/gcc-ipq5424.c:2865:3: error: ‘GCC_QUPV3_SPI0_CLK’
> undeclared here
> drivers/clk/qcom/gcc-ipq5424.c:2866:3: error: ‘GCC_QUPV3_SPI0_CLK_SRC’
> undeclared here
Then do not rename... Sorry, but that part makes no sense. You must keep
ABI, so that's why you add new clocks.
>
> To add spi4 clocks without compilation error's, do not
> rename the spi0 clocks. Instead, duplicate the spi0 clock
> macros and rename them to spi4.
>
> After switching to spi4 clocks in the gcc-ipq5424 driver,
> remove the spi0 clock macros.
No. ABI.
Best regards,
Krzysztof
Powered by blists - more mailing lists