From a2c17c17061e02fb235a505fd80b937eda0b4eb0 Mon Sep 17 00:00:00 2001 From: Balakrishna Godavarthi Date: Thu, 11 Mar 2021 15:09:45 +0530 Subject: [PATCH] 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 --- drivers/bluetooth/bluetooth-power.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/bluetooth-power.c b/drivers/bluetooth/bluetooth-power.c index cee4fe2b2bb5..f404f2a4f11b 100644 --- a/drivers/bluetooth/bluetooth-power.c +++ b/drivers/bluetooth/bluetooth-power.c @@ -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);