Skip to contentSkip to conversation

drm/i915: convert remaining intel_dp_vsc_sdp_pack

PATCH Applied Rodrigo Vivi 3 participants 4 messages Feb 23, 2024

Subsystems (3)
lore
Share & tools
lore

Rodrigo Vivi

author maintainer
#0 lore raw

PATCH 1/1 drm/i915: convert remaining intel_dp_vsc_sdp_pack

Commit 47f419e07111 ("drm/dp: move intel_dp_vsc_sdp_pack() to generic helper") and commit b55b88d86fec ("drm/dp: drop the size parameter from drm_dp_vsc_sdp_pack()") were based on top of a tree containing the
commit 31a5b6ed88c7 ("drm/i915/display: Unify VSC SPD preparation") but landed in a tree where this commit didn't exist, leaving behind a spurious case calling for a removed function: intel_dp_vsc_sdp_pack()

Let's convert the remaining case here so we can port this patch to any tree that doesn't contain
commit 31a5b6ed88c7 ("drm/i915/display: Unify VSC SPD preparation")

In in kind of merge where this commit does exist, this line here will be gone anyway and not needed any longer.

Fixes 47f419e07111 ("drm/dp: move intel_dp_vsc_sdp_pack() to generic helper")
Cc Dave Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Abhinav Kumar <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Thomas Zimmermann <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_dp.c +1 -1
index 756c15791a3c..c2e73ba5b2b1 100644
@@ -4229,7 +4229,7 @@ void intel_write_dp_vsc_sdp(struct intel_encoder *encoder,
 	struct dp_sdp sdp = {};
 	ssize_t len;
 
-	len = intel_dp_vsc_sdp_pack(vsc, &sdp, sizeof(sdp));
+	len = drm_dp_vsc_sdp_pack(vsc, &sdp);
 
 	if (drm_WARN_ON(&dev_priv->drm, len < 0))
 		return;
Signature · 1 line
2.43.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Rodrigo Vivi

Commit 47f419e07111 ("drm/dp: move intel_dp_vsc_sdp_pack() to generic helper") and commit b55b88d86fec ("drm/dp: drop the size parameter from drm_dp_vsc_sdp_pack()") were based on top of a tree containing the
commit 31a5b6ed88c7 ("drm/i915/display: Unify VSC SPD preparation") but landed in a tree where this commit didn't exist, leaving behind a spurious case calling for a removed function: intel_dp_vsc_sdp_pack()

Let's convert the remaining case here so we can port this patch to any tree that doesn't contain
commit 31a5b6ed88c7 ("drm/i915/display: Unify VSC SPD preparation")

In in kind of merge where this commit does exist, this line here will be gone anyway and not needed any longer.

Quoted 9 lines
Fixes 47f419e07111 ("drm/dp: move intel_dp_vsc_sdp_pack() to generic helper")
Cc Dave Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Abhinav Kumar <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Thomas Zimmermann <[email protected]>
Reviewed-by on v1 1/1
#2 lore raw
In reply to Rodrigo Vivi
Quoted 24 lines · Rodrigo Vivi

Commit 47f419e07111 ("drm/dp: move intel_dp_vsc_sdp_pack() to generic helper") and commit b55b88d86fec ("drm/dp: drop the size parameter from drm_dp_vsc_sdp_pack()") were based on top of a tree containing the
commit 31a5b6ed88c7 ("drm/i915/display: Unify VSC SPD preparation") but landed in a tree where this commit didn't exist, leaving behind a spurious case calling for a removed function: intel_dp_vsc_sdp_pack()

Let's convert the remaining case here so we can port this patch to any tree that doesn't contain
commit 31a5b6ed88c7 ("drm/i915/display: Unify VSC SPD preparation")

In in kind of merge where this commit does exist, this line here will be gone anyway and not needed any longer.

Fixes 47f419e07111 ("drm/dp: move intel_dp_vsc_sdp_pack() to generic helper")
Cc Dave Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Abhinav Kumar <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Thomas Zimmermann <[email protected]>
Quoted 3 lines
---
 drivers/gpu/drm/i915/display/intel_dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 2 lines
With best wishes
Dmitry
#3 lore raw
In reply to Rodrigo Vivi
Quoted 8 lines · Rodrigo Vivi

Commit 47f419e07111 ("drm/dp: move intel_dp_vsc_sdp_pack() to generic helper") and commit b55b88d86fec ("drm/dp: drop the size parameter from drm_dp_vsc_sdp_pack()") were based on top of a tree containing the
commit 31a5b6ed88c7 ("drm/i915/display: Unify VSC SPD preparation") but landed in a tree where this commit didn't exist, leaving behind a spurious case calling for a removed function: intel_dp_vsc_sdp_pack()

[...]

Applied to drm-misc-next, thanks!

[1/1] drm/i915: convert remaining intel_dp_vsc_sdp_pack

      commit: de8de2c8acb931ce6197a04376a7078ccf50e821

Best regards,

Signature · 1 line
Dmitry Baryshkov <[email protected]>