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

Commit 03a187ca authored by Sungjun Park's avatar Sungjun Park
Browse files

bluetooth: Fix bluetooth on/off issue



On new rome 2.1 chipset, BT_EN pin has been HW pull-up.
The gpio for BT_EN pin on APQ8084 is configured as input
when bt is off, so, the pin is high due to the HW pull-up
from the rome 2.1. Therefore, the gpio for BT_EN on APQ8084
has been fixed to be remained as output when bt is off.

Change-Id: I7dc8d7e020eca0270c2ce8d1124679f4fba455ca
Signed-off-by: default avatarSungjun Park <sjpark@codeaurora.org>
parent 2d37de8c
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
/* Copyright (c) 2009-2010, 2013 The Linux Foundation. All rights reserved.
/* Copyright (c) 2009-2010, 2013-2014 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -177,11 +177,6 @@ static int bt_configure_gpios(int on)
		msleep(100);
	} else {
		gpio_set_value(bt_reset_gpio, 0);

		rc = gpio_direction_input(bt_reset_gpio);
		if (rc)
			BT_PWR_ERR("Unable to set direction\n");

		msleep(100);
	}
	return rc;