> -----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?
- Re: [PATCH net-next v2] macb: Common code to enable ptp sup... Nicolas Ferre
- Re: [PATCH net-next v2] macb: Common code to enable pt... Harini Katakam
- RE: [PATCH net-next v2] macb: Common code to enable pt... Rafal Ozieblo
- Re: [PATCH net-next v2] macb: Common code to enabl... Harini Katakam
- Re: [PATCH net-next v2] macb: Common code to e... Nicolas Ferre
- RE: [PATCH net-next v2] macb: Common code to e... Rafal Ozieblo
- Re: [PATCH net-next v2] macb: Common code ... Nicolas Ferre
- RE: [PATCH net-next v2] macb: Common ... Rafal Ozieblo