Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

firmware: arm_scmi: Skip RAW initialization on failure

Avoid attempting to initialize RAW mode when the debug subsystem itself
has failed to initialize, since doing so is pointless and emits
misleading error messages.

Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Message-Id: <20251014115346.2391418-3-cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>

authored by

Cristian Marussi and committed by
Sudeep Holla
092b9e2c 289ce7e9

+1 -4
+1 -4
drivers/firmware/arm_scmi/driver.c
··· 3028 3028 u8 channels[SCMI_MAX_CHANNELS] = {}; 3029 3029 DECLARE_BITMAP(protos, SCMI_MAX_CHANNELS) = {}; 3030 3030 3031 - if (!info->dbg) 3032 - return -EINVAL; 3033 - 3034 3031 /* Enumerate all channels to collect their ids */ 3035 3032 idr_for_each_entry(&info->tx_idr, cinfo, id) { 3036 3033 /* ··· 3199 3202 if (!info->dbg) 3200 3203 dev_warn(dev, "Failed to setup SCMI debugfs.\n"); 3201 3204 3202 - if (IS_ENABLED(CONFIG_ARM_SCMI_RAW_MODE_SUPPORT)) { 3205 + if (info->dbg && IS_ENABLED(CONFIG_ARM_SCMI_RAW_MODE_SUPPORT)) { 3203 3206 ret = scmi_debugfs_raw_mode_setup(info); 3204 3207 if (!coex) { 3205 3208 if (ret)