aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2025-03-12 22:15:52 +0000
committerPaolo Abeni <[email protected]>2025-03-20 07:50:03 +0000
commitc0b4ddd30871c59043ed3592e6abeee55c3bf045 (patch)
tree7921d986d1ac59b24d9e1059f738b7e92141265d /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentrenesas: reject PTP_STRICT_FLAGS as unsupported (diff)
downloadkernel-c0b4ddd30871c59043ed3592e6abeee55c3bf045.tar.gz
kernel-c0b4ddd30871c59043ed3592e6abeee55c3bf045.zip
net: lan743x: reject unsupported external timestamp requests
The lan743x_ptp_io_event_cap_en() function checks that the given request sets only one of PTP_RISING_EDGE or PTP_FALLING_EDGE, but not both. However, this driver does not check whether other flags (such as PTP_EXT_OFF) are set, nor whether any future unrecognized flags are set. Fix this by adding the appropriate check to the lan743x_ptp_io_extts() function. Fixes: 60942c397af6 ("net: lan743x: Add support for PTP-IO Event Input External Timestamp (extts)") Signed-off-by: Jacob Keller <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/20250312-jk-net-fixes-supported-extts-flags-v2-3-ea930ba82459@intel.com Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions