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

Commit d83b6e6a authored by Ajay Singh Parmar's avatar Ajay Singh Parmar
Browse files

msm: mdss: hdmi: fix hpd state machine on different use cases



Fix HPD (hot plug detect) state with respect to rest of the system
in different use cases like cable connect/disconnect, runtime
suspend/resume, PM suspend/resume, framework stop/start and sysfs
node hpd enable/disable. Set the switch nodes to correct states
in above cases. Protect event handler, sysfs node handler,  ISR
work with mutex as there can be race condition between PM events,
framework events and hardware interrupts.

Change-Id: I223602753985d7022a3394fc5f5821e6e36ab2cd
Signed-off-by: default avatarAjay Singh Parmar <aparmar@codeaurora.org>
parent ee098af9
Loading
Loading
Loading
Loading
+260 −234

File changed.

Preview size limit exceeded, changes collapsed.

+2 −4
Original line number Diff line number Diff line
/* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2016, 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
@@ -133,9 +133,7 @@ struct hdmi_tx_ctrl {
	struct msm_hdmi_audio_setup_params audio_data;

	struct mutex mutex;
	struct mutex lut_lock;
	struct mutex power_mutex;
	struct mutex cable_notify_mutex;
	struct mutex tx_lock;
	struct list_head cable_notify_handlers;
	struct kobject *kobj;
	struct switch_dev sdev;