Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ptp: clarify the clock_name sysfs attribute

There has been some confusion among PHC driver authors about the
intended purpose of the clock_name attribute. This patch expands the
documation in order to clarify how the clock_name field should be
understood.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Richard Cochran and committed by
David S. Miller
de465846 1ef76158

+8 -2
+5 -1
Documentation/ABI/testing/sysfs-ptp
··· 19 19 Contact: Richard Cochran <richardcochran@gmail.com> 20 20 Description: 21 21 This file contains the name of the PTP hardware clock 22 - as a human readable string. 22 + as a human readable string. The purpose of this 23 + attribute is to provide the user with a "friendly 24 + name" and to help distinguish PHY based devices from 25 + MAC based ones. The string does not necessarily have 26 + to be any kind of unique id. 23 27 24 28 What: /sys/class/ptp/ptpN/max_adjustment 25 29 Date: September 2010
+3 -1
include/linux/ptp_clock_kernel.h
··· 42 42 * struct ptp_clock_info - decribes a PTP hardware clock 43 43 * 44 44 * @owner: The clock driver should set to THIS_MODULE. 45 - * @name: A short name to identify the clock. 45 + * @name: A short "friendly name" to identify the clock and to 46 + * help distinguish PHY based devices from MAC based ones. 47 + * The string is not meant to be a unique id. 46 48 * @max_adj: The maximum possible frequency adjustment, in parts per billon. 47 49 * @n_alarm: The number of programmable alarms. 48 50 * @n_ext_ts: The number of external time stamp channels.