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

ptp: drivers: set the number of programmable pins.

This patch updates the many PTP Hardware Clock drivers with the
newly introduced field that advertises the number of programmable
pins. Some of these devices do have programmable pins, but the
implementation will have to wait for follow on patches.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Richard Cochran and committed by
David S. Miller
4986b4f0 653104d1

+12
+1
drivers/net/ethernet/adi/bfin_mac.c
··· 1040 1040 .n_alarm = 0, 1041 1041 .n_ext_ts = 0, 1042 1042 .n_per_out = 0, 1043 + .n_pins = 0, 1043 1044 .pps = 0, 1044 1045 .adjfreq = bfin_ptp_adjfreq, 1045 1046 .adjtime = bfin_ptp_adjtime,
+1
drivers/net/ethernet/broadcom/tg3.c
··· 6322 6322 .n_alarm = 0, 6323 6323 .n_ext_ts = 0, 6324 6324 .n_per_out = 1, 6325 + .n_pins = 0, 6325 6326 .pps = 0, 6326 6327 .adjfreq = tg3_ptp_adjfreq, 6327 6328 .adjtime = tg3_ptp_adjtime,
+1
drivers/net/ethernet/freescale/fec_ptp.c
··· 372 372 fep->ptp_caps.n_alarm = 0; 373 373 fep->ptp_caps.n_ext_ts = 0; 374 374 fep->ptp_caps.n_per_out = 0; 375 + fep->ptp_caps.n_pins = 0; 375 376 fep->ptp_caps.pps = 0; 376 377 fep->ptp_caps.adjfreq = fec_ptp_adjfreq; 377 378 fep->ptp_caps.adjtime = fec_ptp_adjtime;
+1
drivers/net/ethernet/freescale/gianfar_ptp.c
··· 414 414 .n_alarm = 0, 415 415 .n_ext_ts = N_EXT_TS, 416 416 .n_per_out = 0, 417 + .n_pins = 0, 417 418 .pps = 1, 418 419 .adjfreq = ptp_gianfar_adjfreq, 419 420 .adjtime = ptp_gianfar_adjtime,
+1
drivers/net/ethernet/intel/e1000e/ptp.c
··· 189 189 .n_alarm = 0, 190 190 .n_ext_ts = 0, 191 191 .n_per_out = 0, 192 + .n_pins = 0, 192 193 .pps = 0, 193 194 .adjfreq = e1000e_phc_adjfreq, 194 195 .adjtime = e1000e_phc_adjtime,
+1
drivers/net/ethernet/mellanox/mlx4/en_clock.c
··· 276 276 .n_alarm = 0, 277 277 .n_ext_ts = 0, 278 278 .n_per_out = 0, 279 + .n_pins = 0, 279 280 .pps = 0, 280 281 .adjfreq = mlx4_en_phc_adjfreq, 281 282 .adjtime = mlx4_en_phc_adjtime,
+1
drivers/net/ethernet/sfc/ptp.c
··· 1194 1194 .n_alarm = 0, 1195 1195 .n_ext_ts = 0, 1196 1196 .n_per_out = 0, 1197 + .n_pins = 0, 1197 1198 .pps = 1, 1198 1199 .adjfreq = efx_phc_adjfreq, 1199 1200 .adjtime = efx_phc_adjtime,
+1
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c
··· 164 164 .n_alarm = 0, 165 165 .n_ext_ts = 0, 166 166 .n_per_out = 0, 167 + .n_pins = 0, 167 168 .pps = 0, 168 169 .adjfreq = stmmac_adjust_freq, 169 170 .adjtime = stmmac_adjust_time,
+1
drivers/net/ethernet/ti/cpts.c
··· 217 217 .name = "CTPS timer", 218 218 .max_adj = 1000000, 219 219 .n_ext_ts = 0, 220 + .n_pins = 0, 220 221 .pps = 0, 221 222 .adjfreq = cpts_ptp_adjfreq, 222 223 .adjtime = cpts_ptp_adjtime,
+1
drivers/net/ethernet/tile/tilegx.c
··· 873 873 .name = "mPIPE clock", 874 874 .max_adj = 999999999, 875 875 .n_ext_ts = 0, 876 + .n_pins = 0, 876 877 .pps = 0, 877 878 .adjfreq = ptp_mpipe_adjfreq, 878 879 .adjtime = ptp_mpipe_adjtime,
+1
drivers/ptp/ptp_ixp46x.c
··· 244 244 .name = "IXP46X timer", 245 245 .max_adj = 66666655, 246 246 .n_ext_ts = N_EXT_TS, 247 + .n_pins = 0, 247 248 .pps = 0, 248 249 .adjfreq = ptp_ixp_adjfreq, 249 250 .adjtime = ptp_ixp_adjtime,
+1
drivers/ptp/ptp_pch.c
··· 514 514 .name = "PCH timer", 515 515 .max_adj = 50000000, 516 516 .n_ext_ts = N_EXT_TS, 517 + .n_pins = 0, 517 518 .pps = 0, 518 519 .adjfreq = ptp_pch_adjfreq, 519 520 .adjtime = ptp_pch_adjtime,