Re: [PATCH v8 2/5] include: linux: phy: Add phy attribute "type" and associated helpers
From: Greg Kroah-Hartman
Date: Tue Nov 24 2026 - 09:23:48 EST
On Tue, Nov 24, 2026 at 10:18:06AM +0100, Arnd Bergmann wrote:
> On Sun, Sep 13, 2026, at 16:40, Krishna Kurapati wrote:
>
> > diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h
> > index ea47975e288a..038c2b58bbe1 100644
> > --- a/include/linux/phy/phy.h
> > +++ b/include/linux/phy/phy.h
> > @@ -21,6 +21,8 @@
> > #include <linux/phy/phy-lvds.h>
> > #include <linux/phy/phy-mipi-dphy.h>
> >
> > +#include <dt-bindings/phy/phy.h>
> > +
> > struct phy;
>
> This broke the build in linux-next because there are now two conflicting
> definitions of PHY_TYPE_PCIE visible in drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c:
>
> 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,
> | ^~~~~~~~~~~~~
>
> We probably just need to rename the enum values in phy-qcom-uniphy-pcie-28lp.c.
Already fixed in my tree, should be showing up on next linux-next.
thanks,
greg k-h