Commit 90780a6
committed
drm/i915/dp: Sanitize DPCD revision check in intel_dp_get_dsc_sink_cap()
Check only the eDP or the DP specific DPCD revision depending on the
sink type. Pass the corresponding revision to the function, which allows
getting the DSC caps of a branch device (in an MST topology, which has
its own DPCD and so DPCD revision).
While at it use DP_DPCD_REV_14 instead of open coding it and for clarity
add a separate function to read out the DSC capability on eDP.
v2:
- Use DP_DPCD_REV_14 instead of open coding it. (Stan)
- Check EDP_DCPD_REV/DPCD_REV in a clearer way. (Ville)
v3:
- Fix the read-out for eDP in intel_dp_detect().
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> (v1)
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> (v2)
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231011171606.2540078-1-imre.deak@intel.com1 parent 34d8311 commit 90780a6
1 file changed
Lines changed: 55 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3467 | 3467 | | |
3468 | 3468 | | |
3469 | 3469 | | |
3470 | | - | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
3471 | 3487 | | |
3472 | 3488 | | |
3473 | 3489 | | |
| |||
3480 | 3496 | | |
3481 | 3497 | | |
3482 | 3498 | | |
3483 | | - | |
3484 | | - | |
3485 | | - | |
3486 | | - | |
3487 | | - | |
3488 | | - | |
3489 | | - | |
3490 | | - | |
3491 | | - | |
3492 | | - | |
3493 | | - | |
3494 | | - | |
3495 | | - | |
| 3499 | + | |
| 3500 | + | |
3496 | 3501 | | |
3497 | | - | |
3498 | | - | |
3499 | | - | |
3500 | | - | |
3501 | | - | |
3502 | | - | |
| 3502 | + | |
3503 | 3503 | | |
3504 | | - | |
3505 | | - | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
| 3507 | + | |
3506 | 3508 | | |
| 3509 | + | |
| 3510 | + | |
| 3511 | + | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
| 3518 | + | |
| 3519 | + | |
3507 | 3520 | | |
3508 | 3521 | | |
3509 | 3522 | | |
| |||
3674 | 3687 | | |
3675 | 3688 | | |
3676 | 3689 | | |
3677 | | - | |
| 3690 | + | |
| 3691 | + | |
3678 | 3692 | | |
3679 | 3693 | | |
3680 | 3694 | | |
| |||
5342 | 5356 | | |
5343 | 5357 | | |
5344 | 5358 | | |
| 5359 | + | |
| 5360 | + | |
| 5361 | + | |
| 5362 | + | |
| 5363 | + | |
| 5364 | + | |
| 5365 | + | |
| 5366 | + | |
| 5367 | + | |
| 5368 | + | |
| 5369 | + | |
| 5370 | + | |
| 5371 | + | |
| 5372 | + | |
| 5373 | + | |
| 5374 | + | |
| 5375 | + | |
5345 | 5376 | | |
5346 | 5377 | | |
5347 | 5378 | | |
| |||
5386 | 5417 | | |
5387 | 5418 | | |
5388 | 5419 | | |
5389 | | - | |
5390 | | - | |
5391 | | - | |
| 5420 | + | |
5392 | 5421 | | |
5393 | 5422 | | |
5394 | 5423 | | |
| |||
0 commit comments