From: "Arnd Bergmann" <arnd@arndb.de>
To: "Manivannan Sadhasivam" <mani@kernel.org>,
"Arnd Bergmann" <arnd@kernel.org>
Cc: "Vinod Koul" <vkoul@kernel.org>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@oss.qualcomm.com>,
"Thinh Nguyen" <Thinh.Nguyen@synopsys.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Krishna Kurapati" <krishna.kurapati@oss.qualcomm.com>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Kees Cook" <kees+treewide@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org,
"Sasha Levin" <sashal@kernel.org>
Subject: Re: [PATCH] phy: qcom-uniphy: avoid build failure from duplicate PHY_TYPE_PCIE
Date: Fri, 27 Nov 2026 19:29:00 +0100 [thread overview]
Message-ID: <ad645fc2-9b2f-49ba-98c2-8ccda8899e18@app.fastmail.com> (raw)
In-Reply-To: <179579549935.13164.15609895718346972637.b4-reply@b4>
On Fri, Nov 27, 2026, at 17:04, Manivannan Sadhasivam wrote:
> On 2026-11-24 11:59 +0100, Arnd Bergmann wrote:
>> From: Arnd Bergmann <arnd@arndb.de>
>>
>> Both the DT-binding and the driver define a PHY_TYPE_PCIE constant,
>> which clashes at compile time:
>>
>> In file included from include/linux/phy/phy.h:25,
>> from drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:15:
>> include/dt-bindings/phy/phy.h:15:33: error: expected identifier before numeric constant
>> 15 | #define PHY_TYPE_PCIE 2
>> | ^
>> drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:47:9: note: in expansion of macro 'PHY_TYPE_PCIE'
>> 47 | PHY_TYPE_PCIE = 1,
>> | ^~~~~~~~~~~~~
>> drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:127:27: error: 'PHY_TYPE_PCIE_GEN2' undeclared here (not in a function); did you mean 'PHY_TYPE_PCIE'?
>> 127 | .phy_type = PHY_TYPE_PCIE_GEN2,
>> | ^~~~~~~~~~~~~~~~~~
>> | PHY_TYPE_PCIE
>> drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:135:27: error: 'PHY_TYPE_PCIE_GEN3' undeclared here (not in a function); did you mean 'PHY_TYPE_PCIE'?
>> 135 | .phy_type = PHY_TYPE_PCIE_GEN3,
>> | ^~~~~~~~~~~~~~~~~~
>> | PHY_TYPE_PCIE
>>
>> Nothing uses the definition in the driver, so just remove it.
>>
>> Fixes: b28eecc89399 ("include: linux: phy: Add phy attribute "type" and associated helpers")
>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>
> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
FWIW, this is already fixed in linux-next by 90d6263e867b ("phy: qcom:
uniphy-pcie-28lp: Rename the PHY type enum values"), which renames
the constants instead of removing them. I assume we'll leave it at that
version.
Arnd
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
prev parent reply other threads:[~2026-11-27 18:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 10:59 [PATCH] phy: qcom-uniphy: avoid build failure from duplicate PHY_TYPE_PCIE Arnd Bergmann
2026-11-27 16:04 ` Manivannan Sadhasivam
2026-11-27 18:29 ` Arnd Bergmann [this message]
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=ad645fc2-9b2f-49ba-98c2-8ccda8899e18@app.fastmail.com \
--to=arnd@arndb.de \
--cc=Thinh.Nguyen@synopsys.com \
--cc=arnd@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=kees+treewide@kernel.org \
--cc=krishna.kurapati@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=mani@kernel.org \
--cc=manivannan.sadhasivam@oss.qualcomm.com \
--cc=neil.armstrong@linaro.org \
--cc=sashal@kernel.org \
--cc=vkoul@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