RE: [PATCH net-next v5 1/2] qed: Add infrastructure for PTP support

2017-02-13 Thread Mintz, Yuval
> > +static int qed_ptp_hw_adjfreq(struct qed_dev *cdev, s32 ppb) { > > + struct qed_hwfn *p_hwfn = QED_LEADING_HWFN(cdev); > > + struct qed_ptt *p_ptt = p_hwfn->p_ptp_ptt; > > + int drift_dir, best_val, best_period; > > + s64 period, dif, dif2; > > + u32 drift_ctr_cfg = 0; > > + s64

Re: [PATCH net-next v5 1/2] qed: Add infrastructure for PTP support

2017-02-13 Thread Richard Cochran
On Mon, Feb 13, 2017 at 03:46:25PM +0200, Yuval Mintz wrote: > +static int qed_ptp_hw_adjfreq(struct qed_dev *cdev, s32 ppb) > +{ > + struct qed_hwfn *p_hwfn = QED_LEADING_HWFN(cdev); > + struct qed_ptt *p_ptt = p_hwfn->p_ptp_ptt; > + int drift_dir, best_val, best_period; > + s64