diff options
author | Jonathan Lemon | 2021-06-28 11:25:33 -0700 |
---|---|---|
committer | David S. Miller | 2021-06-29 11:29:37 -0700 |
commit | 8602e40fc8132383298f304ae060d80f210be23c (patch) | |
tree | fc67c0d13d9b55d9768f630c544e1ba6e75c1a07 /drivers/ptp | |
parent | c79fa61c94f7a7aa7a185509fca1e1ae5c44ab23 (diff) |
ptp: Set lookup cookie when creating a PTP PPS source.
When creating a PTP device, the configuration block allows
creation of an associated PPS device. However, there isn't
any way to associate the two devices after creation.
Set the PPS cookie, so pps_lookup_dev(ptp) performs correctly.
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp')
-rw-r--r-- | drivers/ptp/ptp_clock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c index 841d8900504d..a23a37a4d5dc 100644 --- a/drivers/ptp/ptp_clock.c +++ b/drivers/ptp/ptp_clock.c @@ -218,6 +218,7 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info, pr_err("failed to create ptp aux_worker %d\n", err); goto kworker_err; } + ptp->pps_source->lookup_cookie = ptp; } err = ptp_populate_pin_groups(ptp); |