Commit fc793973 authored by Alessandro Rubini's avatar Alessandro Rubini

TEMPORARY: print calls to enable_timing_output

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 7bcf05f9
......@@ -61,10 +61,13 @@ int wrpc_spll_enable_ptracker(struct pp_instance *ppi)
int wrpc_enable_timing_output(struct pp_instance *ppi, int enable)
{
pp_printf("%s(%i) from %p\n", __func__, enable,
__builtin_return_address(0));
if (enable == WR_DSPOR(ppi)->ppsOutputOn)
return WR_SPLL_OK;
WR_DSPOR(ppi)->ppsOutputOn = enable;
pp_printf("%s: do it\n", __func__);
shw_pps_gen_enable_output(enable);
return WR_SPLL_OK;
}
......
......@@ -16,10 +16,13 @@ static int wr_init(struct pp_instance *ppi, unsigned char *pkt, int plen)
wrp->parentWrModeOn = 0;
wrp->calibrated = !WR_DEFAULT_PHY_CALIBRATION_REQUIRED;
if ((wrp->wrConfig & WR_M_AND_S) == WR_M_ONLY)
if ((wrp->wrConfig & WR_M_AND_S) == WR_M_ONLY) {
pp_printf("%s: enable 1\n", __func__);
wrp->ops->enable_timing_output(ppi, 1);
else
} else {
pp_printf("%s: enable 0\n", __func__);
wrp->ops->enable_timing_output(ppi, 0);
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment