1
0

video: driver: amend xo reset clock as shared resource

Use devm_reset_control_get_exclusive_released() instead of
devm_reset_control_get() to get the reset control of video_xo_reset
clock as it is shared reset clock between eva and video drivers.
Use reset_control_acquire() before assert and reset_control_release()
after de-assert video_xo_reset clock to avoid eva driver operating on
it in parallel.

Change-Id: I4936ed7a4556bb56d4b28546084fc877080308ef
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
Este cometimento está contido em:
Darshana Patil
2023-01-04 12:58:31 -08:00
ascendente 179b38a1ec
cometimento a0082a4c81
8 ficheiros modificados com 126 adições e 14 eliminações

Ver ficheiro

@@ -2547,11 +2547,11 @@ static const struct clk_table pineapple_clk_table[] = {
{ "video_cc_mvs0_clk_src", VIDEO_CC_MVS0_CLK_SRC, 1 },
};
/* name */
/* name, exclusive_release */
static const struct clk_rst_table pineapple_clk_reset_table[] = {
{ "video_axi_reset" },
{ "video_xo_reset" },
{ "video_mvs0c_reset" },
{ "video_axi_reset", 0 },
{ "video_xo_reset", 1 },
{ "video_mvs0c_reset", 0 },
};
/* name, llcc_id */