mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
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>
This commit is contained in:
parent
289ce7e9a5
commit
092b9e2ce6
|
|
@ -3028,9 +3028,6 @@ static int scmi_debugfs_raw_mode_setup(struct scmi_info *info)
|
|||
u8 channels[SCMI_MAX_CHANNELS] = {};
|
||||
DECLARE_BITMAP(protos, SCMI_MAX_CHANNELS) = {};
|
||||
|
||||
if (!info->dbg)
|
||||
return -EINVAL;
|
||||
|
||||
/* Enumerate all channels to collect their ids */
|
||||
idr_for_each_entry(&info->tx_idr, cinfo, id) {
|
||||
/*
|
||||
|
|
@ -3202,7 +3199,7 @@ static int scmi_probe(struct platform_device *pdev)
|
|||
if (!info->dbg)
|
||||
dev_warn(dev, "Failed to setup SCMI debugfs.\n");
|
||||
|
||||
if (IS_ENABLED(CONFIG_ARM_SCMI_RAW_MODE_SUPPORT)) {
|
||||
if (info->dbg && IS_ENABLED(CONFIG_ARM_SCMI_RAW_MODE_SUPPORT)) {
|
||||
ret = scmi_debugfs_raw_mode_setup(info);
|
||||
if (!coex) {
|
||||
if (ret)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user