Skip to contentSkip to conversation

flexcan: use hardware timestamp

DISCUSSION Sven Schuchmann 3 participants 4 messages Apr 29, 2013 CAN network drivers

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 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.c and 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   |
#2 lore raw
Quoted 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 under drivers/net/can/flexcan.c and 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   |
#3 lore raw

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.c and did

not 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_hwtstamps is 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,