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

Commit a2c17c17 authored by Balakrishna Godavarthi's avatar Balakrishna Godavarthi Committed by Gerrit - the friendly Code Review server
Browse files

Return Immediately if failed to set to reset gpio state



This patch will stop moving further if
bt_enable_bt_reset_gpios_safely return error.

Change-Id: Idf21d2219ed099139ce7d5fb0521cfa2d3b26b2c
Signed-off-by: default avatarBalakrishna Godavarthi <bgodavar@codeaurora.org>
parent 0ae2295b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
 */

/*
@@ -388,6 +388,7 @@ static int bt_configure_gpios(int on)
		if (rc) {
			BT_PWR_ERR("%s:bt_enable_bt_reset_gpios_safely failed",
				__func__);
			return rc;
		}

		msleep(50);