Wesley Chalmers 77b49370a2 drm/amd/display: Fix a bug when searching for insert_above_mpcc
commit 3d028d5d60d516c536de1ddd3ebf3d55f3f8983b upstream.

[WHY]
Currently, when insert_plane is called with insert_above_mpcc
parameter that is equal to tree->opp_list, the function returns NULL.

[HOW]
Instead, the function should insert the plane at the top of the tree.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Jun Lei <jun.lei@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Wesley Chalmers <wesley.chalmers@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:28:10 +02:00
..
2023-08-30 16:10:57 +02:00
2023-09-19 12:27:56 +02:00
2023-03-10 09:34:33 +01:00
2022-10-05 11:24:12 -07:00
2022-08-16 12:46:26 +02:00
2023-08-23 17:52:39 +02:00
2023-08-30 16:10:57 +02:00
2022-09-20 09:37:12 +02:00
2022-08-26 14:22:59 +02:00
2023-08-30 16:10:57 +02:00
2023-05-11 23:03:07 +09:00
2022-07-13 10:54:56 +10:00
2022-06-28 07:56:32 +02:00
2022-09-06 10:56:04 +02:00
2023-05-30 14:03:20 +01:00
2023-02-22 12:59:46 +01:00
2022-10-07 17:04:10 -07:00