disp: msm: dp: check panel state before accessing dp audio registers
During DP disable, it is possible for audio and display to race causing the audio to send teardown notification after display driver has disabled all the clocks. This change adds a check for panel state to avoid accessing registers during this callback. Change-Id: I6322726a04745bc6c73338cd33f65cfdbfe42ec7 Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
Цей коміт міститься в:
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
@@ -362,7 +362,9 @@ static void dp_audio_enable(struct dp_audio_private *audio, bool enable)
|
||||
return;
|
||||
}
|
||||
catalog->data = enable;
|
||||
catalog->enable(catalog);
|
||||
|
||||
if (audio->panel->get_panel_on(audio->panel))
|
||||
catalog->enable(catalog);
|
||||
|
||||
}
|
||||
|
||||
|
Посилання в новій задачі
Заблокувати користувача