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

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>

authored by

Jonathan Lemon and committed by
David S. Miller
8602e40f c79fa61c

+1
+1
drivers/ptp/ptp_clock.c
··· 218 218 pr_err("failed to create ptp aux_worker %d\n", err); 219 219 goto kworker_err; 220 220 } 221 + ptp->pps_source->lookup_cookie = ptp; 221 222 } 222 223 223 224 err = ptp_populate_pin_groups(ptp);