Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1436460

RE: [RFC PATCH v2 2/4] net: ethernet: xilinx: Add gmii2rgmii converter support

From Appana Durga Kedareswara Rao <appana.durga.rao@xilinx.com>
Newsgroups linux.kernel
Subject RE: [RFC PATCH v2 2/4] net: ethernet: xilinx: Add gmii2rgmii converter support
Date 2016-07-04 14:40 +0200
Message-ID <rRbkl-5Bp-3@gated-at.bofh.it> (permalink)
References <rR837-3Kh-7@gated-at.bofh.it> <rR837-3Kh-15@gated-at.bofh.it> <rR8Pv-419-9@gated-at.bofh.it> <rRaxY-55H-13@gated-at.bofh.it> <rRbkl-5Bp-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [RFC PATCH v2 2/4] net: ethernet: xilinx: Add gmii2rgmii  converter support Nicolas Ferre <nicolas.ferre@atmel.com> - 2016-07-04 12:00 +0200
  RE: [RFC PATCH v2 2/4] net: ethernet: xilinx: Add gmii2rgmii  converter support Appana Durga Kedareswara Rao <appana.durga.rao@xilinx.com> - 2016-07-04 13:50 +0200
    Re: [RFC PATCH v2 2/4] net: ethernet: xilinx: Add gmii2rgmii  converter support Nicolas Ferre <nicolas.ferre@atmel.com> - 2016-07-04 14:40 +0200
      RE: [RFC PATCH v2 2/4] net: ethernet: xilinx: Add gmii2rgmii  converter support Appana Durga Kedareswara Rao <appana.durga.rao@xilinx.com> - 2016-07-04 14:40 +0200

csiph-web