[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140829.195555.556471914848484099.davem@davemloft.net>
Date: Fri, 29 Aug 2014 19:55:55 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: peppe.cavallaro@...com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH (net.git) (v2)] stmmac: ptp: fix the reference clock
From: Giuseppe Cavallaro <peppe.cavallaro@...com>
Date: Wed, 27 Aug 2014 10:37:49 +0200
> The PTP reference clock, used for setting the addend in the Timestamp Addend
> Register, was erroneously hard-coded (as reported in the databook just as
> example).
>
> The patch removes the macro named: STMMAC_SYSCLOCK and allows to use a
> reference clock (clk_ptp_ref_i) that can be passed from the platform.
>
> If not passed, the main driver clock will be used as default; note that
> this can be fine on some platforms.
>
> Note that, prior this patch, using the old STMMAC_SYSCLOCK on some platforms,
> as side effect, the ptp clock can move faster/slower than the system clock.
>
> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@...com>
> ---
> v2: fixed the release function in case of the new clock is not provided by the
> platform.
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists