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

Commit aeda4ac4 authored by Karthik Anantha Ram's avatar Karthik Anantha Ram Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: icp: Enable hang dump on failure



In case user does not set any dump lvl, KMD will set
to dump on failure as default.

CRs-Fixed: 2579908
Change-Id: I036e91f5daceedf575815e7569c0e90c04f8de52
Signed-off-by: default avatarKarthik Anantha Ram <kartanan@codeaurora.org>
parent 374ee8b2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/uaccess.h>
@@ -1890,6 +1890,8 @@ static int cam_icp_hw_mgr_create_debugfs_entry(void)
		goto err;
	}

	/* Set default hang dump lvl */
	icp_hw_mgr.a5_fw_dump_lvl = HFI_FW_DUMP_ON_FAILURE;
	return rc;
err:
	debugfs_remove_recursive(icp_hw_mgr.dentry);