Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c3eca03 authored by Lloyd Atkinson's avatar Lloyd Atkinson Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: don't clear topology name during test-only



Fix the test-only path so that a test-only operation does not
unintentionally clear the topology name property, by checking
if there is an existing reservation before clearing the topology
name.

CRs-Fixed: 2005394
Change-Id: I40253359354d846c797b27f26a7ea7a77582d461
Signed-off-by: default avatarLloyd Atkinson <latkinso@codeaurora.org>
parent 652ee8ea
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1075,6 +1075,8 @@ void _sde_rm_release_rsvp(

	kfree(rsvp);

	/* if no remaining reservation, then clear the topology name */
	if (!_sde_rm_get_rsvp(rm, conn->encoder))
		(void) msm_property_set_property(
				sde_connector_get_propinfo(conn),
				sde_connector_get_property_values(conn->state),