[PATCH] ASoC: SOF: imx8: Switch imx8ulp DSP control to reset framework

Daniel Baluta daniel.baluta at oss.nxp.com
Wed Nov 25 02:13:13 PST 2026


On 11/25/26 09:38, shengjiu.wang at oss.nxp.com wrote:
> From: Shengjiu Wang <shengjiu.wang at nxp.com>
> 
> Replace syscon regmap-based DSP reset control with the kernel reset
> controller framework for i.MX8ULP. The syscon approach requires direct
> register access and creates tight coupling to the system controller,
> while the reset framework provides a cleaner abstraction and proper
> reset sequencing.
> 
> Three named reset controls are now consumed: runstall to stall/unstall
> the DSP core, softreset for DSP core reset, and dbgreset for the debug
> logic which is kept deasserted to allow external debug agent access.


As Philipp pointed the wording here is a little bit unfortunate. The reset
sequence is already correct what this patch does uses a cleaner and standard
reset abstraction.

[...]

>  static int imx8_shutdown(struct snd_sof_dev *sdev)
>  {
>  	int ret;
> @@ -202,42 +201,32 @@ static int imx8m_probe(struct snd_sof_dev *sdev)
>  
>  static int imx8ulp_run(struct snd_sof_dev *sdev)
>  {
> -	struct regmap *regmap = get_chip_pdata(sdev);
> +	struct imx8ulp_chip_data *chip = get_chip_pdata(sdev);
>  
> -	/* Controls the HiFi4 DSP Reset: 1 in reset, 0 out of reset */
> -	regmap_update_bits(regmap, SYSCTRL0, RESET_BIT, 0);
> +	/* Controls the HiFi4 DSP Reset */

I would remove this comment above, as it is obvious from the function name what
is the action taken. 

> +	reset_control_deassert(chip->soft_rst);
>  
> -	/* Reset HiFi4 DSP Debug logic: 1 debug reset, 0  out of reset*/
> -	regmap_update_bits(regmap, SYSCTRL0, DEBUG_LOGIC_BIT, 0);
> +	/* Release HiFi4 DSP Debug logic */

this comment can stay. 

> +	reset_control_deassert(chip->dbg_rst);
>  
> -	/* Stall HIFI4 DSP Execution: 1 stall, 0 run */
> -	regmap_update_bits(regmap, SYSCTRL0, EXECUTE_BIT, 0);
> +	/* Run HIFI4 DSP Execution */


With that said, 

Reviewed-by: Daniel Baluta <daniel.baluta at nxp.com>




More information about the linux-arm-kernel mailing list