summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDamon Ding <damon.ding@rock-chips.com>2026-08-28 14:51:50 +0800
committerLuca Ceresoli <luca.ceresoli@bootlin.com>2026-09-09 15:36:12 +0200
commit6eac4c8bb10302abc0ea0bd1d506c46ec789ce2b (patch)
tree921d6415f34912547bf5e836415ae37822cb0628 /tools/perf/scripts/python
parentaf9b0fc07000db17656580fd38e5ff27c36c2ab9 (diff)
downloadlinux-6eac4c8bb10302abc0ea0bd1d506c46ec789ce2b.tar.gz
linux-6eac4c8bb10302abc0ea0bd1d506c46ec789ce2b.zip
drm/dp: Add helper to validate DP lane counts
Add a generic helper function drm_dp_lane_count_is_valid() to check if a DisplayPort lane count is valid. According to the DP specification, only 1, 2, or 4 lanes are supported. This helper avoids duplicating DP lane count validation logic across individual DisplayPort drivers. Suggested-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Damon Ding <damon.ding@rock-chips.com> Link: https://patch.msgid.link/20260828065153.590802-3-damon.ding@rock-chips.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions