[PATCH net-next v2] macb: Common code to enable ptp support for MACB/GEM

Rafal Ozieblo rafalo at cadence.com
Thu Jan 26 07:15:58 PST 2017


> -----Original Message-----
> From: Andrei Pistirica [mailto:andrei.pistirica at 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?




More information about the linux-arm-kernel mailing list