From: Arnd Bergmann <arnd@kernel.org>
To: 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>
Cc: Arnd Bergmann <arnd@arndb.de>,
Neil Armstrong <neil.armstrong@linaro.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Kees Cook <kees+treewide@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org
Subject: [PATCH] phy: qcom-uniphy: avoid build failure from duplicate PHY_TYPE_PCIE
Date: Tue, 24 Nov 2026 11:59:17 +0100 [thread overview]
Message-ID: <20261124105939.1440586-1-arnd@kernel.org> (raw)
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>
---
drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c b/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c
index ef8709ff0e16..499ff3ce3b28 100644
--- a/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c
+++ b/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c
@@ -43,12 +43,6 @@
#define PHY_CFG_EIOS_DTCT_REG 0x3e4
#define PHY_CFG_GEN3_ALIGN_HOLDOFF_TIME 0x3e8
-enum qcom_uniphy_pcie_type {
- PHY_TYPE_PCIE = 1,
- PHY_TYPE_PCIE_GEN2,
- PHY_TYPE_PCIE_GEN3,
-};
-
struct qcom_uniphy_pcie_regs {
u32 offset;
u32 val;
@@ -56,7 +50,6 @@ struct qcom_uniphy_pcie_regs {
struct qcom_uniphy_pcie_data {
int lane_offset; /* offset between the lane register bases */
- u32 phy_type;
const struct qcom_uniphy_pcie_regs *init_seq;
u32 init_seq_num;
u32 pipe_clk_rate;
@@ -124,7 +117,6 @@ static const struct qcom_uniphy_pcie_regs ipq5332_regs[] = {
static const struct qcom_uniphy_pcie_data ipq5018_data = {
.lane_offset = 0x800,
- .phy_type = PHY_TYPE_PCIE_GEN2,
.init_seq = ipq5018_regs,
.init_seq_num = ARRAY_SIZE(ipq5018_regs),
.pipe_clk_rate = 125 * MEGA,
@@ -132,7 +124,6 @@ static const struct qcom_uniphy_pcie_data ipq5018_data = {
static const struct qcom_uniphy_pcie_data ipq5332_data = {
.lane_offset = 0x800,
- .phy_type = PHY_TYPE_PCIE_GEN3,
.init_seq = ipq5332_regs,
.init_seq_num = ARRAY_SIZE(ipq5332_regs),
.pipe_clk_rate = 250 * MEGA,
--
2.53.0
WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd@kernel.org>
To: 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>
Cc: Arnd Bergmann <arnd@arndb.de>,
Neil Armstrong <neil.armstrong@linaro.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Kees Cook <kees+treewide@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org
Subject: [PATCH] phy: qcom-uniphy: avoid build failure from duplicate PHY_TYPE_PCIE
Date: Tue, 24 Nov 2026 11:59:17 +0100 [thread overview]
Message-ID: <20261124105939.1440586-1-arnd@kernel.org> (raw)
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>
---
drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c b/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c
index ef8709ff0e16..499ff3ce3b28 100644
--- a/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c
+++ b/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c
@@ -43,12 +43,6 @@
#define PHY_CFG_EIOS_DTCT_REG 0x3e4
#define PHY_CFG_GEN3_ALIGN_HOLDOFF_TIME 0x3e8
-enum qcom_uniphy_pcie_type {
- PHY_TYPE_PCIE = 1,
- PHY_TYPE_PCIE_GEN2,
- PHY_TYPE_PCIE_GEN3,
-};
-
struct qcom_uniphy_pcie_regs {
u32 offset;
u32 val;
@@ -56,7 +50,6 @@ struct qcom_uniphy_pcie_regs {
struct qcom_uniphy_pcie_data {
int lane_offset; /* offset between the lane register bases */
- u32 phy_type;
const struct qcom_uniphy_pcie_regs *init_seq;
u32 init_seq_num;
u32 pipe_clk_rate;
@@ -124,7 +117,6 @@ static const struct qcom_uniphy_pcie_regs ipq5332_regs[] = {
static const struct qcom_uniphy_pcie_data ipq5018_data = {
.lane_offset = 0x800,
- .phy_type = PHY_TYPE_PCIE_GEN2,
.init_seq = ipq5018_regs,
.init_seq_num = ARRAY_SIZE(ipq5018_regs),
.pipe_clk_rate = 125 * MEGA,
@@ -132,7 +124,6 @@ static const struct qcom_uniphy_pcie_data ipq5018_data = {
static const struct qcom_uniphy_pcie_data ipq5332_data = {
.lane_offset = 0x800,
- .phy_type = PHY_TYPE_PCIE_GEN3,
.init_seq = ipq5332_regs,
.init_seq_num = ARRAY_SIZE(ipq5332_regs),
.pipe_clk_rate = 250 * MEGA,
--
2.53.0
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next reply other threads:[~2026-11-24 10:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 10:59 Arnd Bergmann [this message]
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 16:04 ` Manivannan Sadhasivam
2026-11-27 18:29 ` Arnd Bergmann
2026-11-27 18:29 ` Arnd Bergmann
2026-11-30 9:17 ` Manivannan Sadhasivam
2026-11-30 9:17 ` Manivannan Sadhasivam
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=20261124105939.1440586-1-arnd@kernel.org \
--to=arnd@kernel.org \
--cc=Thinh.Nguyen@synopsys.com \
--cc=arnd@arndb.de \
--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=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.