> -----Original Message----- > From: Andrei Pistirica [mailto:andrei.pistir...@microchip.com] > Sent: 19 stycznia 2017 16:56 > Subject: [PATCH net-next v2] macb: Common code to enable ptp support for > MACB/GEM > > > +static inline bool gem_has_ptp(struct macb *bp) > +{ > + return !!(bp->caps & MACB_CAPS_GEM_HAS_PTP); > +} Why don't you use hardware capabilities here? Would it be better to read it from hardware instead adding it to many configuration?
- [PATCH net-next v2] macb: Common code to enable ptp suppo... Andrei Pistirica
- Re: [PATCH net-next v2] macb: Common code to enable ... Nicolas Ferre
- Re: [PATCH net-next v2] macb: Common code to ena... Nicolas Ferre
- Re: [PATCH net-next v2] macb: Common code to... Harini Katakam
- RE: [PATCH net-next v2] macb: Common code to enable ... Rafal Ozieblo
- Re: [PATCH net-next v2] macb: Common code to ena... Harini Katakam
- Re: [PATCH net-next v2] macb: Common code to... Nicolas Ferre
- RE: [PATCH net-next v2] macb: Common code to... Rafal Ozieblo
- Re: [PATCH net-next v2] macb: Common cod... Nicolas Ferre
- RE: [PATCH net-next v2] macb: Commo... Rafal Ozieblo