firewire: cdev: add PHY pinging
commitcc550216ae9a2993ef3973464714dc1a39ab1f86
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 18 Jul 2010 11:00:50 +0000 (18 13:00 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 23 Jul 2010 11:36:28 +0000 (23 13:36 +0200)
tree62ffde836c83fe44b7a9edc01d00bcb9ad4f4ad6
parentbf54e1462b9192fdef7ea9e2bc44fdc16a4b87bc
firewire: cdev: add PHY pinging

This extends the FW_CDEV_IOC_SEND_PHY_PACKET ioctl() for /dev/fw* to be
useful for ping time measurements.  One application for it would be gap
count optimization in userspace that is based on ping times rather than
hop count.  (The latter is implemented in firewire-core itself but is
not applicable to beta PHYs that act as repeater.)

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-cdev.c
drivers/firewire/core.h
drivers/firewire/ohci.c
include/linux/firewire-cdev.h