ptp: drivers: set the number of programmable pins.
authorRichard Cochran <richardcochran@gmail.com>
Thu, 20 Mar 2014 21:21:55 +0000 (22:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Mar 2014 18:21:14 +0000 (14:21 -0400)
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>
12 files changed:
drivers/net/ethernet/adi/bfin_mac.c
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/freescale/fec_ptp.c
drivers/net/ethernet/freescale/gianfar_ptp.c
drivers/net/ethernet/intel/e1000e/ptp.c
drivers/net/ethernet/mellanox/mlx4/en_clock.c
drivers/net/ethernet/sfc/ptp.c
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c
drivers/net/ethernet/ti/cpts.c
drivers/net/ethernet/tile/tilegx.c
drivers/ptp/ptp_ixp46x.c
drivers/ptp/ptp_pch.c

index c0f68dcd1dc125c422d4d1d084b331a01beee2b3..83a8cdbcd936135c15a8d497742b2c2d59104bfb 100644 (file)
@@ -1040,6 +1040,7 @@ static struct ptp_clock_info bfin_ptp_caps = {
        .n_alarm        = 0,
        .n_ext_ts       = 0,
        .n_per_out      = 0,
+       .n_pins         = 0,
        .pps            = 0,
        .adjfreq        = bfin_ptp_adjfreq,
        .adjtime        = bfin_ptp_adjtime,
index bbbd2a4bc161c13a1cc4c5bd74c1773cf22d3332..37422af9ef13f33135646bf55706767ded577b38 100644 (file)
@@ -6322,6 +6322,7 @@ static const struct ptp_clock_info tg3_ptp_caps = {
        .n_alarm        = 0,
        .n_ext_ts       = 0,
        .n_per_out      = 1,
+       .n_pins         = 0,
        .pps            = 0,
        .adjfreq        = tg3_ptp_adjfreq,
        .adjtime        = tg3_ptp_adjtime,
index 89ccb5b087080005f1629605804957a7487d71a8..82386b29914a8640bd2e17f956bdd0946fc5c3ce 100644 (file)
@@ -372,6 +372,7 @@ void fec_ptp_init(struct platform_device *pdev)
        fep->ptp_caps.n_alarm = 0;
        fep->ptp_caps.n_ext_ts = 0;
        fep->ptp_caps.n_per_out = 0;
+       fep->ptp_caps.n_pins = 0;
        fep->ptp_caps.pps = 0;
        fep->ptp_caps.adjfreq = fec_ptp_adjfreq;
        fep->ptp_caps.adjtime = fec_ptp_adjtime;
index abc28da2704210e6a7143bc140b22a5c500d33ce..bb568006f37df605e808d1d6c7195a09b6e8d48f 100644 (file)
@@ -414,6 +414,7 @@ static struct ptp_clock_info ptp_gianfar_caps = {
        .n_alarm        = 0,
        .n_ext_ts       = N_EXT_TS,
        .n_per_out      = 0,
+       .n_pins         = 0,
        .pps            = 1,
        .adjfreq        = ptp_gianfar_adjfreq,
        .adjtime        = ptp_gianfar_adjtime,
index 3bd79a3ff8295f306ebdd22ffee782de858389a5..fb1a914a3ad4dc98cf4da0cfc0ad7271a8a12488 100644 (file)
@@ -189,6 +189,7 @@ static const struct ptp_clock_info e1000e_ptp_clock_info = {
        .n_alarm        = 0,
        .n_ext_ts       = 0,
        .n_per_out      = 0,
+       .n_pins         = 0,
        .pps            = 0,
        .adjfreq        = e1000e_phc_adjfreq,
        .adjtime        = e1000e_phc_adjtime,
index abaf6bb22416232fc055f3ef8b6c414be701734d..57dda95b67d8d4325e19f03b6d01f982cfc54cb7 100644 (file)
@@ -276,6 +276,7 @@ static const struct ptp_clock_info mlx4_en_ptp_clock_info = {
        .n_alarm        = 0,
        .n_ext_ts       = 0,
        .n_per_out      = 0,
+       .n_pins         = 0,
        .pps            = 0,
        .adjfreq        = mlx4_en_phc_adjfreq,
        .adjtime        = mlx4_en_phc_adjtime,
index 722344fcd155f095fbfcd39ba2e4aa960d31a1f4..6b861e3de4b0d0655879e5bb5740855d6b9c251d 100644 (file)
@@ -1194,6 +1194,7 @@ static const struct ptp_clock_info efx_phc_clock_info = {
        .n_alarm        = 0,
        .n_ext_ts       = 0,
        .n_per_out      = 0,
+       .n_pins         = 0,
        .pps            = 1,
        .adjfreq        = efx_phc_adjfreq,
        .adjtime        = efx_phc_adjtime,
index 7680581ebe12fe58a60de42b419467e3f2f065f7..b7ad3565566cc8a09b7964fcb59aca3921e8e57c 100644 (file)
@@ -164,6 +164,7 @@ static struct ptp_clock_info stmmac_ptp_clock_ops = {
        .n_alarm = 0,
        .n_ext_ts = 0,
        .n_per_out = 0,
+       .n_pins = 0,
        .pps = 0,
        .adjfreq = stmmac_adjust_freq,
        .adjtime = stmmac_adjust_time,
index 8c351f100acac5335aedeba235b395bd4330a109..372cb192c5aaadb1238a8bb50862c4b7a5155008 100644 (file)
@@ -217,6 +217,7 @@ static struct ptp_clock_info cpts_info = {
        .name           = "CTPS timer",
        .max_adj        = 1000000,
        .n_ext_ts       = 0,
+       .n_pins         = 0,
        .pps            = 0,
        .adjfreq        = cpts_ptp_adjfreq,
        .adjtime        = cpts_ptp_adjtime,
index b43f1b3b9632ad7574d8819d7c341c640bafc4eb..7e1c91d41a87ff2a4e065718d4caaf84c7db8020 100644 (file)
@@ -873,6 +873,7 @@ static struct ptp_clock_info ptp_mpipe_caps = {
        .name           = "mPIPE clock",
        .max_adj        = 999999999,
        .n_ext_ts       = 0,
+       .n_pins         = 0,
        .pps            = 0,
        .adjfreq        = ptp_mpipe_adjfreq,
        .adjtime        = ptp_mpipe_adjtime,
index 4a08727fcaf39b55f409c005863603215c9b27cb..604d340f20956bc1d0df55cc692d76d0f313df02 100644 (file)
@@ -244,6 +244,7 @@ static struct ptp_clock_info ptp_ixp_caps = {
        .name           = "IXP46X timer",
        .max_adj        = 66666655,
        .n_ext_ts       = N_EXT_TS,
+       .n_pins         = 0,
        .pps            = 0,
        .adjfreq        = ptp_ixp_adjfreq,
        .adjtime        = ptp_ixp_adjtime,
index 71a2559278d7a0d41bf773edcf5219f35462ddb1..90a106308c4f7ee21fd12565cbc1ff429f2eebde 100644 (file)
@@ -514,6 +514,7 @@ static struct ptp_clock_info ptp_pch_caps = {
        .name           = "PCH timer",
        .max_adj        = 50000000,
        .n_ext_ts       = N_EXT_TS,
+       .n_pins         = 0,
        .pps            = 0,
        .adjfreq        = ptp_pch_adjfreq,
        .adjtime        = ptp_pch_adjtime,