Commit 8602e40f authored by Jonathan Lemon's avatar Jonathan Lemon Committed by David S. Miller

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: default avatarJonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c79fa61c
...@@ -218,6 +218,7 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info, ...@@ -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); pr_err("failed to create ptp aux_worker %d\n", err);
goto kworker_err; goto kworker_err;
} }
ptp->pps_source->lookup_cookie = ptp;
} }
err = ptp_populate_pin_groups(ptp); err = ptp_populate_pin_groups(ptp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment