Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22dd720b authored by Steven Cahail's avatar Steven Cahail
Browse files

soc: qcom: glink_ssr: Remove print_subsystem_list() from init()



The G-Link SSR module's init() function contains a call to
print_subsystem_list(), which depends on the G-Link SSR module's probe
function having completed. If the function has only partially ran,
print_subsystem_list() will act on incomplete data structures and could
cause errors.

Remove the print_subsystem_list() function.

Change-Id: Ic517f3480e1c4ef7e090ce0755dc3be1b29b249a
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent 054297f0
Loading
Loading
Loading
Loading
+0 −27
Original line number Diff line number Diff line
@@ -176,7 +176,6 @@ struct close_ch_work {
static int glink_ssr_restart_notifier_cb(struct notifier_block *this,
				  unsigned long code,
				  void *data);
static void print_subsystem_list(void);
static void delete_ss_info_notify_list(struct subsys_info *ss_info);
static struct subsys_info *get_info_for_subsystem(const char *subsystem);
static struct subsys_info *get_info_for_edge(const char *edge);
@@ -703,31 +702,6 @@ static void delete_ss_info_notify_list(struct subsys_info *ss_info)
	}
}

/**
 * print_subsystem_list() - Display the global subsystem information list
 */
static void print_subsystem_list(void)
{
	struct subsys_info *ss_info_entry;
	struct subsys_info_leaf *ss_leaf_entry;

	list_for_each_entry(ss_info_entry, &subsystem_list,
			subsystem_list_node) {
		GLINK_INFO("%s %s: info node: subsys:edge:xprt -> %s:%s:%s\n",
			"<SSR>", __func__, ss_info_entry->ssr_name,
			ss_info_entry->edge, ss_info_entry->xprt);

		list_for_each_entry(ss_leaf_entry, &ss_info_entry->notify_list,
				notify_list_node) {
			GLINK_INFO("%s: %s: leaf/notify node: %s -> %s:%s:%s\n",
					"<SSR>", __func__, "subsys:edge:xprt",
					ss_leaf_entry->ssr_name,
					ss_leaf_entry->edge,
					ss_leaf_entry->xprt);
		}
	}
}

/**
 * glink_ssr_wait_cleanup_done() - Get the value of the
 *                                 notifications_successful flag.
@@ -954,7 +928,6 @@ static int glink_ssr_init(void)
		GLINK_ERR("<SSR> %s: %s ret: %d\n", __func__,
				"glink_ssr driver registration failed", ret);

	print_subsystem_list();
	notifications_successful = false;
	init_completion(&notifications_successful_complete);
	return 0;