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: Balakrishna Godavarthi <bgodavar@codeaurora.org>
This commit is contained in:
Balakrishna Godavarthi 2021-03-11 15:09:45 +05:30 committed by Gerrit - the friendly Code Review server
parent 0ae2295b57
commit a2c17c1706

View File

@ -1,6 +1,6 @@
// 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);