Re: [PATCh v3 07/14] ASoC: rsnd: ssui: Add RZ/G3E SSIU BUSIF support
From: Mark Brown
Date: Thu Apr 02 2026 - 13:55:13 EST
On Thu, Apr 02, 2026 at 06:24:29PM +0200, John Madieu wrote:
> Rather than scattering SoC-specific checks across functional code,
> introduce an extra capability flags in the match data:
> bool rsnd_ssiu_busif_err_status_clear(struct rsnd_mod *mod)
> {
> + struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
There's a priv already in the if (status) check in the loop in this
function.
> @@ -160,7 +161,8 @@ static int rsnd_ssiu_init(struct rsnd_mod *mod,
> /*
> * SSI_MODE0
> */
> - rsnd_mod_bset(mod, SSI_MODE0, (1 << id), !use_busif << id);
> + if (!rsnd_is_rzg3e(priv))
> + rsnd_mod_bset(mod, SSI_MODE0, (1 << id), !use_busif << id);
Perhaps should be a capability flag like the changelog said?
> + /* Acquire shared reset once for all SSIU modules */
> + rstc = devm_reset_control_get_optional_shared(dev, "ssi-all");
> + if (IS_ERR(rstc))
> + rstc = NULL;
This just ignores actual errors, including -EPROBE_DEFER. I would
expect us to report all errors as normal, the reset API will already
return NULL for genuinely absent resets.
Attachment:
signature.asc
Description: PGP signature