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

From: Nazle Asmade, Muhammad Nazim Amirul

Date: Wed Sep 23 2026 - 01:35:38 EST



On 19/9/2026 12:53 am, Xu Yilun wrote:
+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.


Hi Yilun,

I send out a series patch which cover the main teardown and helper.

https://lore.kernel.org/all/20260923053233.10890-1-muhammad.nazim.amirul.nazle.asmade@xxxxxxxxxx/

BR,

Nazim