Re: [PATCH v2] fpga: altera-cvp: Retry teardown and reset CVP state on failure

From: Xu Yilun

Date: Fri Sep 18 2026 - 13:05:39 EST


> +static void altera_cvp_disable_cvp_mode(struct altera_cvp_conf *conf)
> +{
> + u32 val;
> +
> + altera_read_config_dword(conf, VSE_CVP_MODE_CTRL, &val);
> + val &= ~VSE_CVP_MODE_CTRL_HIP_CLK_SEL;
> + val &= ~VSE_CVP_MODE_CTRL_CVP_MODE;
> + altera_write_config_dword(conf, VSE_CVP_MODE_CTRL, val);
> +}

Use the helper for existing code, or there are still duplications.
Split a preparatory patch for this.