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

Commit 511f28c1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: smd_debug: Add EPROBE_DEFER check to debug_ch()"

parents c8c088ea bc1aad32
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
/* drivers/soc/qcom/smd_debug.c
 *
 * Copyright (C) 2007 Google, Inc.
 * Copyright (c) 2009-2014, The Linux Foundation. All rights reserved.
 * Copyright (c) 2009-2015, The Linux Foundation. All rights reserved.
 * Author: Brian Swetland <swetland@google.com>
 *
 * This software is licensed under the terms of the GNU General Public
@@ -19,6 +19,7 @@
#include <linux/list.h>
#include <linux/ctype.h>
#include <linux/jiffies.h>
#include <linux/err.h>

#include <soc/qcom/smem.h>

@@ -324,6 +325,11 @@ static void debug_ch(struct seq_file *s)
		return;
	}

	if (IS_ERR(tbl) && PTR_ERR(tbl) == -EPROBE_DEFER) {
		seq_puts(s, "SMEM is not initialized\n");
		return;
	}

	seq_puts(s, "Primary allocation table:\n");
	print_smd_ch_table(s, tbl, tbl_size / sizeof(*tbl), ID_SMD_CHANNELS,
							SMEM_SMD_FIFO_BASE_ID,