]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: Set lookup cookie when creating a PTP PPS source.
authorJonathan Lemon <jonathan.lemon@gmail.com>
Mon, 28 Jun 2021 18:25:33 +0000 (11:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jun 2021 18:29:37 +0000 (11:29 -0700)
commita8c1e90a0c6c81eaca3039486dc784f5aa0cbef2
treefc67c0d13d9b55d9768f630c544e1ba6e75c1a07
parent36574b5014d7cc6f2c9586a1f892a1b49a6ff8d5
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>
drivers/ptp/ptp_clock.c