Imre Deak 4d49e77a97 drm/dp_mst: Verify request type in the corresponding down message reply
After receiving the response for an MST down request message, the
response should be accepted/parsed only if the response type matches
that of the request. Ensure this by checking if the request type code
stored both in the request and the reply match, dropping the reply in
case of a mismatch.

This fixes the topology detection for an MST hub, as described in the
Closes link below, where the hub sends an incorrect reply message after
a CLEAR_PAYLOAD_TABLE -> LINK_ADDRESS down request message sequence.

Cc: Lyude Paul <lyude@redhat.com>
Cc: <stable@vger.kernel.org>
Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12804
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241203160223.2926014-3-imre.deak@intel.com
2024-12-05 16:18:46 +02:00
..
2024-08-28 12:21:49 -03:00
2024-09-19 10:18:15 +02:00
2024-09-19 10:18:15 +02:00
2024-05-02 11:33:17 +02:00
2024-09-11 09:18:15 +02:00
2024-09-11 09:18:15 +02:00
2024-09-11 09:18:15 +02:00
2024-05-02 11:33:18 +02:00
2024-09-10 13:55:49 +02:00
2024-10-01 08:15:55 +10:00
2024-08-15 11:01:48 -03:00
2024-04-25 20:55:49 -07:00
2024-01-12 11:32:19 -08:00
2024-07-18 09:34:02 -07:00
2024-06-24 17:08:53 +03:00
2024-08-23 16:55:35 +02:00
2024-09-11 09:18:15 +02:00