From: Manivannan Sadhasivam <mani@kernel.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Arnd Bergmann <arnd@kernel.org>, Vinod Koul <vkoul@kernel.org>,
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: Mon, 30 Nov 2026 14:47:49 +0530 [thread overview]
Message-ID: <aw0_K4U01ql91MmC@debian> (raw)
In-Reply-To: <ad645fc2-9b2f-49ba-98c2-8ccda8899e18@app.fastmail.com>
On Fri, Nov 27, 2026 at 07:29:00PM +0100, Arnd Bergmann wrote:
> 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.
>
Ah okay. I'll drop this patch from pw then. Thanks!
- Mani
--
மணிவண்ணன் சதாசிவம்
prev parent reply other threads:[~2026-11-30 9:17 UTC|newest]
Thread overview: 4+ 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
2026-11-30 9:17 ` Manivannan Sadhasivam [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=aw0_K4U01ql91MmC@debian \
--to=mani@kernel.org \
--cc=Thinh.Nguyen@synopsys.com \
--cc=arnd@arndb.de \
--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=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