flexcan: use hardware timestamp
Hello,
I was wondering if the flexcan driver uses the hardware timestamp and by looking at the code under drivers/net/can/flexcan.c and did not find any access to those registers.
is there a special reason for this?
If not, I would try implementing to use skb_shared_hwtstamps...
Best Regards,
Sven
Marc Kleine-Budde
maintainerQuoted 6 lines · Sven Schuchmann
Hello,
I was wondering if the flexcan driver uses the hardware timestamp and by looking at the code underdrivers/net/can/flexcan.cand did not find any access to those registers.is there a special reason for this?
Yes, no one has implemented it yet :)
Quoted 1 line
If not, I would try implementing to use
skb_shared_hwtstamps...
Go ahead.
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Marc Kleine-Budde
maintainerQuoted 11 lines · Marc Kleine-Budde
Quoted 6 lines · Sven Schuchmann
Hello,
I was wondering if the flexcan driver uses the hardware timestamp and by looking at the code underdrivers/net/can/flexcan.cand did not find any access to those registers.is there a special reason for this?
Yes, no one has implemented it yet :)
Quoted 1 line
If not, I would try implementing to use
skb_shared_hwtstamps...
I mean, go ahead implement hardware timestamps, but I haven't checked if skb_shared_hwtstamps is the correct interface.
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
On Mon, 29 Apr 2013 20:00:17 +0200, Marc Kleine-Budde <[email protected]>
Quoted 22 lines · wrote:
Quoted 19 lines · Marc Kleine-Budde
Quoted 11 lines · Sven Schuchmann
Hello,
I was wondering if the flexcan driver uses the hardware timestamp
and by looking at the code under
drivers/net/can/flexcan.cand didnot find any access to those registers.
is there a special reason for this?
Yes, no one has implemented it yet :)
Quoted 7 lines
Quoted 1 line
Quoted 1 line
If not, I would try implementing to use
skb_shared_hwtstamps...I mean, go ahead implement hardware timestamps, but I haven't checked if
skb_shared_hwtstampsis the correct interface.
Looks good according to:
http://lxr.linux.no/#linux+v3.9/Documentation/networking/timestamping.txt
http://lxr.linux.no/#linux+v3.9/Documentation/networking/timestamping/timestamping.c
Wolfgang,