]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Enable PTP clock and timestamping for all functions on EF10
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 5 Dec 2013 21:28:42 +0000 (21:28 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 12 Dec 2013 22:07:16 +0000 (22:07 +0000)
commit2286df39ac01d321d4263b25f4775b09cbe3ad72
treee08aa4194585d5d8eecb3755946a4f9482f98a90
parent9367b73795aae845b7b1bc2ed5cc22203cf6d9a7
sfc: Enable PTP clock and timestamping for all functions on EF10

The SFC9100 family has only one clock per controller, shared by all
functions.  Therefore only create a clock device under the primary
function, and make all other functions refer to the primary's clock
device.

Since PTP functionality is limited to port 0 and PF 0 on the earlier
SFN[56]322F boards, and we also set the primary flag for that
function, we can make the creation of a clock device conditional only
on this flag.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/ptp.c