[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <C246CAC1457055469EF09E3A7AC4E11A4A5BB285@XAP-PVEXMBX01.xlnx.xilinx.com>
Date: Mon, 4 Jul 2016 12:36:05 +0000
From: Appana Durga Kedareswara Rao <appana.durga.rao@...inx.com>
To: Nicolas Ferre <nicolas.ferre@...el.com>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"mark.rutland@....com" <mark.rutland@....com>,
"Michal Simek" <michals@...inx.com>,
Soren Brinkmann <sorenb@...inx.com>,
"Punnaiah Choudary Kalluri" <punnaia@...inx.com>,
"f.fainelli@...il.com" <f.fainelli@...il.com>,
"andrew@...n.ch" <andrew@...n.ch>,
Anirudha Sarangi <anirudh@...inx.com>,
Harini Katakam <harinik@...inx.com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [RFC PATCH v2 2/4] net: ethernet: xilinx: Add gmii2rgmii
converter support
Hi Nicolas,
> >
> > #ifdef CONFIG_NET_VENDOR_XILINX
>
> You may need to have:
> #if defined(CONFIG_NET_VENDOR_XILINX) &&
> defined(CONFIG_XILINX_GMII2RGMII)
>
> > extern int gmii2rgmii_phyprobe(struct gmii2rgmii *xphy); #else extern
> > void gmii2rgmii_phyprobe(struct gmii2rgmii *xphy);
>
> No need for the line above...
>
> > void gmii2rgmii_phyprobe(struct gmii2rgmii *xphy) { }
>
> On one single line, like:
>
> static inline void gmii2rgmii_phyprobe(struct gmii2rgmii *xphy) { }
>
> > #endif
> > For me the changes are looking odd...
>
> For me, it's okay...
Ok will fix as you suggested...
>
> >
> > Other possible ways
> > 1) Put a config check around phyprobe api in the macb driver.
> > #ifdef CONFIG_XILINX_GMII2RGMII
> > gmii2rgmii_phyprobe(&bp->converter_phy);
> > #endif
>
> Nope!
>
> > 2) Select NET_VENDOR_XILINX in the macb Kconfig @ -22,6 +22,7 @@
> > config MACB
> > tristate "Cadence MACB/GEM support"
> > depends on HAS_DMA
> > select PHYLIB
> > + select NET_VENDOR_XILINX
>
>
>
> > Please let me know which one you prefer will fix that and will post v3...
>
> First one with my changes is the best. But maybe wait for more feedback...
Ok sure will wait and will post next version with your suggestion in case of no comments...
Regards,
Kedar.
>
> Bye,
> --
> Nicolas Ferre
Powered by blists - more mailing lists