Skip to content

Commit

Permalink
v4l: xilinx: dprx: Reset the retimer dp data path
Browse files Browse the repository at this point in the history
This patch will reset the retimer DP data path when there
is a cable disconnection event occurs. This change is added
as affter review with bare-metal driver.

Signed-off-by: Rajesh Gugulothu <gugulothu.rajesh@xilinx.com>
  • Loading branch information
Rajesh Gugulothu authored and Michal Simek committed Jan 17, 2022
1 parent 94c6af3 commit 4065310
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/media/platform/xilinx/xilinx-dprxss.c
Expand Up @@ -236,10 +236,12 @@ struct xlnx_dprx_audio_data {
* struct retimer_cfg - Retimer configuration structure
* @retimer_access_laneset: Function pointer to retimer access laneset function
* @retimer_rst_cr_path: Function pointer to retimer reset cr path function
* @retimer_rst_dp_path: Function pointer to retimer reset dp path function
*/
struct retimer_cfg {
void (*retimer_access_laneset)(void);
void (*retimer_rst_cr_path)(void);
void (*retimer_rst_dp_path)(void);
};

/**
Expand Down Expand Up @@ -828,6 +830,9 @@ static void xdprxss_irq_unplug(struct xdprxss_state *state)
xdprxss_set(state, XDPRX_SOFT_RST_REG, XDPRX_SOFT_VIDRST_MASK);
xdprxss_clr(state, XDPRX_SOFT_RST_REG, XDPRX_SOFT_VIDRST_MASK);

if (state->retimer_prvdata)
state->retimer_prvdata->retimer_rst_dp_path();

xdprxss_set(state, XDPRX_INTR_MASK_REG, XDPRX_INTR_ALL_MASK);
xdprxss_clr(state, XDPRX_INTR_MASK_REG, XDPRX_INTR_TRNG_MASK);
/*
Expand Down

0 comments on commit 4065310

Please sign in to comment.