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>
这个提交包含在:
Nisarg Bhavsar
2023-03-07 09:18:13 -08:00
父节点 c3622fa326
当前提交 65925ebbf0
修改 3 个文件,包含 15 行新增2 行删除

查看文件

@@ -198,6 +198,7 @@ struct dp_panel {
int (*sink_crc_enable)(struct dp_panel *dp_panel, bool enable);
int (*get_src_crc)(struct dp_panel *dp_panel, u16 *crc);
int (*get_sink_crc)(struct dp_panel *dp_panel, u16 *crc);
bool (*get_panel_on)(struct dp_panel *dp_panel);
};
struct dp_tu_calc_input {