Re: [PATCH v4 01/10] coresight: configfs: Don't assume active until cscfg_mgr is set

From: Leo Yan

Date: Thu Nov 12 2026 - 12:28:03 EST


On Fri, Oct 16, 2026 at 11:46:11AM +0100, James Clark wrote:

> +static enum cscfg_load_ops cscfg_get_state(void)
> +{
> + return cscfg_mgr ? cscfg_mgr->load_state : CSCFG_UNLOAD;
> +}

Could we check !cscfg_mgr explicitly in the three functions instead?

Using CSCFG_UNLOAD to represent both "not initialized" and
"cfg unloading" is a bit confusing.

Thanks,
Leo